Template:Location: Difference between revisions
mNo edit summary |
m Removed background color to allow dynamic color shift in dark mode. |
||
| (22 intermediate revisions by the same user not shown) | |||
| Line 14: | Line 14: | ||
-->{{#if: {{{founder|}}} |<tr class="infobox-data-row"><th>Founder</th><td>{{{founder}}}</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>}}<!-- | -->{{#if: {{{function|}}} |<tr class="infobox-data-row"><th>Function</th><td>{{{function}}}</td></tr>}}<!-- | ||
-->{{#if: {{{ | |||
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>}}<!-- | -->{{#if: {{{first_mentioned|}}} |<tr class="infobox-data-row"><th>First Mentioned</th><td>{{{first_mentioned}}}</td></tr>}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category: | -->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Locations]]}}</includeonly><noinclude> | ||
== Description == | == Description == | ||
This template should be used on location 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 == | ||
| Line 30: | Line 39: | ||
!You Get | !You Get | ||
|- | |- | ||
| style="text-align: left | | style="text-align: left; vertical-align: top;" |<pre> | ||
{{location | {{location | ||
|name=Location Name | |name=Location Name | ||
| Line 44: | Line 53: | ||
|established=Year Established | |established=Year Established | ||
|founder=Founder's Name | |founder=Founder's Name | ||
|function=Primary Function ( | |function=Primary Function | ||
| | |nr1=Notable Resident(s) | ||
|nr2=Up to five names. | |||
|nr3= Use nrX=, where "X" is a number 1–5. | |||
|first_mentioned=First Mentioned | |first_mentioned=First Mentioned | ||
}} | }} | ||
</pre> | </pre> | ||
|<br>{{location | |||
|name=Location Name | |name=Location Name | ||
|image=Map of St. Crispian's.jpg | |image=Map of St. Crispian's.jpg | ||
| Line 62: | Line 73: | ||
|established=Year Established | |established=Year Established | ||
|founder=Founder's Name | |founder=Founder's Name | ||
|function=Primary Function ( | |function=Primary Function | ||
| | |nr1=Notable Resident(s) | ||
|nr2=Up to five names. | |||
|nr3= Use <code>nrX=</code>, where "X" is a number 1–5. | |||
|first_mentioned=First Mentioned | |first_mentioned=First Mentioned | ||
}} | }} | ||
| Line 69: | Line 82: | ||
=== Parameters === | === Parameters === | ||
{| class="wikitable" style="width: | {| class="wikitable" style="width: 70%;" | ||
! Parameter !! Description | ! Parameter !! Description | ||
|- | |- | ||
| Line 97: | Line 110: | ||
|- | |- | ||
| 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>function</code> || It's primary function, if applicable. (i.e., Bookshop, Bakery, Tea House, 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>first_mentioned</code> || Where the location was first 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.). | ||
| Line 102: | Line 117: | ||
== Articles using Template == | == 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=0|limit=100}} | ||
[[Category:Infoboxes]] | [[Category:Infoboxes]] | ||