Template:Book ref: Difference between revisions

From The Reed and Rite
Created page with "<includeonly>{{#tag:ref| [[Summary:{{{1}}}#{{#switch:{{lc:{{{2}}}}} | prologue = Prologue | epilogue = Epilogue | {{#ifexpr:{{{2}}} > 0|Chapter_{{{2}}}}} }}|''{{{1}}}'', {{#switch:{{lc:{{{2}}}}} | prologue = prologue | epilogue = epilogue | {{#ifexpr:{{{2}}} > 0|chapter {{{2}}}}} }}'']] | name={{{name|{{{1}}}-{{{2}}}}}} | group={{{group|}}} }}</includeonly><noinclude> This template is used to refer to chapter summaries on the coppermind. To use, include {{t|book r..."
 
No edit summary
Line 1: Line 1:
<includeonly>{{#tag:ref|
<includeonly>{{#if:{{{1|}}}|
[[Summary:{{{1}}}#{{#switch:{{lc:{{{2}}}}}
  {{#switch:{{lc:{{{2|}}}}}
| prologue = Prologue
    | prologue = [[Summary:{{{1}}}#Prologue|''{{{1}}}'', Prologue]]
| epilogue = Epilogue
    | epilogue = [[Summary:{{{1}}}#Epilogue|''{{{1}}}'', Epilogue]]
| {{#ifexpr:{{{2}}} > 0|Chapter_{{{2}}}}}
    | #default = {{#ifexpr: {{{2|0}}} >= 1 and {{{2|0}}} <= 75
}}|''{{{1}}}'', {{#switch:{{lc:{{{2}}}}}
        | [[Summary:{{{1}}}#Chapter_{{{2}}}|''{{{1}}}'', Chapter {{{2}}}]]
| prologue = prologue
        | '''Error: Invalid chapter number. Must be between 1 and 75, or "prologue"/"epilogue".'''}}
| epilogue = epilogue
  }}
| {{#ifexpr:{{{2}}} > 0|chapter {{{2}}}}}
| '''Error: Missing book title in reference.'''
}}'']]
| name={{{name|{{{1}}}-{{{2}}}}}}
| group={{{group|}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
This template is used to refer to chapter summaries on the coppermind.
This template is used to refer to chapter summaries on the coppermind.

Revision as of 21:19, 18 February 2025

This template is used to refer to chapter summaries on the coppermind.

To use, include {{book ref|book|chapter}}

  • Replace book with the appropriate code from {{b}}
  • chapter should be the chapter number, prologue, or epilogue
  • When referencing chapters which have names in place of numbers, such as several chapters in the Alcatraz books, use the name of the chapter in place of a number. For example: {{book ref|a5|mary}}
  • When referring to interludes, replace chapter with i|number, where the latter is the interlude number
  • For parts that aren't any of the above, replace chapter with part=name; for example, part=ars for Ars Arcanum (don't use this for parts that are comprised of multiple chapters, like in The Stormlight Archive books; always reference a specific chapter, or put {{cite}} if you can't find it)
  • {{{pre}}} is included before the link
  • {{{post}}} is included after the link
  • {{{name}}} replaces the generated reference name
  • {{{group}}} sets the reference group