Difference between revisions of "Template:Book ref"

From The Coppermind
Jump to navigation Jump to search
(Created page with "{{#tag:ref<!-- TEXT -->|{{{pre}}}<!-- LINK -->{{b|{{{1}}}|}}/Summary#{{#switch:{{uc|{{{2}}}|}}<!-- -->|prologue=Prologue<!-- -->|epilogue=Epilogue<!-- -->|i|in...")
 
m
Line 2: Line 2:
   
 
TEXT
 
TEXT
-->|{{{pre}}}[[<!--
+
-->|{{{pre|}}}[[<!--
   
 
LINK
 
LINK
Line 24: Line 24:
 
-->}}<!--
 
-->}}<!--
   
-->]]{{{post}}}<!--
+
-->]]{{{post|}}}<!--
   
 
NAME
 
NAME
-->|name={{{name|{{{page|{{{1}}}|}}}|}}}<!--
+
-->|name={{{name|{{{1}}}-{{{2}}}-{{{3}}}|}}}<!--
   
 
GROUP
 
GROUP

Revision as of 11:47, 26 August 2014

[1]</includeonly> 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...

  1. [[Book shorthand incorrect/Summary#Chapter_{{{2}}}|Book shorthand incorrect [[Book shorthand incorrect]] Chapter {{{2}}}]]