Difference between revisions of "Template:Book ref"

From The Coppermind
Jump to navigation Jump to search
m (deambig part-n refs)
m (add {{ref|b|part|x}} support back in)
Line 17: Line 17:
 
-->|ack=Acknowledgements#{{b|{{{1}}}|}}<!--
 
-->|ack=Acknowledgements#{{b|{{{1}}}|}}<!--
 
-->|postscript=Summary: {{b|{{{1}}}|}}#Postscript<!--
 
-->|postscript=Summary: {{b|{{{1}}}|}}#Postscript<!--
-->|part=Summary: {{b|{{{1}}}|}}#Part {{{2}}}<!--
 
 
-->|{{#if:{{{part|}}}|{{ref/broken|book ref/part}} {{{part}}}|<!-- -->}}<!--
 
-->|{{#if:{{{part|}}}|{{ref/broken|book ref/part}} {{{part}}}|<!-- -->}}<!--
 
-->}}<!--
 
-->}}<!--
Line 28: Line 27:
 
-->|epilogue=Epilogue<!--
 
-->|epilogue=Epilogue<!--
 
-->|endnote=Endnote<!--
 
-->|endnote=Endnote<!--
  +
-->|part=Part_{{{2}}}<!--
 
-->|i|interlude=Interlude_I-{{{3}}}<!--
 
-->|i|interlude=Interlude_I-{{{3}}}<!--
 
-->|c=Chapter_{{{3}}}<!--
 
-->|c=Chapter_{{{3}}}<!--
Line 52: Line 52:
 
-->|epilogue=epilogue<!--
 
-->|epilogue=epilogue<!--
 
-->|endnote=endnote<!--
 
-->|endnote=endnote<!--
 
-->|part=part {{{2}}}<!--
 
-->|i|interlude=interlude I-{{{3}}}<!--
 
-->|i|interlude=interlude I-{{{3}}}<!--
 
-->|c={{book ref/c}}chapter {{{3}}}<!--
 
-->|c={{book ref/c}}chapter {{{3}}}<!--
Line 71: Line 72:
 
-->|ack=Summary: {{b|{{{1}}}|}}/Acknowledgements<!--
 
-->|ack=Summary: {{b|{{{1}}}|}}/Acknowledgements<!--
 
-->|postscript=Summary: {{b|{{{1}}}|}}/Postscript<!--
 
-->|postscript=Summary: {{b|{{{1}}}|}}/Postscript<!--
-->|part=Summary: {{b|{{{1}}}|}}/Part {{{2}}}<!--
 
 
-->}}<!--
 
-->}}<!--
 
-->|<!--
 
-->|<!--
Line 81: Line 81:
 
-->|epilogue=Epilogue<!--
 
-->|epilogue=Epilogue<!--
 
-->|endnote=Endnote<!--
 
-->|endnote=Endnote<!--
  +
-->|part=Part_{{{2}}}<!--
 
-->|i|interlude=Interlude_I-{{{3}}}<!--
 
-->|i|interlude=Interlude_I-{{{3}}}<!--
 
-->|c=Chapter_{{{3}}}<!--
 
-->|c=Chapter_{{{3}}}<!--
Line 93: Line 94:
   
 
NAME
 
NAME
-->|name={{{name|{{b|{{{1}}}|}}-{{{part|{{{2}}}-{{{3|chapter}}}|}}}{{#ifeq:{{{part|}}}|part|-{{{2}}}|}}|}}}<!--
+
-->|name={{{name|{{b|{{{1}}}|}}-{{{part|{{{2}}}-{{{3|chapter}}}|}}}|}}}<!--
   
 
GROUP
 
GROUP

Revision as of 11:16, 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