Template:Book ref: Difference between revisions
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 2: | Line 2: | ||
{{#if:{{{1|}}} | <!-- Check if book title is provided --> | {{#if:{{{1|}}} | <!-- Check if book title is provided --> | ||
{{#switch:{{lc:{{{1}}}}} | {{#switch:{{lc:{{{1}}}}} | ||
| beast = [[Summary:The Beast of Ten#Chapter {{{2}}}|''The Beast of Ten'', Chapter {{{2}}}]] | | beast = [[Summary:The Beast of Ten#Chapter {{{2}}}|''The Beast of Ten'', Chapter {{{2}}}]] | ||
| tbot = [[Summary:The Beast of Ten#Chapter {{{2}}}|''The Beast of Ten'', Chapter {{{2}}}]] | | tbot = [[Summary:The Beast of Ten#Chapter {{{2}}}|''The Beast of Ten'', Chapter {{{2}}}]] | ||
| Line 25: | Line 10: | ||
| trp = [[Summary:The Ruby Prince#Chapter {{{2}}}|''The Ruby Prince'', Chapter {{{2}}}]] | | trp = [[Summary:The Ruby Prince#Chapter {{{2}}}|''The Ruby Prince'', Chapter {{{2}}}]] | ||
| rp = [[Summary:The Ruby Prince#Chapter {{{2}}}|''The Ruby Prince'', Chapter {{{2}}}]] | | rp = [[Summary:The Ruby Prince#Chapter {{{2}}}|''The Ruby Prince'', Chapter {{{2}}}]] | ||
| twm = [[Summary:The Wanderer's Mark#Chapter {{{2}}}|''The Wanderer's Mark'', Chapter {{{2}}}]] | |||
| wm = [[Summary:The Wanderer's Mark#Chapter {{{2}}}|''The Wanderer's Mark'', Chapter {{{2}}}]] | |||
| tq = [[Summary:The Q#Chapter {{{2}}}|''The Q'', Chapter {{{2}}}]] | | tq = [[Summary:The Q#Chapter {{{2}}}|''The Q'', Chapter {{{2}}}]] | ||
| q = [[Summary:The Q#Chapter {{{2}}}|''The Q'', Chapter {{{2}}}]] | | q = [[Summary:The Q#Chapter {{{2}}}|''The Q'', Chapter {{{2}}}]] | ||
| {{#ifexpr: {{{2}}} > 0 and {{{2}}} <= | | emma1 = [[Summary:Emma M. Lion Volume 1#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 1: {{{3}}} {{{4}}} {{{5}}}]] | ||
| [[Summary:{{{1}}}# | | eml1 = [[Summary:Emma M. Lion Volume 1#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 1: {{{3}}} {{{4}}} {{{5}}}]] | ||
| <span style="color:red">Error: | | e1 = [[Summary:Emma M. Lion Volume 1#{{{3}}} {{{4}}} {{{5}}}]] | ||
| v1 = [[Summary:Emma M. Lion Volume 1#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 1: {{{3}}} {{{4}}} {{{5}}}]] | |||
| emma2 = [[Summary:Emma M. Lion Volume 2#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 2: {{{3}}} {{{4}}} {{{5}}}]] | |||
| eml2 = [[Summary:Emma M. Lion Volume 2#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 2: {{{3}}} {{{4}}} {{{5}}}]] | |||
| e2 = [[Summary:Emma M. Lion Volume 2#{{{3}}} {{{4}}} {{{5}}}]] | |||
| v2 = [[Summary:Emma M. Lion Volume 2#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 2: {{{3}}} {{{4}}} {{{5}}}]] | |||
| emma3 = [[Summary:Emma M. Lion Volume 3#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 3: {{{3}}} {{{4}}} {{{5}}}]] | |||
| eml3 = [[Summary:Emma M. Lion Volume 3#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 3: {{{3}}} {{{4}}} {{{5}}}]] | |||
| e3 = [[Summary:Emma M. Lion Volume 3#{{{3}}} {{{4}}} {{{5}}}]] | |||
| v3 = [[Summary:Emma M. Lion Volume 3#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 3: {{{3}}} {{{4}}} {{{5}}}]] | |||
| emma4 = [[Summary:Emma M. Lion Volume 4#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 4: {{{3}}} {{{4}}} {{{5}}}]] | |||
| eml4 = [[Summary:Emma M. Lion Volume 4#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 4: {{{3}}} {{{4}}} {{{5}}}]] | |||
| e4 = [[Summary:Emma M. Lion Volume 4#{{{3}}} {{{4}}} {{{5}}}]] | |||
| v4 = [[Summary:Emma M. Lion Volume 4#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 4: {{{3}}} {{{4}}} {{{5}}}]] | |||
<!-- Continue this pattern for all volumes, up to Volume 25 --> | |||
| {{#ifexpr: {{{2}}} > 0 and {{{2}}} <= 31 | |||
| [[Summary:{{{1}}}#{{{2}}} {{{3}}} {{{4}}}|''{{{1}}}'', {{{2}}} {{{3}}} {{{4}}}]] | |||
| <span style="color:red">Error: Day exceeds 31</span> | |||
}} | }} | ||
}} | }} | ||
| Line 35: | Line 39: | ||
| name={{{name|{{{1}}}-{{{2}}}}}} | | name={{{name|{{{1}}}-{{{2}}}}}} | ||
| group={{{group|}}} | | group={{{group|}}} | ||
}}</includeonly><noinclude> | }}</includeonly> | ||
<noinclude> | |||
This template is used to refer to chapter summaries on The Reed and Rite. | This template is used to refer to chapter summaries on The Reed and Rite. | ||
Revision as of 23:46, 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