Difference between revisions of "Template:Book ref"

From The Coppermind
Jump to navigation Jump to search
(+analysis template)
(+spacing +x)
Line 13: Line 13:
 
-->{{#if:{{{part|}}}<!--
 
-->{{#if:{{{part|}}}<!--
 
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
 
-->|{{#switch:{{lc:{{{part|}}}|}}<!--
-->|prelude=The Stormlight Archive/Summary#Prelude<!--
+
-->|prelude=The Stormlight Archive/Summary#Prelude<!--
-->|ars=Ars Arcanum#{{b|{{{1}}}|}}<!--
+
-->|ars=Ars Arcanum#{{b|{{{1}}}|}}<!--
-->|ack=Acknowledgements#{{b|{{{1}}}|}}<!--
+
-->|ack=Acknowledgements#{{b|{{{1}}}|}}<!--
-->|{{#if:{{{part|}}}|{{ref/broken|book ref/part}} {{{part}}}|<!-- -->}}<!--
+
-->|{{#if:{{{part|}}}|{{ref/broken|book ref/part}} {{{part}}}|<!-- -->}}<!--
-->}}<!--
+
-->}}<!--
-->|<!--
+
-->|<!--
-->{{b|{{{1}}}|}}<!--
+
-->{{b|{{{1}}}|}}<!--
-->{{#if:{{{2|}}}<!--
+
-->{{#if:{{{2|}}}<!--
-->|/Summary#{{#switch:{{lc:{{{2}}}|}}<!--
+
-->|/Summary#<!--
-->|prologue=Prologue<!--
+
-->{{#switch:{{lc:{{{2}}}|}}<!--
-->|epilogue=Epilogue<!--
+
-->|prologue=Prologue<!--
-->|endnote=Endnote<!--
+
-->|epilogue=Epilogue<!--
-->|i|interlude=Interlude_I-{{{3}}}<!--
+
-->|endnote=Endnote<!--
-->|day=Day_{{{3}}}<!--
+
-->|i|interlude=Interlude_I-{{{3}}}<!--
-->|c=Chapter_{{{3}}}<!--
+
-->|day=Day_{{{3}}}<!--
-->|Chapter_{{{2}}}<!--
+
-->|c=Chapter_{{{3}}}<!--
-->}}<!--
+
-->|Chapter_{{{2}}}<!--
-->}}|{{book ref/chapterless}}<!--
+
-->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
   
Line 36: Line 37:
   
 
LINK TEXT
 
LINK TEXT
-->{{#if:{{{part|}}}<!--
+
-->{{#if:{{{part|}}}<!--
-->|{{#switch:{{lc:{{{part}}}|}}<!--
+
-->|{{#switch:{{lc:{{{part}}}|}}<!--
-->|prelude=Prelude to the ''Stormlight Archive''<!--
+
-->|prelude=Prelude to the ''Stormlight Archive''<!--
-->|ars=''{{b|{{{1}}}|}}'' Ars Arcanum<!--
+
-->|ars=''{{b|{{{1}}}|}}'' Ars Arcanum<!--
-->|ack=Acknowledgement for ''{{b|{{{1}}}|}}''<!--
+
-->|ack=Acknowledgement for ''{{b|{{{1}}}|}}''<!--
 
-->}}<!--
 
-->|''{{b|{{{1}}}|}}''<!--
 
-->{{#if:{{{2|}}}<!--
  +
-->|&#32;<!--
 
-->{{#switch:{{lc:{{{2}}}|}}<!--
 
-->|prologue=prologue<!--
 
-->|epilogue=epilogue<!--
 
-->|endnote=endnote<!--
 
-->|i|interlude=interlude I-{{{3}}}<!--
  +
-->|day=- Day {{{3}}}<!--
  +
-->|c={{book ref/c}}chapter {{{2}}}<!--
  +
-->|chapter {{{2}}}<!--
  +
-->}}<!--
  +
-->|{{book ref/chapterless}}<!--
  +
-->}}<!--
 
-->}}<!--
 
-->}}<!--
-->|''{{b|{{{1}}}|}}''{{#if:{{{2|}}}|&nbsp;{{#switch:{{lc:{{{2}}}|}}<!--
 
-->|prologue=prologue<!--
 
-->|epilogue=epilogue<!--
 
-->|endnote=endnote<!--
 
-->|i|interlude=interlude I-{{{3}}}<!--
 
-->|day=- Day {{{3}}}<!--
 
-->|c={{book ref/c}}chapter {{{2}}}<!--
 
-->|chapter {{{2}}}<!--
 
-->}}|}}|}}<!--
 
   
 
-->]]<!--
 
-->]]<!--

Revision as of 21:08, 22 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...