Difference between revisions of "Template:Book ref"

From The Coppermind
Jump to navigation Jump to search
m (stop making it a number)
m (+ <sub>#</sub> links for tracking)
Line 62: Line 62:
   
 
-->{{{post|}}}<!--
 
-->{{{post|}}}<!--
  +
  +
--><small> <sub>[[<!--
  +
-->{{#if:{{{part|}}}<!--
  +
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
  +
-->|prelude=Summary: The Stormlight Archive/Prelude<!--
  +
-->|ars=Summary: {{b|{{{1}}}|}}/Ars Arcanum<!--
  +
-->|ack=Summary: {{b|{{{1}}}|}}/Acknowledgements<!--
  +
-->|postscript=Summary: {{b|{{{1}}}|}}/Postscript<!--
  +
-->|{{#if:{{{part|}}}|{{ref/broken|book ref/part}} {{{part}}}|<!-- -->}}<!--
  +
-->}}<!--
  +
-->|<!--
  +
-->Summary: {{b|{{{1}}}|missing-err=}}/<!--
  +
-->{{#if:{{{2|}}}<!--
  +
-->|<!--
  +
-->{{#switch:{{lc:{{{2}}}|}}<!--
  +
-->|prologue=Prologue<!--
  +
-->|epilogue=Epilogue<!--
  +
-->|endnote=Endnote<!--
  +
-->|i|interlude=Interlude_I-{{{3}}}<!--
  +
-->|c=Chapter_{{{3}}}<!--
  +
-->|Chapter_{{{2}}}<!--
  +
-->}}<!--
  +
-->}}<!--
  +
-->}}<!--
  +
-->|#]]</sub></small><!--
   
 
-->|{{ref/broken|b/missing}} {{{1}}}<!--
 
-->|{{ref/broken|b/missing}} {{{1}}}<!--

Revision as of 10:56, 26 June 2018

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
  • Khriss' articles in Arcanum Unbounded use {{au ref|system name}} because they're not chapters