Template:Location: Difference between revisions

Created page with "<includeonly>{{Infobox<!-- -->| name = {{{name|}}}<!-- -->| image = {{{image|}}}<!-- -->| caption = {{{caption|}}}<!-- -->| data_rows =<!-- -->{{#if: {{{book|}}} |<tr class="infobox-data-row"><th>Book</th><td>{{{book}}}</td></tr>}}<!-- -->{{#if: {{{series|}}} |<tr class="infobox-data-row"><th>Series</th><td>{{{series}}}</td></tr>}}<!-- -->{{#if: {{{city|}}} |<tr class="infobox-data-row"><th>City</th><td>{{{city}}}</td></tr>}}<!-- -->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|Categ..."
 
m Removed background color to allow dynamic color shift in dark mode.
 
(32 intermediate revisions by the same user not shown)
Line 4: Line 4:
-->| caption = {{{caption|}}}<!--
-->| caption = {{{caption|}}}<!--
-->| data_rows =<!--
-->| data_rows =<!--
-->{{#if: {{{book|}}} |<tr class="infobox-data-row"><th>Book</th><td>{{{book}}}</td></tr>}}<!--
-->{{#if: {{{book|}}} | <tr class="infobox-data-row"><th>Book</th><td>{{#if:{{b|{{{book}}}}} | ''[[{{b|{{{book}}}}}|{{b|{{{book}}}|text=y}}]]'' | {{{book}}}}}</td></tr>}}<!--
-->{{#if: {{{series|}}} |<tr class="infobox-data-row"><th>Series</th><td>{{{series}}}</td></tr>}}<!--
-->{{#if: {{{series|}}} | <tr class="infobox-data-row"><th>Series</th><td>{{#if:{{b|{{{series}}}}} | ''[[{{b|{{{series}}}}}|{{b|{{{series}}}|text=y}}]]'' | {{{series}}}}}</td></tr>}}<!--
-->{{#if: {{{location|}}} |<tr class="infobox-data-row"><th>Location</th><td>{{{location}}}</td></tr>}}<!--
-->{{#if: {{{city|}}} |<tr class="infobox-data-row"><th>City</th><td>{{{city}}}</td></tr>}}<!--
-->{{#if: {{{city|}}} |<tr class="infobox-data-row"><th>City</th><td>{{{city}}}</td></tr>}}<!--
-->{{#if: {{{county|}}} |<tr class="infobox-data-row"><th>County</th><td>{{{county}}}</td></tr>}}<!--
-->{{#if: {{{region|}}} |<tr class="infobox-data-row"><th>Region</th><td>{{{region}}}</td></tr>}}<!--
-->{{#if: {{{country|}}} |<tr class="infobox-data-row"><th>Country</th><td>{{{country}}}</td></tr>}}<!--
-->{{#if: {{{established|}}} |<tr class="infobox-data-row"><th>Established</th><td>{{{established}}}</td></tr>}}<!--
-->{{#if: {{{founder|}}} |<tr class="infobox-data-row"><th>Founder</th><td>{{{founder}}}</td></tr>}}<!--
-->{{#if: {{{function|}}} |<tr class="infobox-data-row"><th>Function</th><td>{{{function}}}</td></tr>}}<!--
Notable Residents
-->{{#if: {{{nr1|}}}{{{nr2|}}}{{{nr3|}}}{{{nr4|}}}{{{nr5|}}} |<tr class="infobox-data-row"><th>Notable Residents</th><td><!--
  -->{{#if: {{{nr1|}}} |• {{{nr1}}}{{#if: {{{nr2|}}}{{{nr3|}}}{{{nr4|}}}{{{nr5|}}} |<br>}} }}<!--
  -->{{#if: {{{nr2|}}} |• {{{nr2}}}{{#if: {{{nr3|}}}{{{nr4|}}}{{{nr5|}}} |<br>}} }}<!--
  -->{{#if: {{{nr3|}}} |• {{{nr3}}}{{#if: {{{nr4|}}}{{{nr5|}}} |<br>}} }}<!--
  -->{{#if: {{{nr4|}}} |• {{{nr4}}}{{#if: {{{nr5|}}} |<br>}} }}<!--
  -->{{#if: {{{nr5|}}} |• {{{nr5}}} }}<!--
--></td></tr>}}<!--
-->{{#if: {{{first_mentioned|}}} |<tr class="infobox-data-row"><th>First Mentioned</th><td>{{{first_mentioned}}}</td></tr>}}<!--
-->}}<!--
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Locations]]}}</includeonly><noinclude>
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Locations]]}}</includeonly><noinclude>
== Description ==
== Description ==
This template should be used on character pages to add an infobox in the upper right hand corner the article.
This template should be used on location pages to add an infobox in the upper right hand corner of the article.


== Usage ==
== Usage ==
The template has several [[:Template:Character#Parameters|parameters]] that can be used.  
The template has several [[:Template:Location#Parameters|parameters]] that can be used.  
: '''Note: Only fields that are provided will appear in the infobox. Not all parameters are required for each character.'''
: '''Note: Only fields that are provided will appear in the infobox. Not all parameters are required for each location.'''


{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
Line 20: Line 39:
!You Get
!You Get
|-
|-
| style="text-align: left; background-color: white; vertical-align: top;" |<pre>
| style="text-align: left; vertical-align: top;" |<pre>
{{location
{{location
| name = Character Name
|name=Location Name
| image = FILENAME.EXTENSION
|image=FILENAME.EXTENSION
| caption = Caption Here
|caption=Caption Here
| born = Date of Birth
|book=Book Title
| died = Date of Death
|series=Series Title
| spouse = Spouse's Name
|location=Location Name
| parents = Parent Names
|city=City Name
| children = Children Names
|county=County Name
| relatives = Relatives Names
|region=Region Name
| profession = Profession Here
|country=Country Name
| titles = Titles Here
|established=Year Established
| monikers = Monikers Here
|founder=Founder's Name
| groups = Group Affiliations
|function=Primary Function
| introduced = First Appearance
|nr1=Notable Resident(s)
| first_mentioned = First Mentioned
|nr2=Up to five names.
| last_mentioned = Last Mentioned
|nr3= Use nrX=, where "X" is a number 1–5.
|first_mentioned=First Mentioned
}}
}}
</pre>
</pre>
| style="background-color: white;" |<br>{{location
|<br>{{location
| name = Example Character Infobox
|name=Location Name
| image = Map of St. Crispian's.jpg
|image=Map of St. Crispian's.jpg
| caption = Caption Here
|caption=Caption Here
| born = Date of Birth
|book=Book Title
| died = Date of Death
|series=Series Title
| spouse = Spouse's Name
|location=Location Name
| parents = Parent Names
|city=City Name
| children = Children Names
|county=County Name
| relatives = Relatives Names
|region=Region Name
| profession = Profession Here
|country=Country Name
| titles = Titles Here
|established=Year Established
| monikers = Monikers Here
|founder=Founder's Name
| groups = Group Affiliations
|function=Primary Function
| introduced = First Appearance
|nr1=Notable Resident(s)
| first_mentioned = First Mentioned
|nr2=Up to five names.
| last_mentioned = Last Mentioned
|nr3= Use <code>nrX=</code>, where "X" is a number 1–5.
|first_mentioned=First Mentioned
}}
}}
|}
|}


=== Parameters ===
=== Parameters ===
{| class="wikitable" style="width: 65%;"
{| class="wikitable" style="width: 70%;"
! Parameter !! Description
! Parameter !! Description
|-
|-
Line 70: Line 91:
| style="text-align: center;" | <code>caption</code> || Caption for the image.
| style="text-align: center;" | <code>caption</code> || Caption for the image.
|-
|-
| style="text-align: center;" | <code>born</code> || The character's date of birth.
| style="text-align: center;" | <code>book</code> || What book the location is from. Use abbreviation(s) from [[:Template:B]].
|-
| style="text-align: center;" | <code>died</code> || The character's date of death (if applicable).
|-
|-
| style="text-align: center;" | <code>spouse</code> || The character's spouse (if applicable).
| style="text-align: center;" | <code>series</code> || What series the location is from. Use abbreviation(s) from [[:Template:B]].
|-
|-
| style="text-align: center;" | <code>parents</code> || The character's parents.
| style="text-align: center;" | <code>location</code> || Where it is located, if applicable.
|-
|-
| style="text-align: center;" | <code>children</code> || The character's children.
| style="text-align: center;" | <code>city</code> || The city it is located in, if applicable.
|-
|-
| style="text-align: center;" | <code>relatives</code> || Other relatives of the character.
| style="text-align: center;" | <code>county</code> || The county it is located in, if applicable.
|-
|-
| style="text-align: center;" | <code>profession</code> || The character's profession.
| style="text-align: center;" | <code>region</code> || The region it is located in, if applicable.
|-
|-
| style="text-align: center;" | <code>titles</code> || Titles or honorifics the character holds.
| style="text-align: center;" | <code>country</code> || The country it is located in, if applicable.
|-
|-
| style="text-align: center;" | <code>monikers</code> || Alternate names or nicknames for the character.
| style="text-align: center;" | <code>established</code> || The year it was established, if applicable.
|-
|-
| style="text-align: center;" | <code>groups</code> || Groups or affiliations the character belongs to.
| style="text-align: center;" | <code>founder</code> || The name of the founder, if applicable.
|-
|-
| style="text-align: center;" | <code>introduced</code> || Where the character was first introduced (e.g., book, chapter, etc.).
| style="text-align: center;" | <code>function</code> || It's primary function, if applicable. (i.e., Bookshop, Bakery, Tea House, etc.)
|-
|-
| style="text-align: center;" | <code>first_mentioned</code> || Where the character was first mentioned (e.g., book, chapter, etc.).
| style="text-align: center;" | <code>nr1=</code>, <code>nr2=</code>, <code>nr3=</code>, etc. || Notable Residents, up to five names. (If applicable.) Use double brackets around the name (e.g., <code><nowiki>[[Emma M. Lion]]</nowiki></code>) to link to that character's page.
|-
|-
| style="text-align: center;" | <code>last_mentioned</code> || Where the character was last mentioned (e.g., book, chapter, etc.).
| style="text-align: center;" | <code>first_mentioned</code> || Where the location was first mentioned (e.g., book, chapter, etc.).
|}
|}


== Articles using Template ==
== Articles using Template ==
:{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}
{{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=0|limit=100}}


[[Category:Infoboxes]]
[[Category:Infoboxes]]