Difference between revisions of "Template:Epigraph ref"

From The Coppermind
Jump to navigation Jump to search
m (Tracking for part switched to template)
({{{part}} was only being used for three epigraphs total; I depreciated it and made this follow book ref (ie, part is not needed for prologues and epilogues))
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}}} epigraph{{ref/uses-part}}|chapter {{{2}}} epigraph|}}|}}}<!--
 
  +
LINK TEXT:
  +
-->{{#if:{{{text|}}}|{{{text}}}<!--
  +
-->|''{{b|{{{1}}}}}'' <!--
  +
-->{{#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><!--
+
--><small><sub>{{tracking link|{{b|{{{1}}}}}/Epigraphs/<!--
  +
-->{{#switch:{{lc:{{{2}}}}}<!--
  +
-->|prologue=Prologue<!--
  +
-->|epilogue=Epilogue<!--
  +
-->|Chapter_{{{2}}}<!--
  +
-->}}<!--
  +
-->}}</sub></small><!--
   
 
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 24: Line 51:
 
--></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

Revision as of 01:36, 24 April 2020

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