Template:Book ref: Difference between revisions

mNo edit summary
m Removed background color to allow dynamic color shift in dark mode.
 
(9 intermediate revisions by the same user not shown)
Line 37: Line 37:
== 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>


Line 43: Line 43:
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Title</span><br><div style="text-align: left;"><span style="font-weight: normal;">Explanation</span></div>
! 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=50%|You Type
! width=55%|You Type
!You Get
!You Get
|-
|-
| style="text-align: left; background-color: white;" |<pre>The Q is located on Gainsford Street.{{book ref|tq|1}}
| style="text-align: left;" |<pre>The Q is located on Gainsford Street.{{book ref|tq|1}}


== Notes ==
== Notes ==
<references /></pre>
<references /></pre>
| style="background-color: white;" |
|
The Q is located on Gainsford Street.{{book ref|tq|1}}
The Q is located on Gainsford Street.{{book ref|tq|1}}


Line 58: Line 58:
<references />
<references />
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Title 2</span><br><div style="text-align: left;"><span style="font-weight: normal;">Explanation 2</span></div>
! 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
! width=50%|You Type
!You Get
!You Get
|-
|-
| style="text-align: left; background-color: white;" |<pre>Queen Eleanor studies papers of state in the garden.{{book ref|qg|1|name=qg1}}
| 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}}
She is approached by a stranger.{{ref|name=qg1}}
Line 69: Line 69:
== Notes ==
== Notes ==
<references /></pre>
<references /></pre>
| style="background-color: white;" |
|
Queen Eleanor studies papers of state in the garden.{{book ref|qg|1|name=qg1}}
Queen Eleanor studies papers of state in the garden.{{book ref|qg|1|name=qg1}}


Line 77: Line 77:
<references />
<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;">Explanation 2</span></div>
! 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
! width=50%|You Type
!You Get
!You Get
|-
|-
| style="text-align: center; background-color: white;" |<pre>{{book ref|beast|1|link=y}}</pre>
| style="text-align: center;" |<pre>{{book ref|beast|epilogue|link=y}}</pre>
| style="background-color: white;" |{{book ref|beast|1|link=y}}
|{{book ref|beast|epilogue|link=y}}
|}
|}




=== Accepted Abbreviations ===
=== 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