Template:Book ref: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#tag:ref| | <includeonly>{{#tag:ref| | ||
{{#if:{{{1|}}}|<!-- Check if book title is provided --> | |||
{{#if:{{{2|}}}|<!-- Check if chapter/prologue/epilogue is provided --> | |||
{{#ifexpr: {{{2}}} > 0 and {{{2}}} <= 75 <!-- Limit chapters to 75 --> | |||
| [[Summary:{{{1}}}#Chapter_{{{2}}}|''{{{1}}}'', chapter {{{2}}}]] | |||
}}|''{{{1}}}'', {{#switch:{{lc:{{{2}}}}} | | {{#switch:{{lc:{{{2}}}}} | ||
| prologue = [[Summary:{{{1}}}#Prologue|''{{{1}}}'', prologue]] | |||
| epilogue = [[Summary:{{{1}}}#Epilogue|''{{{1}}}'', epilogue]] | |||
| {{#ifexpr: {{{2}}} > 75 | <span style="color:red">Error: Chapter exceeds 75</span> }} | |||
}} | }} | ||
}} | |||
| <span style="color:red">Error: Missing chapter, prologue, or epilogue</span>}} | |||
| <span style="color:red">Error: Missing book title</span>}} | |||
| name={{{name|{{{1}}}-{{{2}}}}}} | | name={{{name|{{{1}}}-{{{2}}}}}} | ||
| group={{{group|}}} | | group={{{group|}}} | ||
Revision as of 21:27, 18 February 2025
This template is used to refer to chapter summaries on The Reed and Rite.
To use, include {{book ref|book|chapter}}
- Replace
bookwith the appropriate code from{{b}} chaptershould be the chapter number,prologue, orepilogue- 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
chapterwithi|number, where the latter is the interlude number - For parts that aren't any of the above, replace
chapterwithpart=name; for example,part=arsfor 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