Template:Book ref: Difference between revisions

From The Reed and Rite
No edit summary
Tags: Manual revert 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}}}]]
     | emma1 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 1#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 1: {{{3}}} {{{4}}} {{{5}}}]]
    | tbot = [[Summary:The Beast of Ten#Chapter {{{2}}}|''The Beast of Ten'', Chapter {{{2}}}]]
     | eml1 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 1#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 1: {{{3}}} {{{4}}} {{{5}}}]]
    | bot = [[Summary:The Beast of Ten#Chapter {{{2}}}|''The Beast of Ten'', Chapter {{{2}}}]]
     | e1 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 1#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 1: {{{3}}} {{{4}}} {{{5}}}]]
    | b10 = [[Summary:The Beast of Ten#Chapter {{{2}}}|''The Beast of Ten'', Chapter {{{2}}}]]
     | v1 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 1#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 1: {{{3}}} {{{4}}} {{{5}}}]]
    | tqg = [[Summary:The Queen's Gambit#Chapter {{{2}}}|''The Queen's Gambit'', Chapter {{{2}}}]]
     | emma2 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 2#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 2: {{{3}}} {{{4}}} {{{5}}}]]
    | qg = [[Summary:The Queen's Gambit#Chapter {{{2}}}|''The Queen's Gambit'', Chapter {{{2}}}]]
     | eml2 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 2#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 2: {{{3}}} {{{4}}} {{{5}}}]]
    | trp = [[Summary:The Ruby Prince#Chapter {{{2}}}|''The Ruby Prince'', Chapter {{{2}}}]]
     | e2 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 2#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 2: {{{3}}} {{{4}}} {{{5}}}]]
    | rp = [[Summary:The Ruby Prince#Chapter {{{2}}}|''The Ruby Prince'', Chapter {{{2}}}]]
     | v2 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 2#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 2: {{{3}}} {{{4}}} {{{5}}}]]
    | twm = [[Summary:The Wanderer's Mark#Chapter {{{2}}}|''The Wanderer's Mark'', Chapter {{{2}}}]]
     | emma3 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 3#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 3: {{{3}}} {{{4}}} {{{5}}}]]
    | wm = [[Summary:The Wanderer's Mark#Chapter {{{2}}}|''The Wanderer's Mark'', Chapter {{{2}}}]]
     | eml3 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 3#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 3: {{{3}}} {{{4}}} {{{5}}}]]
    | tq = [[Summary:The Q#Chapter {{{2}}}|''The Q'', Chapter {{{2}}}]]
     | e3 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 3#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 3: {{{3}}} {{{4}}} {{{5}}}]]
    | q = [[Summary:The Q#Chapter {{{2}}}|''The Q'', Chapter {{{2}}}]]
     | v3 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 3#{{{3}}} {{{4}}} {{{5}}}|''Emma, Vol. 3: {{{3}}} {{{4}}} {{{5}}}]]
     | emma1 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 1#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. 1: {{{2}}} {{{3}}} {{{4}}}]]
     <!-- Repeat for more volumes as needed -->
     | eml1 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 1#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. 1: {{{2}}} {{{3}}} {{{4}}}]]
    <!-- Add more volumes as per your requirements -->
     | e1 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 1#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. 1: {{{2}}} {{{3}}} {{{4}}}]]
     | {{#ifexpr: {{{3}}} > 0 and {{{3}}} <= 31
     | v1 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 1#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. 1: {{{2}}} {{{3}}} {{{4}}}]]
         | [[Summary:{{{1}}}#{{{3}}} {{{4}}} {{{5}}}|''{{{1}}}'', {{{3}}} {{{4}}} {{{5}}}]]
     | emma2 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 2#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. 2: {{{2}}} {{{3}}} {{{4}}}]]
     | eml2 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 2#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. 2: {{{2}}} {{{3}}} {{{4}}}]]
     | e2 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 2#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. 2: {{{2}}} {{{3}}} {{{4}}}]]
     | v2 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 2#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. 2: {{{2}}} {{{3}}} {{{4}}}]]
     | emma3 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 3#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. 3: {{{2}}} {{{3}}} {{{4}}}]]
     | eml3 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 3#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. 3: {{{2}}} {{{3}}} {{{4}}}]]
     | e3 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 3#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. 3: {{{2}}} {{{3}}} {{{4}}}]]
    | v3 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 3#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. 3: {{{2}}} {{{3}}} {{{4}}}]]
    | emma4 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 4#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. 4: {{{2}}} {{{3}}} {{{4}}}]]
     | eml4 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 4#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. 4: {{{2}}} {{{3}}} {{{4}}}]]
    | e4 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 4#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. 4: {{{2}}} {{{3}}} {{{4}}}]]
    | v4 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 4#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. 4: {{{2}}} {{{3}}} {{{4}}}]]
     <!-- Continue this pattern for all volumes -->
     | {{#ifexpr: {{{2}}} > 0 and {{{2}}} <= 31
         | [[Summary:The Unselected Journals of Emma M. Lion: Volume {{{1}}}#{{{2}}} {{{3}}} {{{4}}}|''Emma, Vol. {{{1}}}: {{{2}}} {{{3}}} {{{4}}}]]
         | <span style="color:red">Error: Day exceeds 31</span>
         | <span style="color:red">Error: Day exceeds 31</span>
       }}
       }}
   }}
   }}
| <span style="color:red">Error: Missing book title</span>}}
| <span style="color:red">Error: Missing book title</span>}}
| name={{{name|{{{1}}}-{{{2}}}}}}
| name={{{name|{{{1}}}-{{{3}}} {{{4}}} {{{5}}}}}}
| 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 01:01, 19 February 2025


This template is used to refer to chapter summaries on The Reed and Rite.

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