Difference between revisions of "Template:Book ref"

From The Coppermind
Jump to navigation Jump to search
m (+b/ errors)
m (tweaks)
Line 27: Line 27:
 
-->|endnote=Endnote<!--
 
-->|endnote=Endnote<!--
 
-->|i|interlude=Interlude_I-{{{3}}}<!--
 
-->|i|interlude=Interlude_I-{{{3}}}<!--
-->|day=Day_{{{3}}}<!--
 
 
-->|c=Chapter_{{{3}}}<!--
 
-->|c=Chapter_{{{3}}}<!--
 
-->|Chapter_{{{2}}}<!--
 
-->|Chapter_{{{2}}}<!--
Line 51: Line 50:
 
-->|endnote=endnote<!--
 
-->|endnote=endnote<!--
 
-->|i|interlude=interlude I-{{{3}}}<!--
 
-->|i|interlude=interlude I-{{{3}}}<!--
-->|day=- Day {{{3}}}<!--
 
 
-->|c={{book ref/c}}chapter {{{3}}}<!--
 
-->|c={{book ref/c}}chapter {{{3}}}<!--
 
-->|chapter {{{2}}}<!--
 
-->|chapter {{{2}}}<!--
Line 76: Line 74:
 
errors
 
errors
 
-->{{#switch:{{lc:{{{1}}}|}}<!--
 
-->{{#switch:{{lc:{{{1}}}|}}<!--
-->|msh={{b/msh}}<!--
+
-->|msh={{b/msh}}<!-- since {{msh ref}}
-->|tes={{b/tes}}<!--
+
-->|tes={{b/tes}}<!-- since {{tes ref}}
-->|a1={{b/a1}}<!--
+
-->|a1={{b/a1}}<!-- because it looks nasty
 
-->}}<!--
 
-->}}<!--
   
Line 87: Line 85:
 
* the book is expanded by {{t|b}}
 
* the book is expanded by {{t|b}}
 
* the chapter should either be prologue, epilogue or the chapter number
 
* the chapter should either be prologue, epilogue or the chapter number
* if the second argument is a chapter type the third argument is used as the chapter number
+
* if the second argument is `i` or `interlude` type the third argument is used as the interlude number
 
* {{{pre}}} is included before the link
 
* {{{pre}}} is included before the link
 
* {{{post}}} is included after the link
 
* {{{post}}} is included after the link
Line 93: Line 91:
 
* {{{group}}} sets the reference group
 
* {{{group}}} sets the reference group
   
  +
The following books have specific templates for referencing use:
Chapter types include interlude, day...
 
  +
* ''Mistborn: Secret History'' uses {{t|msh ref|part|chapter}} as the chapters start at 1 in each part
  +
* ''The Emperor's Soul'' uses {{t|tes ref|day number}} as the chapters are numbered differently
   
 
[[Category: Sources]]
 
[[Category: Sources]]

Revision as of 06:44, 1 September 2016

This template is used to refer to chapter summaries on the coppermind.

To use, include {{book ref|book|chapter}}

  • the book is expanded by {{b}}
  • the chapter should either be prologue, epilogue or the chapter number
  • if the second argument is `i` or `interlude` type the third argument is used as the interlude number
  • {{{pre}}} is included before the link
  • {{{post}}} is included after the link
  • {{{name}}} replaces the generated reference name
  • {{{group}}} sets the reference group

The following books have specific templates for referencing use:

  • Mistborn: Secret History uses {{msh ref|part|chapter}} as the chapters start at 1 in each part
  • The Emperor's Soul uses {{tes ref|day number}} as the chapters are numbered differently