Difference between revisions of "Template:Book ref"

From The Coppermind
Jump to navigation Jump to search
m
m
Line 5: Line 5:
   
 
LINK
 
LINK
-->{{b|{{{1}}}|}}{{#if:{{{2|}}}|/Summary#{{#switch:{{lc:{{{2}}}|}}<!--
+
-->{{b|{{{1}}}|}}<!--
-->|prologue=Prologue<!--
+
-->{{#if:{{{2|}}}<!--
-->|epilogue=Epilogue<!--
+
-->|/Summary#{{#switch:{{lc:{{{2}}}|}}<!--
-->|i|interlude=Interlude_I-{{{3}}}<!--
+
-->|prologue=Prologue<!--
-->|day=Day_{{{3}}}<!--
+
-->|epilogue=Epilogue<!--
-->|Chapter_{{{3|{{{2}}}|}}}<!--
+
-->|i|interlude=Interlude_I-{{{3}}}<!--
-->}}|}}<!--
+
-->|day=Day_{{{3}}}<!--
  +
-->|Chapter_{{{3|{{{2}}}|}}}<!--
  +
-->}}<!--
  +
-->}}<!--
   
 
-->|<!--
 
-->|<!--
   
 
LINK TEXT
 
LINK TEXT
-->{{b|{{{1}}}|}}{{#if:{{{2|}}}| {{#switch:{{lc:{{{2}}}|}}<!--
+
-->{{b|{{{1}}}|}}{{#if:{{{2|}}}|&nbsp;{{#switch:{{lc:{{{2}}}|}}<!--
 
-->|prologue=prologue<!--
 
-->|prologue=prologue<!--
 
-->|epilogue=epilogue<!--
 
-->|epilogue=epilogue<!--
Line 35: Line 38:
   
 
-->{{#switch:{{{2}}}|c=[[Category: Legacy chapter references]]}}<!--
 
-->{{#switch:{{{2}}}|c=[[Category: Legacy chapter references]]}}<!--
-->{{#if:{{{2|}}}||[[Category: Broken chapter references]]}}<!--
+
-->{{#if:{{{part}}}|[[Category: Broken chapter references]]}}<!--
   
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>

Revision as of 13:03, 26 August 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...