Template:Emma ref: Difference between revisions

From The Reed and Rite
No edit summary
m Removed background color to allow dynamic color shift in dark mode.
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#tag:ref|
<includeonly>{{#if:{{{link|}}} | {{#if:{{{1|}}} | {{#switch:{{lc:{{{1}}}}}
{{#if:{{{1|}}} | <!-- Check if book title (volume) is provided -->
  | e1 | emma1 | eml1 | v1 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 1'', {{#time:j F Y|{{{2}}}}}]]
  {{#switch:{{lc:{{{1}}}}}
  | e2 | emma2 | eml2 | v2 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 2'', {{#time:j F Y|{{{2}}}}}]]
    | e1 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 1#{{{2}}} {{#switch:{{lc:{{{3}}}}}  
  | e3 | emma3 | eml3 | v3 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 3'', {{#time:j F Y|{{{2}}}}}]]
      | 1 | jan | january = January
  | e4 | emma4 | eml4 | v4 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 4'', {{#time:j F Y|{{{2}}}}}]]
      | 2 | feb | february = February
  | e5 | emma5 | eml5 | v5 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 5'', {{#time:j F Y|{{{2}}}}}]]
      | 3 | mar | march = March
  | e6 | emma6 | eml6 | v6 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 6'', {{#time:j F Y|{{{2}}}}}]]
      | 4 | apr | april = April
  | e7 | emma7 | eml7 | v7 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 7'', {{#time:j F Y|{{{2}}}}}]]
      | 5 | may = May
  | e8 | emma8 | eml8 | v8 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 8'', {{#time:j F Y|{{{2}}}}}]]
      | 6 | jun | june = June
  | #default = <span style="color:red">Error: Invalid volume</span>
      | 7 | jul | july = July
      | 8 | aug | august = August
      | 9 | sep | sept | september = September
      | 10 | oct | october = October
      | 11 | nov | november = November
      | 12 | dec | december = December
      | #default = <span style="color:red">Error: Invalid month</span>}} {{{4}}}|''Emma, Vol. 1'': {{{2}}} {{#switch:{{lc:{{{3}}}}}  
      | 1 | jan | january = January
      | 2 | feb | february = February
      | 3 | mar | march = March
      | 4 | apr | april = April
      | 5 | may = May
      | 6 | jun | june = June
      | 7 | jul | july = July
      | 8 | aug | august = August
      | 9 | sep | sept | september = September
      | 10 | oct | october = October
      | 11 | nov | november = November
      | 12 | dec | december = December
      | #default = <span style="color:red">Error: Invalid month</span>}} {{{4}}}]]
    | e2 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 2#{{{2}}} {{#switch:{{lc:{{{3}}}}}  
      | 1 | jan | january = January
      | 2 | feb | february = February
      | 3 | mar | march = March
      | 4 | apr | april = April
      | 5 | may = May
      | 6 | jun | june = June
      | 7 | jul | july = July
      | 8 | aug | august = August
      | 9 | sep | sept | september = September
      | 10 | oct | october = October
      | 11 | nov | november = November
      | 12 | dec | december = December
      | #default = <span style="color:red">Error: Invalid month</span>}} {{{4}}}|''Emma, Vol. 2'': {{{2}}} {{#switch:{{lc:{{{3}}}}}  
      | 1 | jan | january = January
      | 2 | feb | february = February
      | 3 | mar | march = March
      | 4 | apr | april = April
      | 5 | may = May
      | 6 | jun | june = June
      | 7 | jul | july = July
      | 8 | aug | august = August
      | 9 | sep | sept | september = September
      | 10 | oct | october = October
      | 11 | nov | november = November
      | 12 | dec | december = December
      | #default = <span style="color:red">Error: Invalid month</span>}} {{{4}}}]]
   }}
   }}
| <span style="color:red">Error: Missing volume</span>}}
| <span style="color:red">Error: Missing volume</span>}}
| name={{{name|{{{1}}}-{{{2}}}-{{{3}}}-{{{4}}}}}}
| {{#tag:ref|
| group={{{group|}}}
  {{#if:{{{1|}}} | {{#switch:{{lc:{{{1}}}}}
    | e1 | emma1 | eml1 | v1 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 1'', {{#time:j F Y|{{{2}}}}}]]
    | e2 | emma2 | eml2 | v2 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 2'', {{#time:j F Y|{{{2}}}}}]]
    | e3 | emma3 | eml3 | v3 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 3'', {{#time:j F Y|{{{2}}}}}]]
    | e4 | emma4 | eml4 | v4 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 4'', {{#time:j F Y|{{{2}}}}}]]
    | e5 | emma5 | eml5 | v5 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 5'', {{#time:j F Y|{{{2}}}}}]]
    | e6 | emma6 | eml6 | v6 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 6'', {{#time:j F Y|{{{2}}}}}]]
    | e7 | emma7 | eml7 | v7 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 7'', {{#time:j F Y|{{{2}}}}}]]
    | e8 | emma8 | eml8 | v8 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 8'', {{#time:j F Y|{{{2}}}}}]]
    | #default = <span style="color:red">Error: Invalid volume</span>
  }}
  | <span style="color:red">Error: Missing volume</span>}}
  | name={{{name|{{{1}}}-{{#time:Y-m-d|{{{2}}}}}}}}
  | group={{{group|}}}
}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
== Description ==
{{for|Template:Book ref|linking to a non-Emma M. Lion chapter summary}}
This template is used to create a reference with a footnote that links to a book's chapter summary of a 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]].


This template is used to refer to Journal summaries from the [[The Unselected Journals of Emma M. Lion (Series)|''The Unselected Journals of Emma M. Lion'']] on The Reed and Rite.
== Usage ==
To use, include {{t|emma ref|BOOK|DATE}}
* Replace <code>BOOK</code> with the appropriate abbreviation from the table below, or the full title of the book.
* Replace <code>DATE</code> with the appropriate date. All date formats should be accepted.


To use, include {{t|emma ref|book|day|month|year}}
* Replace <code>book</code> with the appropriate code from {{t|b}}, or the full title of the book.
* Replace <code>day</code> with the appropriate day number.
* Replace <code>month</code> with the appropriate month, written in full, three-letter abbreviation, or month number.
* Replace <code>year</code> with the appropriate year number.
* {{{pre}}} is included before the link
* {{{post}}} is included after the link
* {{{name}}} replaces the generated reference name
* {{{group}}} sets the reference group


<templatedata>
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
{
|-
"params": {
! 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>
"1": {},
|-
"2": {},
! width=50%|You Type
"3": {},
!You Get
"4": {},
|-
"name": {},
| style="text-align: left;" |<pre>Lapis Lazuli House is located on Whereabouts Lane.{{Emma ref|e1|5 march 1883}}
"group": {},
 
"pre": {},
== Notes ==
"post": {}
<references /></pre>
}
|
}
Lapis Lazuli House is located on Whereabouts Lane.{{Emma ref|e1|5 march 1883}}
</templatedata>
 
<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>Emma M. Lion arrived in London.{{Emma ref|e1|March 5, 1883|name=5 March}}
 
She moved into Lapis Lazuli House.{{ref|name=5 March}}
 
== Notes ==
<references /></pre>
|
Emma M. Lion arrived in London.{{Emma ref|e1|March 5, 1883|name=5 March}}
 
She moved into Lapis Lazuli House.{{ref|name=5 March}}
 
<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>{{emma ref|e1|3/5/1883|link=y}}</pre>
|{{emma ref|e1|3/5/1883|link=y}}
|}
 
=== Accepted Abbreviations ===
The following abbreviations are accepted, as defined by template {{t|b}}:
{| class="wikitable" width="40%"
! class="title" width="30%" | Book
! class="title" colspan="2" | Accepted Abbreviations
|-
! [[The Unselected Journals of Emma M. Lion: Volume 1|Volume 1]]
| <code>emma1</code>, <code>eml1</code>, <code>e1</code>, <code>v1</code>
|-
! [[The Unselected Journals of Emma M. Lion: Volume 2|Volume 2]]
| <code>emma2</code>, <code>eml2</code>, <code>e2</code>, <code>v2</code>
|-
! [[The Unselected Journals of Emma M. Lion: Volume 3|Volume 3]]
| <code>emma3</code>, <code>eml3</code>, <code>e3</code>, <code>v3</code>
|-
! [[The Unselected Journals of Emma M. Lion: Volume 4|Volume 4]]
| <code>emma4</code>, <code>eml4</code>, <code>e4</code>, <code>v4</code>
|-
! [[The Unselected Journals of Emma M. Lion: Volume 5|Volume 5]]
| <code>emma5</code>, <code>eml5</code>, <code>e5</code>, <code>v5</code>
|-
! [[The Unselected Journals of Emma M. Lion: Volume 6|Volume 6]]
| <code>emma6</code>, <code>eml6</code>, <code>e6</code>, <code>v6</code>
|-
! [[The Unselected Journals of Emma M. Lion: Volume 7|Volume 7]]
| <code>emma7</code>, <code>eml7</code>, <code>e7</code>, <code>v7</code>
|-
! [[The Unselected Journals of Emma M. Lion: Volume 8|Volume 8]]
| <code>emma8</code>, <code>eml8</code>, <code>e8</code>, <code>v8</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]]
</noinclude>

Latest revision as of 22:44, 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 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 {{emma ref|BOOK|DATE}}

  • Replace BOOK with the appropriate abbreviation from the table below, or the full title of the book.
  • Replace DATE with the appropriate date. All date formats should be accepted.


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
Lapis Lazuli House is located on Whereabouts Lane.{{Emma ref|e1|5 march 1883}}

== Notes ==
<references />

Lapis Lazuli House is located on Whereabouts Lane.[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
Emma M. Lion arrived in London.{{Emma ref|e1|March 5, 1883|name=5 March}}

She moved into Lapis Lazuli House.{{ref|name=5 March}}

== Notes ==
<references />

Emma M. Lion arrived in London.[1]

She moved into Lapis Lazuli House.[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
{{emma ref|e1|3/5/1883|link=y}}
Emma: Vol. 1, 5 March 1883

Accepted Abbreviations

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

Book Accepted Abbreviations
Volume 1 emma1, eml1, e1, v1
Volume 2 emma2, eml2, e2, v2
Volume 3 emma3, eml3, e3, v3
Volume 4 emma4, eml4, e4, v4
Volume 5 emma5, eml5, e5, v5
Volume 6 emma6, eml6, e6, v6
Volume 7 emma7, eml7, e7, v7
Volume 8 emma8, eml8, e8, v8

Articles using Template