Difference between revisions of "Template:Location"

From The Coppermind
Jump to navigation Jump to search
m
m
(33 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{infobox
 
{{infobox
|title={{{place|{{PAGENAME}}|}}}
+
|title={{{name|{{translated title}}}}}|id=location|
|{{#if:{{{map|}}}|{{row/image|{{{map}}}|width={{{map-width|240px}}}|}}|}}<!--
 
   
  +
<!-- map or image -->
-->{{#if:{{{ethnicity|}}} |{{row/kv|Ethnicity |{{{ethnicity}}}<!-- -->}}|}}<!--
 
-->{{#if:{{{capital|}}} |{{row/kv|Capital |{{{capital}}}<!-- -->}}|}}<!--
+
{{#if:{{{map|}}} |{{row/image+artist |{{{map}}} }}|}}
-->{{#if:{{{ruler|}}} |{{row/kv|Ruler |{{{ruler}}}<!-- -->}}|}}<!--
+
{{#if:{{{image|}}} |{{row/image+artist |{{{image}}} }}|}}
   
  +
<!-- about -->
location
 
-->{{#if:{{{raw-city|}}} |{{row/kv|City |{{{raw-city}}}<!-- -->[[Category: infobox.raw-city]]<!-- -->}}|}}<!--
+
{{#if:{{{capital|}}} |{{row/kv| Capital |{{{capital}}}<!-- -->}}|}}
-->{{#if:{{{city|}}} |{{row/kv|City |{{toponym tag|{{{city}}}|}}[[Category: infobox.city<!-- -->}}|}}<!--
+
{{#if:{{{ruler|}}} |{{row/kv| Ruler |{{{ruler}}}<!-- -->}}|}}
-->{{#if:{{{raw-state|}}} |{{row/kv|State |{{{raw-state}}}<!-- -->[[Category: infobox.raw-state]]<!-- -->}}|}}<!--
+
{{#if:{{{occupied|}}} |{{row/kv| Occupied by |{{{occupied}}}<!-- -->}}|}}
-->{{#if:{{{state|}}} |{{row/kv|State |{{toponym tag|{{{state}}}|}}[[Category: infobox.state]]<!-- -->}}|}}<!--
+
{{#if:{{{era|}}} |{{row/kv| Era |{{{era}}}{{era/{{{era}}}|}}<!-- -->}}|}}
-->{{#if:{{{dominance|}}} |{{row/kv|Dominance |{{tag|{{{dominance}}} Dominance}}<!-- -->}}|}}<!--
 
-->{{#if:{{{princedom|}}} |{{row/kv|Princedom |{{tag|{{{princedom}}} princedom}}<!-- -->}}|}}<!--
 
-->{{#if:{{{raw-region|}}}|{{row/kv|Region |{{{raw-region}}}<!-- -->[[Category: infobox.raw-region]]<!-- -->}}|}}<!--
 
-->{{#if:{{{region|}}} |{{row/kv|Region |{{toponym tag|{{{region}}}|}}[[Category: infobox.region]]<!-- -->}}|}}<!--
 
-->{{#if:{{{raw-nation|}}}|{{row/kv|Nation |{{{raw-nation}}}<!-- -->[[Category: infobox.raw-nation]]<!-- -->}}|}}<!--
 
-->{{#if:{{{nation|}}} |{{row/kv|Nation |{{toponym tag|{{{nation}}}|}}<!-- -->}}|}}<!--
 
-->{{#if:{{{raw-world|}}} |{{row/kv|World |{{{raw-world}}}<!-- -->[[Category: infobox.raw-world]]<!-- -->}}|}}<!--
 
-->{{#if:{{{earth|}}} |{{row/kv|World |[[Earth ({{{earth}}})]][[Category: {{{earth}}} places]]<!-- -->}}|}}<!--
 
-->{{#if:{{{world|}}} |{{row/kv|World |{{toponym tag|{{{world}}}|}}<!-- -->}}|}}<!--
 
-->{{#if:{{{universe|}}} |{{row/kv|Universe |{{{universe}}}<!-- -->[[Category: infobox.universe]]<!-- -->}}|}}<!--
 
   
  +
<!-- location -->
featured in
 
  +
{{#if:{{{'city|}}} |{{row/kv| City |{{{'city}}}{{raw/city}}<!-- -->}}|}}
-->{{row/kv|Featured In|''{{{books}}}''|}}
 
  +
{{#if:{{{city|}}} |{{row/kv| City |{{place tag|{{{city}}}|}}<!-- -->}}|}}
  +
{{#if:{{{'state|}}} |{{row/kv| State |{{{'state}}}{{raw/state}}<!-- -->}}|}}
  +
{{#if:{{{state|}}} |{{row/kv| State |{{place tag|{{{state}}}|}}<!-- -->}}|}}
  +
{{#if:{{{dominance|}}} |{{row/kv| Dominance |{{tag|{{{dominance}}} Dominance}}<!-- -->}}|}}
  +
{{#if:{{{princedom|}}} |{{row/kv| Princedom |{{tag|{{{princedom}}} princedom}}<!-- -->}}|}}
  +
{{#if:{{{'region|}}} |{{row/kv| Region |{{{'region}}}{{raw/region}}<!-- -->}}|}}
  +
{{#if:{{{region|}}} |{{row/kv| Region |{{place tag|{{{region}}}|}}<!-- -->}}|}}
  +
{{#if:{{{'nation|}}} |{{row/kv| Nation |{{{'nation}}}{{raw/nation}}<!-- -->}}|}}
  +
{{#if:{{{nation|}}} |{{row/kv| Nation |{{place tag|{{{nation}}}|}}<!-- -->}}|}}
  +
{{#if:{{{'world|}}} |{{row/kv| World |{{{'world}}}{{raw/world}}<!-- -->}}|}}
  +
{{#if:{{{earth|}}} |{{row/kv| World |{{earth tag|earth={{{earth}}}|cat=Earth ({{{earth}}})}} |}}|}}
  +
{{#if:{{{world|}}} |{{row/kv| World |{{place tag|{{{world}}}|}}<!-- -->}}|}}
  +
{{#if:{{{universe|}}} |{{row/kv| Universe |{{{universe}}}<!-- -->}}|}}
  +
  +
<!-- featured in -->{{row/kv| Featured In |''{{{books}}}''<!-- -->}}
 
}}<includeonly><!--
 
}}<includeonly><!--
   
-->[[Category: Places]]<!--
+
-->[[Category: Locations]]<!--
   
-->{{#if:{{{location|}}}|[[Category: infobox.location]]}}<!--
+
-->{{#if:<!--
-->{{#if:{{{country|}}}|[[Category: infobox.country]]}}<!--
+
-->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{'world|}}}<!-- -->{{{universe|}}}<!--
-->{{#if:{{{era|}}}|[[Category: infobox.era]]}}<!--
+
-->||{{infobox/no-world}}<!--
  +
-->}}<!--
  +
  +
-->{{#if:{{{map-artist|}}}|[[category: redundant artist attribution]]}}<!--
  +
-->{{#if:{{{image-artist|}}}|[[category: redundant artist attribution]]}}<!--
   
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>
   
  +
The general ''{{t|location}}'' infobox template can be used to describe locations that cannot be better described by other location templates, such as:
This template allows you to include information about a country, city, geographical landmark, building, or other place on its article.
 
  +
* {{t|nation}} for nations, kingdoms, etc.
  +
* {{t|settlement}} for cities, villages, etc.
  +
* {{t|architecture}} for buildings
  +
* {{t|geography}} for features of the landscape, such as rivers, mountains, and lakes
  +
  +
  +
__TOC__
  +
  +
=== Template ===
  +
<pre class=mw-code>
  +
{{location
  +
|map= / image=
  +
|capital=
  +
|ruler=
  +
|occupied=
  +
|era=
  +
|city=
  +
|state=
  +
|dominance=
  +
|princedom=
  +
|region=
  +
|nation=
  +
|world= / earth=
  +
|universe=
  +
|books=
  +
}}
  +
</pre>
  +
  +
=== Parameters ===
  +
Highlighted lines indicate '''mandatory''' parameters.
  +
On lines with multiple parameters (e.g. <code>|world= / earth=</code>) pick only the one most appropriate.
  +
  +
{{docs|title={{t|Location}} Parameters}}
  +
  +
<!-- ---------------- -->
  +
<!-- ROW: image / map -->
  +
<!-- ---------------- -->
  +
{{docs/row/optional
  +
|'param= <code>image</code> <br><small>or</small><br> <code>map</code>
  +
|desc= Use this to display a relevant image hosted on the Coppermind.
  +
<small>See [[Help:Infoboxes]] for further details.</small>
  +
|eg=
  +
<code><nowiki>|image=Shadesmar (TWoK).jpg</nowiki></code><br>
  +
<code><nowiki>|map=Locator_Frostlands.png</nowiki></code>
  +
}}
  +
  +
<!-- ------------ -->
  +
<!-- ROW: capital -->
  +
<!-- ------------ -->
  +
{{docs/row/optional
  +
|param= capital
  +
|desc= Use this to specify the capital of nation-like locations.
  +
|eg=
  +
<code><nowiki>|capital=[[Kholinar]]</nowiki></code>
  +
}}
  +
  +
<!-- ---------- -->
  +
<!-- ROW: ruler -->
  +
<!-- ---------- -->
  +
{{docs/row/optional
  +
|param= ruler
  +
|desc= Use this to specify the ruler of the location.
  +
|eg=
  +
<code><nowiki>|ruler=[[Torol Sadeas]]</nowiki></code>
  +
}}
  +
  +
<!-- ------------- -->
  +
<!-- ROW: occupied -->
  +
<!-- ------------- -->
  +
{{docs/row/optional
  +
|param= occupied
  +
|desc= When the location is contested in a war, use this to specify which party holds it currently. Mostly useful for locations of [[Roshar]] as the war with [[Odium]]'s forces unfolds.
  +
|eg=
  +
<code><nowiki>|occupied=[[Alethkar]]</nowiki></code>
  +
}}
  +
  +
<!-- -------- -->
  +
<!-- ROW: era -->
  +
<!-- -------- -->
  +
{{docs/row/optional
  +
|param= era
  +
|desc= Use this to specify which era the location existed or exists in.
  +
|eg=
  +
<code><nowiki>|era=[[Classical Scadrial]]</nowiki></code><br>
  +
<code><nowiki>|era=[[Heraldic Epochs]]</nowiki></code><br>
  +
<code><nowiki>|era=Post-Catacendre</nowiki></code>
  +
}}
  +
  +
<!-- --------- -->
  +
<!-- ROW: city -->
  +
<!-- --------- -->
  +
{{docs/row/optional
  +
|param= city
  +
|desc= Use this to specify the city where the location can be found.<br>
  +
<small>'''Note:''' Automatically generates a link. To bypass this, use <code>'city</code>.</small><br>
  +
<small>See [[Help: Infoboxes]] for further details.
  +
|eg=
  +
<code><nowiki>|city=Elendel</nowiki></code><br>
  +
<code><nowiki>|'city=[[Wikipedia: Boston|Boston]]</nowiki></code>
  +
}}
  +
  +
<!-- ---------- -->
  +
<!-- ROW: state -->
  +
<!-- ---------- -->
  +
{{docs/row/optional
  +
|param= state
  +
|desc= Use this to specify the state where the location can be found.
  +
<small>'''Note:''' Automatically generates a link. To bypass this, use <code>'state</code>.</small><br>
  +
<small>See [[Help: Infoboxes]] for further details.
  +
|eg=
  +
<code><nowiki>|state=Alornia</nowiki></code><br>
  +
<code><nowiki>|'state=[[Wikipedia: Iowa|Iowa]]</nowiki></code>
  +
}}
  +
  +
<!-- -------------- -->
  +
<!-- ROW: dominance -->
  +
<!-- -------------- -->
  +
{{docs/row/optional
  +
|param= dominance
  +
|desc= Use this to specify the [[Final Empire]] [[Dominance]] where the location can be found.
  +
<small>'''Note:''' Automatically generates a link.</small><br>
  +
<small>See [[Help: Infoboxes]] for further details.
  +
|eg=
  +
<code><nowiki>|dominance=Central</nowiki></code>
  +
}}
  +
  +
<!-- -------------- -->
  +
<!-- ROW: princedom -->
  +
<!-- -------------- -->
  +
{{docs/row/optional
  +
|param= princedom
  +
|desc= Use this to specify the [[Alethi]] princedoms where the location can be found.
  +
<small>'''Note:''' Automatically generates a link.</small><br>
  +
<small>See [[Help: Infoboxes]] for further details.
  +
|eg=
  +
<code><nowiki>|princedom=Kholin</nowiki></code>
  +
}}
  +
  +
<!-- ----------- -->
  +
<!-- ROW: region -->
  +
<!-- ----------- -->
  +
{{docs/row/optional
  +
|param=region
  +
|desc= Use this to specify the region where the location can be found.
  +
<small>'''Note:''' Automatically generates a link. To bypass this, use <code>'region</code>.</small><br>
  +
<small>See [[Help: Infoboxes]] for further details.
  +
|eg=
  +
<code><nowiki>|region=Elendel Basin</nowiki></code><br>
  +
<code><nowiki>|'region=[[Wikipedia: Midwest|Midwest]]</nowiki></code>
  +
}}
  +
  +
<!-- ----------- -->
  +
<!-- ROW: nation -->
  +
<!-- ----------- -->
  +
{{docs/row/optional
  +
|param= nation
  +
|desc= Use this to specify the nation where the location can be found.
  +
<small>'''Note:''' Automatically generates a link. To bypass this, use <code>'nation</code>.</small><br>
  +
<small>See [[Help: Infoboxes]] for further details.
  +
|eg=
  +
<code><nowiki>|nation=Alethkar</nowiki></code><br>
  +
<code><nowiki>|'nation=[[Wikipedia: USA|American]]</nowiki></code>
  +
  +
}}
  +
  +
<!-- ------------------ -->
  +
<!-- ROW: world / earth -->
  +
<!-- ------------------ -->
  +
{{docs/world}}
  +
  +
<!-- ------------- -->
  +
<!-- ROW: universe -->
  +
<!-- ------------- -->
  +
{{docs/universe}}
  +
  +
<!-- ---------- -->
  +
<!-- ROW: books -->
  +
<!-- ---------- -->
  +
{{docs/books}}
  +
  +
|}
   
  +
=== Categories & Tags ===
There are two required parameters, the {{{world}}} that the place inhabits, and the {{{books}}} or series the place is set upon.
 
  +
Pages that make use of the ''{{t|location}}'' template will be added to [[:Category: Locations]]. In addition to this, specifying an <code>earth</code> in the infobox will apply the appropriate [[Earth]] category (<small>e.g. <code>|earth=Reckoners</code> will apply [[:Category:Earth (Reckoners)]]</small>).
A number of optional parameters allow you to pinpoint the location to a particular {{{region}}}, {{{country}}}, {{{capital}}} or {{{city}}}. {{{capital}}} should be used when talking about countries, {{{city}}} should be used when talking about places inside a city.
 
Another parameter allows you to define the {{{era}}} or time period the place existed in.
 
   
An advanced field {{{location}}} allows you to add {{t|row/kv}}s directly, and {{{place}}} allows you to change the box heading.
 
   
 
[[Category: Infoboxes]]
 
[[Category: Infoboxes]]
  +
== 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}}

Revision as of 15:17, 25 March 2021

Template:Translated title
Featured In {{{books}}}

The general {{location}} infobox template can be used to describe locations that cannot be better described by other location templates, such as:

  • {{nation}} for nations, kingdoms, etc.
  • {{settlement}} for cities, villages, etc.
  • {{architecture}} for buildings
  • {{geography}} for features of the landscape, such as rivers, mountains, and lakes


Template

{{location
|map= / image=
|capital=
|ruler=
|occupied=
|era=
|city=
|state=
|dominance=
|princedom=
|region=
|nation=
|world= / earth=
|universe=
|books=
}}

Parameters

Highlighted lines indicate mandatory parameters. On lines with multiple parameters (e.g. |world= / earth=) pick only the one most appropriate.

Template:Docs/books
{{Location}} Parameters
Parameter Description Examples
image
or
map
Use this to display a relevant image hosted on the Coppermind.

See Help:Infoboxes for further details.

|image=Shadesmar (TWoK).jpg
|map=Locator_Frostlands.png

capital Use this to specify the capital of nation-like locations.

|capital=[[Kholinar]]

ruler Use this to specify the ruler of the location.

|ruler=[[Torol Sadeas]]

occupied When the location is contested in a war, use this to specify which party holds it currently. Mostly useful for locations of Roshar as the war with Odium's forces unfolds.

|occupied=[[Alethkar]]

era Use this to specify which era the location existed or exists in.

|era=[[Classical Scadrial]]
|era=[[Heraldic Epochs]]
|era=Post-Catacendre

city Use this to specify the city where the location can be found.

Note: Automatically generates a link. To bypass this, use 'city.
See Help: Infoboxes for further details.

|city=Elendel
|'city=[[Wikipedia: Boston|Boston]]

state Use this to specify the state where the location can be found.

Note: Automatically generates a link. To bypass this, use 'state.
See Help: Infoboxes for further details.

|state=Alornia
|'state=[[Wikipedia: Iowa|Iowa]]

dominance Use this to specify the Final Empire Dominance where the location can be found.

Note: Automatically generates a link.
See Help: Infoboxes for further details.

|dominance=Central

princedom Use this to specify the Alethi princedoms where the location can be found.

Note: Automatically generates a link.
See Help: Infoboxes for further details.

|princedom=Kholin

region Use this to specify the region where the location can be found.

Note: Automatically generates a link. To bypass this, use 'region.
See Help: Infoboxes for further details.

|region=Elendel Basin
|'region=[[Wikipedia: Midwest|Midwest]]

nation Use this to specify the nation where the location can be found.

Note: Automatically generates a link. To bypass this, use 'nation.
See Help: Infoboxes for further details.

|nation=Alethkar
|'nation=[[Wikipedia: USA|American]]

world
or
earth
Use this to specify the planet where the location can be found.

Note: Automatically generates a link. To bypass this, use 'world.
See Help:Infoboxes for further details.

|world=Roshar
|earth=Reckoners
|'world=Mars

universe Use this to indicate the (connected) universe where the location can be found.

See Help: Infoboxes for further details.

|universe=[[Cosmere]]
|universe=[[Cytoverse]]
|universe=[[Wode]] [[State]]s
|universe=''Standalone''

Categories & Tags

Pages that make use of the {{location}} template will be added to Category: Locations. In addition to this, specifying an earth in the infobox will apply the appropriate Earth category (e.g. |earth=Reckoners will apply Category:Earth (Reckoners)).

Articles using Template