Difference between revisions of "Template:Book ref"

From The Coppermind
Jump to navigation Jump to search
(try)
m (add default for 3 (in case of 2 being chapter number))
Line 52: Line 52:
 
-->|i|interlude=interlude I-{{{3}}}<!--
 
-->|i|interlude=interlude I-{{{3}}}<!--
 
-->|day=- Day {{{3}}}<!--
 
-->|day=- Day {{{3}}}<!--
-->|c={{book ref/c}}chapter {{{2}}}<!--
+
-->|c={{book ref/c}}chapter {{{3}}}<!--
 
-->|chapter {{{2}}}<!--
 
-->|chapter {{{2}}}<!--
 
-->}}<!--
 
-->}}<!--
Line 67: Line 67:
   
 
NAME
 
NAME
-->|name={{{name|{{b|{{{1}}}|}}-{{{part|{{{2}}}-{{{3}}}|}}}|}}}<!--
+
-->|name={{{name|{{b|{{{1}}}|}}-{{{part|{{{2}}}-{{{3|chapter}}}|}}}|}}}<!--
   
 
GROUP
 
GROUP

Revision as of 14:33, 15 January 2015

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...