Template:Emma ref: Difference between revisions

No edit summary
Tag: Manual revert
m Removed background color to allow dynamic color shift in dark mode.
 
(31 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}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 1'': {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}]]
  | e3 | emma3 | eml3 | v3 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 3'', {{#time:j F Y|{{{2}}}}}]]
    | e2 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 2#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 2'': {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}]]
  | e4 | emma4 | eml4 | v4 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 4'', {{#time:j F Y|{{{2}}}}}]]
    | e3 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 3#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 3'': {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}]]
  | e5 | emma5 | eml5 | v5 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 5'', {{#time:j F Y|{{{2}}}}}]]
    | e4 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 4#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 4'': {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}]]
  | e6 | emma6 | eml6 | v6 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 6'', {{#time:j F Y|{{{2}}}}}]]
    | e5 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 5#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 5'': {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}]]
  | e7 | emma7 | eml7 | v7 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 7'', {{#time:j F Y|{{{2}}}}}]]
    | e6 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 6#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 6'': {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}]]
  | e8 | emma8 | eml8 | v8 = [[Summary:{{b|{{{1}}}}}#{{#time:j F Y|{{{2}}}}}|''Emma: Vol. 8'', {{#time:j F Y|{{{2}}}}}]]
    | e7 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 7#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 7'': {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}]]
  | #default = <span style="color:red">Error: Invalid volume</span>
    | e8 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 8#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 8'': {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}]]
    | e9 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 9#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 9'': {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}]]
    | e10 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 10#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 10'': {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{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 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|book ref|book|chapter}}
 
* Replace <code>book</code> with the appropriate code from {{t|b}}
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
* <code>chapter</code> should be the chapter number, <code>prologue</code>, or <code>epilogue</code>
|-
* When referencing chapters which have names in place of numbers, such as several chapters in the [[Alcatraz Versus the Evil Librarians (series)|Alcatraz]] books, use the name of the chapter in place of a number. For example: {{t|book ref|a5|mary}}
! 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>
* When referring to interludes, replace <code>chapter</code> with <code>i|number</code>, where the latter is the interlude number
|-
* For parts that aren't any of the above, replace <code>chapter</code> with <code>part=name</code>; for example, <code>part=ars</code> 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 {{t|cite}} if you can't find it)
! width=50%|You Type
* {{{pre}}} is included before the link
!You Get
* {{{post}}} is included after the link
|-
* {{{name}}} replaces the generated reference name
| style="text-align: left;" |<pre>Lapis Lazuli House is located on Whereabouts Lane.{{Emma ref|e1|5 march 1883}}
* {{{group}}} sets the reference group
 
== Notes ==
<references /></pre>
|
Lapis Lazuli House is located on Whereabouts Lane.{{Emma ref|e1|5 march 1883}}
 
<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]]