Difference between revisions of "Template:Book ref"

From The Coppermind
Jump to navigation Jump to search
m
m (try)
Line 10: Line 10:
 
-->|ars=Ars Arcanum#{{b|{{{1}}}|}}<!--
 
-->|ars=Ars Arcanum#{{b|{{{1}}}|}}<!--
 
-->|ack=Acknowledgements#{{b|{{{1}}}|}}<!--
 
-->|ack=Acknowledgements#{{b|{{{1}}}|}}<!--
  +
-->|{{#if:{{{part|}}}|{{book ref/part}}|<!-- -->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->|<!--
 
-->|<!--
Line 20: Line 21:
 
-->|i|interlude=Interlude_I-{{{3}}}<!--
 
-->|i|interlude=Interlude_I-{{{3}}}<!--
 
-->|day=Day_{{{3}}}<!--
 
-->|day=Day_{{{3}}}<!--
-->|Chapter_{{{3|{{{2}}}|}}}<!--
+
-->|c=Chapter_{{{3}}}<!--
 
-->|Chapter_{{{2}}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->}}|}}<!--
 
-->}}|}}<!--
Line 39: Line 41:
 
-->|i|interlude=interlude I-{{{3}}}<!--
 
-->|i|interlude=interlude I-{{{3}}}<!--
 
-->|day=- Day {{{3}}}<!--
 
-->|day=- Day {{{3}}}<!--
-->|chapter {{{3|{{{2}}}|}}}<!--
+
-->|c={{book ref/c}}chapter {{{2}}}<!--
  +
-->|chapter {{{2}}}<!--
 
-->}}|}}|}}<!--
 
-->}}|}}|}}<!--
   
Line 51: Line 54:
   
 
-->}}<!--
 
-->}}<!--
 
-->{{#switch:{{{2}}}|c=[[Category: Legacy chapter references]]}}<!--
 
-->{{#switch:{{lc:{{{part|}}}|}}<!--
 
-->|ars=<!--
 
-->|ack=<!--
 
-->|prelude=<!--
 
-->|{{#if:{{{part|}}}|[[Category: Broken chapter references]]}}<!--
 
-->}}<!--
 
   
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>

Revision as of 19:17, 14 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...