Difference between revisions of "Template:Book ref"

From The Coppermind
Jump to navigation Jump to search
m
m (try)
Line 5: Line 5:
   
 
LINK
 
LINK
  +
-->{{#if:{{{part|}}}<!--
  +
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
  +
-->|prelude=The Stormlight Archive/Summary#Prelude<!--
  +
-->|ars={{b|{{{1}}}|}}/Ars_Arcanum<!--
  +
-->}}<!--
  +
-->|<!--
 
-->{{b|{{{1}}}|}}<!--
 
-->{{b|{{{1}}}|}}<!--
-->{{#if:{{{2|}}}<!--
+
-->{{#if:{{{2|}}}<!--
 
-->|/Summary#{{#switch:{{lc:{{{2}}}|}}<!--
 
-->|/Summary#{{#switch:{{lc:{{{2}}}|}}<!--
 
-->|prologue=Prologue<!--
 
-->|prologue=Prologue<!--
Line 14: Line 20:
 
-->|Chapter_{{{3|{{{2}}}|}}}<!--
 
-->|Chapter_{{{3|{{{2}}}|}}}<!--
 
-->}}<!--
 
-->}}<!--
-->}}<!--
+
-->}}|}}<!--
   
 
-->|<!--
 
-->|<!--
   
 
LINK TEXT
 
LINK TEXT
-->''{{b|{{{1}}}|}}''{{#if:{{{2|}}}|&nbsp;{{#switch:{{lc:{{{2}}}|}}<!--
+
-->{{#if:{{{part|}}}<!--
  +
-->|{{#switch:{{lc:{{{part}}}|}}<!--
  +
-->|prelude=Prelude to the ''Stormlight Archive''<!--
  +
-->|ars=''{{b|{{{1}}}|}}'' Ars Arcanum<!--
  +
-->}}<!--
  +
-->|''{{b|{{{1}}}|}}''{{#if:{{{2|}}}|&nbsp;{{#switch:{{lc:{{{2}}}|}}<!--
 
-->|prologue=prologue<!--
 
-->|prologue=prologue<!--
 
-->|epilogue=epilogue<!--
 
-->|epilogue=epilogue<!--
Line 25: Line 36:
 
-->|day=- Day {{{3}}}<!--
 
-->|day=- Day {{{3}}}<!--
 
-->|chapter {{{3|{{{2}}}|}}}<!--
 
-->|chapter {{{3|{{{2}}}|}}}<!--
-->}}|}}<!--
+
-->}}|}}|}}<!--
   
 
-->]]{{{post|}}}<!--
 
-->]]{{{post|}}}<!--

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