Template:Book ref: Difference between revisions

From The Reed and Rite
mNo edit summary
m Removed background color to allow dynamic color shift in dark mode.
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{infobox|}}} | {{#if:{{{1|}}} | {{#switch:{{lc:{{{1}}}}}
<includeonly>{{#if:{{{link|}}}<!--
   | beast | tbot | bot | b10 = [[Summary:The Beast of Ten#{{#switch:{{{2}}}
 
    | 1 = I
PASS "|link=y" TO REMOVE REFERENCE TAG AND INSERT A PLAINLINK
    | 2 = II
-->| {{#if:{{{1|}}}<!--
    | 3 = III
  -->| {{#switch:{{lc:{{{2}}}}}<!--
    | 4 = IV
   -->| prologue = [[Summary:{{B|{{{1}}}}}#Prologue|''{{B|{{{1}}}}}'', Prologue]]<!--
    | 5 = V
   -->| epilogue = [[Summary:{{B|{{{1}}}}}#Epilogue|''{{B|{{{1}}}}}'', Epilogue]]<!--
    | 6 = VI
   -->| {{#ifexpr: {{{2}}} > 0 and {{{2}}} <= 75<!--
    | 7 = VII
    -->| [[Summary:{{B|{{{1}}}}}#Chapter_{{{2}}}|''{{B|{{{1}}}}}'', Chapter {{{2}}}]]<!--
    | 8 = VIII
    -->| <span style="color:red">Error: Chapter exceeds 75</span><!--
    | 9 = IX
  -->}}<!--
    | 10 = X
   -->}}<!--
    | 11 = XI
  -->| <span style="color:red">Error: Missing book title</span><!--
    | 12 = XII
-->}}<!--
    | 13 = XIII
 
    | 14 = XIV
ADD A REFERENCE FOOTNOTE TO BOOK SUMMARY
    | 15 = XV
  -->| {{#tag:ref|<!--
    | 16 = XVI
   -->{{#if:{{{1|}}}<!--
    | 17 = XVII
  -->| {{#switch:{{lc:{{{2}}}}}<!--
    | 18 = XVIII
     -->| prologue = [[Summary:{{B|{{{1}}}}}#Prologue|''{{B|{{{1}}}}}'', Prologue]]<!--
    | 19 = XIX
     -->| epilogue = [[Summary:{{B|{{{1}}}}}#Epilogue|''{{B|{{{1}}}}}'', Epilogue]]<!--
    | 20 = XX
     -->| {{#ifexpr: {{{2}}} > 0 and {{{2}}} <= 75<!--
    | 21 = XXI
    -->| [[Summary:{{B|{{{1}}}}}#Chapter_{{{2}}}|''{{B|{{{1}}}}}'', Chapter {{{2}}}]]<!--
    | 22 = XXII
    -->| <span style="color:red">Error: Chapter exceeds 75</span><!--
    | 23 = XXIII
    -->}}<!--
    | 24 = XXIV
   -->}}<!--
    | 25 = XXV
  -->| <span style="color:red">Error: Missing book title</span><!--
    | 26 = XXVI
  -->}}<!--
    | 27 = XXVII
   -->| name={{{name|{{{1}}}-{{{2}}}}}}<!--
    | 28 = XXVIII
   -->| group={{{group|}}}<!--
    | 29 = XXIX
  -->}}<!--
    | epilogue = Epilogue
-->}}</includeonly><noinclude>
    | #default = {{{2}}}
  }}|''The Beast of Ten'', {{#switch:{{lc:{{{2}}}}}
    | epilogue = Epilogue
    | #default = Chapter {{{2}}}
  }}]]
  | tqg | qg | i1 | imirillia1 = [[Summary:The Queen's Gambit#{{#switch:{{lc:{{{2}}}}}
    | prologue = Prologue
    | #default = Chapter {{{2}}}
  }}|''The Queen's Gambit'', {{#switch:{{lc:{{{2}}}}}
    | prologue = Prologue
    | #default = Chapter {{{2}}}
  }}]]
   | trp | rp | i2 | imirillia2 = [[Summary:The Ruby Prince#Chapter {{{2}}}|''The Ruby Prince'', Chapter {{{2}}}]]
  | twm | wm | i3 | imirillia3 = [[Summary:The Wanderer's Mark#Chapter {{{2}}}|''The Wanderer's Mark'', Chapter {{{2}}}]]
  | tq | q = [[Summary:The Q#{{#switch:{{{2}}}
    | 1 = Chapter One: The Q
    | 2 = Chapter Two: Arch Enemy
    | 3 = Chapter Three: Crow, Boy Blue, and Other Affairs
    | 4 = Chapter Four: Funeral Expenses
    | 5 = Chapter Five: In Memoriam
    | 6 = Chapter Six: A Smuggler, Quincy?
    | 7 = Chapter Seven: Q is for The Q
    | 8 = Chapter Eight: “Forgive Me?”—Boy Blue
    | 9 = Chapter Nine: Lester’s Ghosts
    | 10 = Chapter Ten: Quincy En Vogue
    | 11 = Chapter Eleven: A Hunting We Will Go
    | 12 = Chapter Twelve: Society and St. Claire
    | 13 = Chapter Thirteen: Don’t Tell Me My Business
    | 14 = Chapter Fourteen: The Trouble a Man Can Come To Before Eight O’clock
    | 15 = Chapter Fifteen: Saint Ezekiel’s Day
    | 16 = Chapter Sixteen: To Challenge Atlas in His Place
    | 17 = Chapter Seventeen: Theater Manners, Quincy!
    | 18 = Chapter Eighteen: Sweet Cakes and Innocent Romance
    | 19 = Chapter Nineteen: Time Off?
    | 20 = Chapter Twenty: My Lord
    | 21 = Chapter Twenty-One: Love Will Make Fools of Us All, Big and Little
    | 22 = Chapter Twenty-Two: Now This
    | 23 = Chapter Twenty-Three: Lazy Excuse for a Solicitor
    | 24 = Chapter Twenty-Four: Peacock House
    | 25 = Chapter Twenty-Five: Secrets and Farewells
    | 26 = Chapter Twenty-Six: Pandora’s Box
    | 27 = Chapter Twenty-Seven: Paris
    | 28 = Chapter Twenty-Eight: Ma Chérie
    | 29 = Chapter Twenty-Nine: The Cat’s Out of the Bag
    | 30 = Chapter Thirty: No Rest for the Wicked
    | 31 = Chapter Thirty-One: Let the Cider Press Be, Quincy
    | 32 = Chapter Thirty-Two: Sharp Edges
    | 33 = Chapter Thirty-Three: Questions and Answers
    | 34 = Chapter Thirty-Four: All Hallows’ Eve
    | 35 = Chapter Thirty-Five: Beija Flor
    | 36 = Chapter Thirty-Six: Old Blood
    | 37 = Chapter Thirty-Seven: Lazarus
    | 38 = Chapter Thirty-Eight: Indispensible
    | 39 = Chapter Thirty-Nine: I Don’t Care, I Really Don’t
    | 40 = Chapter Forty: Father v. Son
    | 41 = Chapter Forty-One: Why Not, Indeed
    | 42 = Chapter Forty-Two: December
    | 43 = Chapter Forty-Three: Cats and Kings
    | 44 = Chapter Forty-Four: The Fothergils’ Ball
    | 45 = Chapter Forty-Five: He’s a Good Man, Arch
    | 46 = Chapter Forty-Six: Be Brave, Quincy
    | 47 = Chapter Forty-Seven: A Great Mistake
    | 48 = Chapter Forty-Eight: A Damned Shame
    | 49 = Chapter Forty-Nine: This Mysterious War
    | 50 = Chapter Fifty: Merry and Bright, and All That
    | 51 = Chapter Fifty-One: The Art of Mourning
    | 52 = Chapter Fifty-Two: Fools and Their Windows
    | 53 = Chapter Fifty-Three: What Can You Live Without?
    | 54 = Chapter Fifty-Four: For James Arch
    | 55 = Chapter Fifty-Five: Q is for Quincy
    | #default = Chapter {{{2}}}
  }}|''The Q'', Chapter {{{2}}}]]
   | {{#ifexpr: {{{2}}} > 0 and {{{2}}} <= 75
      | [[Summary:{{{1}}}#Chapter_{{{2}}}|''{{{1}}}'', Chapter {{{2}}}]]
      | <span style="color:red">Error: Chapter exceeds 75</span>
    }}
   }}
| <span style="color:red">Error: Missing book title</span>}}
  | {{#tag:ref|
   {{#if:{{{1|}}} | {{#switch:{{lc:{{{1}}}}}
     | beast | tbot | bot | b10 = [[Summary:The Beast of Ten#{{#switch:{{{2}}}
    | 1 = I
    | 2 = II
    | 3 = III
    | 4 = IV
    | 5 = V
    | 6 = VI
    | 7 = VII
    | 8 = VIII
    | 9 = IX
    | 10 = X
    | 11 = XI
    | 12 = XII
    | 13 = XIII
    | 14 = XIV
    | 15 = XV
    | 16 = XVI
    | 17 = XVII
    | 18 = XVIII
    | 19 = XIX
    | 20 = XX
    | 21 = XXI
    | 22 = XXII
    | 23 = XXIII
    | 24 = XXIV
    | 25 = XXV
    | 26 = XXVI
    | 27 = XXVII
    | 28 = XXVIII
    | 29 = XXIX
    | epilogue = Epilogue
    | #default = {{{2}}}
  }}|''The Beast of Ten'', {{#switch:{{lc:{{{2}}}}}
    | epilogue = Epilogue
    | #default = Chapter {{{2}}}
  }}]]
    | tqg | qg | i1 | imirillia1 = [[Summary:The Queen's Gambit#{{#switch:{{lc:{{{2}}}}}
    | prologue = Prologue
    | #default = Chapter {{{2}}}
  }}|''The Queen's Gambit'', {{#switch:{{lc:{{{2}}}}}
    | prologue = Prologue
    | #default = Chapter {{{2}}}
  }}]]
     | trp | rp | i2 | imirillia2 = [[Summary:The Ruby Prince#Chapter {{{2}}}|''The Ruby Prince'', Chapter {{{2}}}]]
    | twm | wm | i3 | imirillia3 = [[Summary:The Wanderer's Mark#Chapter {{{2}}}|''The Wanderer's Mark'', Chapter {{{2}}}]]
    | tq | q = [[Summary:The Q#{{#switch:{{{2}}}
    | 1 = Chapter One: The Q
    | 2 = Chapter Two: Arch Enemy
    | 3 = Chapter Three: Crow, Boy Blue, and Other Affairs
    | 4 = Chapter Four: Funeral Expenses
    | 5 = Chapter Five: In Memoriam
    | 6 = Chapter Six: A Smuggler, Quincy?
    | 7 = Chapter Seven: Q is for The Q
    | 8 = Chapter Eight: “Forgive Me?”—Boy Blue
    | 9 = Chapter Nine: Lester’s Ghosts
    | 10 = Chapter Ten: Quincy En Vogue
    | 11 = Chapter Eleven: A Hunting We Will Go
    | 12 = Chapter Twelve: Society and St. Claire
    | 13 = Chapter Thirteen: Don’t Tell Me My Business
    | 14 = Chapter Fourteen: The Trouble a Man Can Come To Before Eight O’clock
    | 15 = Chapter Fifteen: Saint Ezekiel’s Day
    | 16 = Chapter Sixteen: To Challenge Atlas in His Place
    | 17 = Chapter Seventeen: Theater Manners, Quincy!
    | 18 = Chapter Eighteen: Sweet Cakes and Innocent Romance
    | 19 = Chapter Nineteen: Time Off?
    | 20 = Chapter Twenty: My Lord
    | 21 = Chapter Twenty-One: Love Will Make Fools of Us All, Big and Little
    | 22 = Chapter Twenty-Two: Now This
    | 23 = Chapter Twenty-Three: Lazy Excuse for a Solicitor
    | 24 = Chapter Twenty-Four: Peacock House
    | 25 = Chapter Twenty-Five: Secrets and Farewells
    | 26 = Chapter Twenty-Six: Pandora’s Box
    | 27 = Chapter Twenty-Seven: Paris
    | 28 = Chapter Twenty-Eight: Ma Chérie
    | 29 = Chapter Twenty-Nine: The Cat’s Out of the Bag
    | 30 = Chapter Thirty: No Rest for the Wicked
    | 31 = Chapter Thirty-One: Let the Cider Press Be, Quincy
    | 32 = Chapter Thirty-Two: Sharp Edges
    | 33 = Chapter Thirty-Three: Questions and Answers
    | 34 = Chapter Thirty-Four: All Hallows’ Eve
    | 35 = Chapter Thirty-Five: Beija Flor
    | 36 = Chapter Thirty-Six: Old Blood
    | 37 = Chapter Thirty-Seven: Lazarus
    | 38 = Chapter Thirty-Eight: Indispensible
    | 39 = Chapter Thirty-Nine: I Don’t Care, I Really Don’t
    | 40 = Chapter Forty: Father v. Son
    | 41 = Chapter Forty-One: Why Not, Indeed
    | 42 = Chapter Forty-Two: December
    | 43 = Chapter Forty-Three: Cats and Kings
    | 44 = Chapter Forty-Four: The Fothergils’ Ball
    | 45 = Chapter Forty-Five: He’s a Good Man, Arch
    | 46 = Chapter Forty-Six: Be Brave, Quincy
    | 47 = Chapter Forty-Seven: A Great Mistake
    | 48 = Chapter Forty-Eight: A Damned Shame
    | 49 = Chapter Forty-Nine: This Mysterious War
    | 50 = Chapter Fifty: Merry and Bright, and All That
    | 51 = Chapter Fifty-One: The Art of Mourning
    | 52 = Chapter Fifty-Two: Fools and Their Windows
    | 53 = Chapter Fifty-Three: What Can You Live Without?
    | 54 = Chapter Fifty-Four: For James Arch
    | 55 = Chapter Fifty-Five: Q is for Quincy
    | #default = Chapter {{{2}}}
  }}|''The Q'', Chapter {{{2}}}]]
     | {{#ifexpr: {{{2}}} > 0 and {{{2}}} <= 75
        | [[Summary:{{{1}}}#Chapter_{{{2}}}|''{{{1}}}'', Chapter {{{2}}}]]
        | <span style="color:red">Error: Chapter exceeds 75</span>
      }}
   }}
  | <span style="color:red">Error: Missing book title</span>}}
   | name={{{name|{{{1}}}-{{{2}}}}}}
   | group={{{group|}}}
  }}
}}</includeonly><noinclude>
== Description ==
== Description ==
{{for|Template:Emma ref|linking to a Emma M. Lion chapter summary}}
{{for|Template:Emma ref|linking to a Emma M. Lion chapter summary}}
This template is used to create a reference with a footnote that links to book's chapter summary of a non-Emma M. Lion book.
This template is used to create a reference with a footnote that links to a book's chapter summary of a non-Emma M. Lion book. It can also be used to insert a simple link to a chapter summary instead of a reference. For more information on using references, see [[:Help:References]].


== Usage ==
== Usage ==
To use, include {{t|book ref|BOOK|CHAPTER}}
To use, include {{t|book ref|BOOK|CHAPTER}}
* Replace <code>BOOK</code> with the appropriate abbreviation from the table below.
* Replace <code>BOOK</code> with the appropriate abbreviation from the [[:Template:Book ref#Accepted Abbreviations|table below]].
* <code>CHAPTER</code> should be the chapter number, <code>prologue</code>, or <code>epilogue</code>
* <code>CHAPTER</code> should be the chapter number, <code>prologue</code>, or <code>epilogue</code>


{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Basic Usage</span><br><div style="text-align: left;"><span style="font-weight: normal;">This example displays the basic usage of the template to create a footnote with a link to a specific chapter on a [[:Category:Summary|Summary page]].</span></div>
|-
! width=55%|You Type
!You Get
|-
| style="text-align: left;" |<pre>The Q is located on Gainsford Street.{{book ref|tq|1}}
== Notes ==
<references /></pre>
|
The Q is located on Gainsford Street.{{book ref|tq|1}}
<span style="display: block; font-size: 1.65em; font-family: serif; font-weight: normal; margin-top: 1em; border-bottom: 1px solid #a2a9b1;">Notes</span>
<references />
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Nickname a Reference for Repeated Use</span><br><div style="text-align: left;"><span style="font-weight: normal;">If you use the same reference multiple times on the same page, you can assign that reference a nickname by passing <code>name=</code>. Then using {{t|ref}} with the same <code>name=</code> parameter for every other use of that reference.</span></div>
|-
! width=50%|You Type
!You Get
|-
| style="text-align: left;" |<pre>Queen Eleanor studies papers of state in the garden.{{book ref|qg|1|name=qg1}}
She is approached by a stranger.{{ref|name=qg1}}
== Notes ==
<references /></pre>
|
Queen Eleanor studies papers of state in the garden.{{book ref|qg|1|name=qg1}}
She is approached by a stranger.{{ref|name=qg1}}
<span style="display: block; font-size: 1.65em; font-family: serif; font-weight: normal; margin-top: 1em; border-bottom: 1px solid #a2a9b1;">Notes</span>
<references />
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Plain Link, Instead of Reference</span><br><div style="text-align: left;"><span style="font-weight: normal;">Occasionally, you may find it useful to insert a plain link to a chapter summary instead of a reference footnote. (Such as when inserting a reference in an infobox.) To do this, simply append <code>link=y</code> at the end of the template call.</span></div>
|-
! width=50%|You Type
!You Get
|-
| style="text-align: center;" |<pre>{{book ref|beast|epilogue|link=y}}</pre>
|{{book ref|beast|epilogue|link=y}}
|}
=== Accepted Abbreviations ===
The following abbreviations are accepted, as defined by template {{t|b}}:
{| class="wikitable" width="50%"
{| class="wikitable" width="50%"
! class="title" width="40%" | Book
! class="title" width="40%" | Book
Line 252: Line 108:
| <code>tq</code>, <code>q</code>
| <code>tq</code>, <code>q</code>
|}
|}
== Articles using Template ==
:{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=100|limit=100}}


[[Category: Reference Templates]]
[[Category: Reference Templates]]

Latest revision as of 22:45, 27 May 2025

Description

This template is used to create a reference with a footnote that links to a book's chapter summary of a non-Emma M. Lion book. It can also be used to insert a simple link to a chapter summary instead of a reference. For more information on using references, see Help:References.

Usage

To use, include {{book ref|BOOK|CHAPTER}}

  • Replace BOOK with the appropriate abbreviation from the table below.
  • CHAPTER should be the chapter number, prologue, or epilogue


Basic Usage
This example displays the basic usage of the template to create a footnote with a link to a specific chapter on a Summary page.
You Type You Get
The Q is located on Gainsford Street.{{book ref|tq|1}}

== Notes ==
<references />

The Q is located on Gainsford Street.[1]

Notes

Nickname a Reference for Repeated Use
If you use the same reference multiple times on the same page, you can assign that reference a nickname by passing name=. Then using {{ref}} with the same name= parameter for every other use of that reference.
You Type You Get
Queen Eleanor studies papers of state in the garden.{{book ref|qg|1|name=qg1}}

She is approached by a stranger.{{ref|name=qg1}}

== Notes ==
<references />

Queen Eleanor studies papers of state in the garden.[1]

She is approached by a stranger.[1]

Notes

Plain Link, Instead of Reference
Occasionally, you may find it useful to insert a plain link to a chapter summary instead of a reference footnote. (Such as when inserting a reference in an infobox.) To do this, simply append link=y at the end of the template call.
You Type You Get
{{book ref|beast|epilogue|link=y}}
The Beast of Ten, Epilogue


Accepted Abbreviations

The following abbreviations are accepted, as defined by template {{b}}:

Book Accepted Abbreviations
The Beast of Ten beast, tbot, bot, b10
The Queen's Gambit i1, imirillia1, tqg, qg
The Ruby Prince i2, imirillia2, trp, rp
The Wanderer's Mark i3, imirillia3, twm, wm
The Q tq, q

Articles using Template