Difference between revisions of "Template:Epigraph ref"

From The Coppermind
Jump to navigation Jump to search
m (tweak)
m (trak)
 
(6 intermediate revisions by one other user not shown)
Line 4: Line 4:
 
-->{{{pre|}}}<!-- -->{{#if:{{{pre|}}}|{{ref/uses-pre}}|}}<!--
 
-->{{{pre|}}}<!-- -->{{#if:{{{pre|}}}|{{ref/uses-pre}}|}}<!--
   
  +
LINK:
-->[[<!--
+
-->[[<!--
LINK: -->{{b|{{{1}}}|}}/Epigraphs#{{{part|Chapter_{{{2}}}|}}}<!--
+
-->{{b|{{{1}}}|}}/Epigraphs#<!--
  +
-->{{#switch:{{lc:{{{2}}}}}<!--
  +
-->|prologue=Prologue<!--
  +
-->|epilogue=Epilogue<!--
  +
-->|Chapter_{{{2}}}<!--
  +
-->}}<!--
 
-->|<!--
 
-->|<!--
  +
TEXT: -->{{{text|''{{b|{{{1}}}|}}'' {{#if:{{{part|}}}|- {{{part}}} epigraphs|chapter {{{2}}} epigraph|}}|}}}<!--
 
  +
LINK TEXT:
 
-->{{#if:{{{text|}}}|{{{text}}}<!--
  +
-->|''{{b|{{{1}}}|text=y}}'' <!--
  +
-->{{#switch:{{lc:{{{2}}}}}<!--
  +
-->|prologue=prologue<!--
  +
-->|epilogue=epilogue<!--
  +
-->|chapter {{{2}}}<!--
  +
-->}}<!--
  +
--> epigraph}}<!--
 
-->]]<!--
 
-->]]<!--
   
 
-->{{{post|}}}<!-- -->{{#if:{{{post|}}}|{{ref/uses-post}}|}}<!--
 
-->{{{post|}}}<!-- -->{{#if:{{{post|}}}|{{ref/uses-post}}|}}<!--
   
--><small> <sub>{{tracking link|Summary: {{b|{{{1}}}|}}/Epigraphs/{{{part|Chapter_{{{2}}}|}}}|}}</sub></small><!--
+
-->{{tracking link|Summary:{{b|{{{1}}}|text=y}}/Epigraphs/<!--
  +
-->{{#switch:{{lc:{{{2}}}}}<!--
  +
-->|prologue=Prologue<!--
  +
-->|epilogue=Epilogue<!--
  +
-->|Chapter_{{{2}}}<!--
  +
-->}}<!--
  +
-->}}<!--
   
 
NAME
 
NAME
-->|name={{{name|{{b|{{{1}}}|}}-{{{part|chapter-{{{2}}}|}}}-epigraph|}}}<!--
+
-->|name={{{name|{{b|{{{1}}}|}}<!--
  +
-->-{{#switch:{{lc:{{{2}}}}}<!--
  +
-->|prologue=prologue<!--
  +
-->|epilogue=epilogue<!--
  +
-->|chapter-{{{2}}}<!--
  +
-->}}<!--
  +
-->-epigraph|}}}<!--
   
 
GROUP
 
GROUP
Line 21: Line 48:
   
 
-->}}<!--
 
-->}}<!--
 
-->{{#if:{{{part|}}}|[[Category: epigraph.part]]}}<!--
 
   
 
--></includeonly><noinclude>This template is used to refer to epigraphs.
 
--></includeonly><noinclude>This template is used to refer to epigraphs.
   
  +
To use, include {{t|epigraph ref|book|part}} where <code>book</code> is a book code from {{t|b}} and <code>part</code> is the chapter number, prologue, or epilogue. The following parameters are also available:
To use, include {{t|epigraph ref|book|chapter}}
 
 
* {{{text}}} replaces the whole link text
 
* {{{text}}} replaces the whole link text
* {{{part}}} can be used to refer to other parts of the epigraphs page
 
 
* {{{pre}}} is included before the link
 
* {{{pre}}} is included before the link
 
* {{{post}}} is included after the link
 
* {{{post}}} is included after the link

Latest revision as of 18:55, 1 February 2021

This template is used to refer to epigraphs.

To use, include {{epigraph ref|book|part}} where book is a book code from {{b}} and part is the chapter number, prologue, or epilogue. The following parameters are also available:

  • {{{text}}} replaces the whole link text
  • {{{pre}}} is included before the link
  • {{{post}}} is included after the link
  • {{{name}}} replaces the generated reference name
  • {{{group}}} sets the reference group

Articles using Template[edit]