Difference between revisions of "Template:Book ref"

From The Coppermind
Jump to navigation Jump to search
(try this)
(+desc on error)
Line 4: Line 4:
 
-->|<!--
 
-->|<!--
   
-->{{#if:{{b|{{{1}}}|}}|<!-- -->|{{ref/broken|b/missing}}|}}<!--
+
-->{{#if:{{b|{{{1}}}|}}|<!-- -->|{{ref/broken|b/missing}} {{{1}}}|}}<!--
   
 
-->{{{pre|}}}<!--
 
-->{{{pre|}}}<!--
Line 16: Line 16:
 
-->|ars=Ars Arcanum#{{b|{{{1}}}|}}<!--
 
-->|ars=Ars Arcanum#{{b|{{{1}}}|}}<!--
 
-->|ack=Acknowledgements#{{b|{{{1}}}|}}<!--
 
-->|ack=Acknowledgements#{{b|{{{1}}}|}}<!--
-->|{{#if:{{{part|}}}|{{ref/broken|book ref/part}}|<!-- -->}}<!--
+
-->|{{#if:{{{part|}}}|{{ref/broken|book ref/part}} {{{part}}}|<!-- -->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->|<!--
 
-->|<!--

Revision as of 12:34, 16 December 2014

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 a chapter type the third argument is used as the chapter number
  • {{{pre}}} is included before the link
  • {{{post}}} is included after the link
  • {{{name}}} replaces the generated reference name
  • {{{group}}} sets the reference group

Chapter types include interlude, day...