Difference between revisions of "Template:Nation"

From The Coppermind
Jump to navigation Jump to search
m (tweaks to normalise)
m (Text replacement - "{{translated title}}" to "{{PAGENAME}}")
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{infobox
 
{{infobox
|title={{{place|{{PAGENAME}}|}}}|id=nation|
+
|title={{{name|{{PAGENAME}}}}}|id=Nation|
 
<!-- map or image -->
 
<!-- map or image -->
{{#if:{{{map|}}} |{{row/image |{{{map}}} |artist={{{map-artist|}}} }}|}}
+
{{#if:{{{map|}}} |{{row/image+artist |{{{map}}} }}|}}
{{#if:{{{image|}}} |{{row/image |{{{image}}} |artist={{{image-artist|}}} }}|}}
+
{{#if:{{{image|}}} |{{row/image+artist |{{{image}}} }}|}}
  +
<!-- information -->
 
  +
<!-- about -->
 
{{#if:{{{ethnicity|}}} |{{row/kv| Ethnicity |{{{ethnicity}}}<!-- -->}}|}}
 
{{#if:{{{ethnicity|}}} |{{row/kv| Ethnicity |{{{ethnicity}}}<!-- -->}}|}}
 
{{#if:{{{capital|}}} |{{row/kv| Capital |{{{capital}}}<!-- -->}}|}}
 
{{#if:{{{capital|}}} |{{row/kv| Capital |{{{capital}}}<!-- -->}}|}}
{{#if:{{{ruler|}}} |{{row/kv| Ruler |{{{ruler}}}<!-- -->}}|}}
+
{{#if:{{{ruler|}}} |{{row/kv| Ruled by |{{{ruler}}}<!-- -->}}|}}
  +
{{#if:{{{occupied|}}} |{{row/kv| Occupied by |{{{occupied}}}<!-- -->}}|}}
 
{{#if:{{{era|}}} |{{row/kv| Era |{{{era}}}{{era/{{{era}}}|}}<!-- -->}}|}}
 
{{#if:{{{era|}}} |{{row/kv| Era |{{{era}}}{{era/{{{era}}}|}}<!-- -->}}|}}
  +
 
<!-- location -->
 
<!-- location -->
{{#if:{{{raw-region|}}}|{{row/kv| Region |{{{raw-region}}}<!-- -->}}|}}
 
 
{{#if:{{{region|}}} |{{row/kv| Region |{{place tag|{{{region}}}|}}<!-- -->}}|}}
 
{{#if:{{{region|}}} |{{row/kv| Region |{{place tag|{{{region}}}|}}<!-- -->}}|}}
{{#if:{{{raw-world|}}} |{{row/kv| World |{{{raw-world}}}<!-- -->}}|}}
+
{{#if:{{{'region|}}} |{{row/kv| Region |{{{'region}}} {{raw/region}}<!-- -->}}|}}
 
{{#if:{{{earth|}}} |{{row/kv| World |{{earth tag|earth={{{earth}}}|cat=Earth ({{{earth}}})}} |}}|}}
 
{{#if:{{{earth|}}} |{{row/kv| World |{{earth tag|earth={{{earth}}}|cat=Earth ({{{earth}}})}} |}}|}}
 
{{#if:{{{world|}}} |{{row/kv| World |{{place tag|{{{world}}}|}}<!-- -->}}|}}
 
{{#if:{{{world|}}} |{{row/kv| World |{{place tag|{{{world}}}|}}<!-- -->}}|}}
  +
{{#if:{{{'world|}}} |{{row/kv| World |{{{'world}}} {{raw/world}}<!-- -->}}|}}
 
{{#if:{{{universe|}}} |{{row/kv| Universe |{{{universe}}}<!-- -->}}|}}
 
{{#if:{{{universe|}}} |{{row/kv| Universe |{{{universe}}}<!-- -->}}|}}
  +
 
<!-- featured in -->{{row/kv| Featured In |''{{{books}}}''<!-- -->}}
 
<!-- featured in -->{{row/kv| Featured In |''{{{books}}}''<!-- -->}}
 
}}<includeonly><!--
 
}}<includeonly><!--
   
-->[[Category: Nations]]<!--
+
-->[[category: nations]]<!--
-->[[Category: Locations]]<!--
+
-->[[category: locations]]<!--
  +
  +
set page properties
  +
-->{{#if:{{{toponym|}}}|<set-property key="toponym">{{{toponym}}}</set-property>}}<!--
  +
-->{{#if:{{{demonym|}}}|<set-property key="demonym">{{{demonym}}}</set-property>}}<!--
  +
-->{{#if:{{{demonym-plural|}}}|<set-property key="demonym-plural">{{{demonym-plural}}}</set-property>}}<!--
  +
  +
  +
-->{{#if:<!--
  +
-->{{{region-raw|}}}{{{raw-region|}}}<!--
  +
-->{{{world-raw|}}}{{{raw-world|}}}<!--
  +
-->|[[category: depreciated raw parameters]]}}<!--
  +
  +
  +
-->{{#if:<!--
  +
-->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{'world|}}}<!-- -->{{{universe|}}}<!--
  +
-->||{{infobox/no-world}}<!--
  +
-->}}<!--
  +
  +
-->{{#if:{{{map-artist|}}}|[[category: redundant artist attribution]]}}<!--
  +
-->{{#if:{{{image-artist|}}}|[[category: redundant artist attribution]]}}<!--
   
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>
   
  +
The ''{{t|nation}}'' template is used to describe nations, kingdoms, countries, city-states, and other similar communities.
This template allows you to include information about a country or nation on its article.
 
  +
  +
__TOC__
  +
  +
=== Template ===
  +
<pre class=mw-code>
  +
{{nation
  +
|map= / image=
  +
|ethnicity=
  +
|capital=
  +
|ruler=
  +
|occupied=
  +
|era=
  +
|region=
  +
|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|Nation}} Parameters}}
  +
  +
<!-- ---------------- -->
  +
<!-- ROW: map / image -->
  +
<!-- ---------------- -->
  +
{{docs/row/optional
  +
|'param= <code>map</code> <br><small>or</small><br> <code>image</code>
  +
|desc=Use this to display a relevant map or image hosted on the Coppermind.
  +
<small>See [[Help:Infoboxes]] for further details.</small>
  +
|eg=
  +
<code><nowiki>|image=Locator Alethkar.png</nowiki></code>
  +
}}
  +
  +
<!-- -------------- -->
  +
<!-- ROW: ethnicity -->
  +
<!-- -------------- -->
  +
{{docs/row/optional
  +
|param= ethnicity
  +
|desc= Use this to specify the dominant ethnic groups of the nation. Apply a [[:Special: Categories|category]] if possible.
  +
|eg=
  +
<code><nowiki>|ethnicity={{cat tag|Dula}}</nowiki></code>
  +
}}
  +
  +
<!-- ------------ -->
  +
<!-- ROW: capital -->
  +
<!-- ------------ -->
  +
{{docs/row/optional
  +
|param= capital
  +
|desc= Use this to specify the nation's capital city.
  +
|eg=
  +
<code><nowiki>|capital=[[Luthadel]]</nowiki></code>
  +
}}
  +
  +
<!-- ---------- -->
  +
<!-- ROW: ruler -->
  +
<!-- ---------- -->
  +
{{docs/row/optional
  +
|param= ruler
  +
|desc= Use this to specify the nation's ruler(s). Include their primary title.
  +
|eg=
  +
<code><nowiki>|ruler=King [[Taravangian]]</nowiki></code>
  +
}}
  +
  +
<!-- ------------- -->
  +
<!-- ROW: occupied -->
  +
<!-- ------------- -->
  +
{{docs/row/optional
  +
|param= occupied
  +
|desc= If the nation is occupied by an invading force, use this to indicate what that force is.
  +
|eg=
  +
<code><nowiki>|occupied=[[Singer]]s</nowiki></code>
  +
}}
  +
  +
<!-- -------- -->
  +
<!-- ROW: era -->
  +
<!-- -------- -->
  +
{{docs/row/optional
  +
|param= era
  +
|desc= Use to specify which era the nation exists or existed in.<br>
  +
<small>'''Note:''' Automatically generates a link.</small>
  +
|eg=
  +
<code><nowiki>|era=Classical Scadrial</nowiki></code><br>
  +
<code><nowiki>|era=Silver Kingdoms</nowiki></code>
  +
}}
  +
  +
<!-- ----------- -->
  +
<!-- ROW: region -->
  +
<!-- ----------- -->
  +
{{docs/row/optional
  +
|param= region
  +
|desc= Use this to specify the region where the nation can be found.<br>
  +
<small>'''Note:''' The value here is passed to the {{t|place tag}} template, which forwards it to {{t|toponym}}, so it must be valid for both.<br>
  +
<small>'''Note:''' Automatically generates a link. To bypass this and the {{t|place tag}}, use <code>'state</code>.</small>
  +
|eg=
  +
<code><nowiki>|region=Free Kingdoms</nowiki></code><br>
  +
<code><nowiki>|region=Dayside</nowiki></code><br>
  +
<code><nowiki>|'region=Sycla (Opelon)</nowiki></code>
  +
}}
  +
  +
<!-- ------------------ -->
  +
<!-- ROW: world / earth -->
  +
<!-- ------------------ -->
  +
{{docs/world}}
  +
  +
<!-- ------------- -->
  +
<!-- ROW: universe -->
  +
<!-- ------------- -->
  +
{{docs/universe}}
  +
  +
<!-- ---------- -->
  +
<!-- ROW: books -->
  +
<!-- ---------- -->
  +
{{docs/books}}
  +
  +
|}
  +
  +
  +
=== Categories & Tags ===
  +
Pages that make use of the ''{{t|nation}}'' template will be added to [[:Category: Nations]] and [[:Category: Locations]].
  +
  +
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>).
   
There are two required parameters, the {{{world}}} that the place inhabits, and the {{{books}}} or series the place is set upon.
 
   
  +
[[Category: Infoboxes]]
{{{ethnicity}}}, {{{capital}}} and {{{ruler}}} should be used to describe the city. {{{world}}}, {{{raw-world}}}, {{{earth}}} or {{{universe}}} should describe it's location. A map can be included on the top with {{{map}}}
 
   
  +
== Articles using Template ==
[[category: infoboxes]]
 
  +
{{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 01:43, 24 May 2022

Nation
Featured In {{{books}}}

The {{nation}} template is used to describe nations, kingdoms, countries, city-states, and other similar communities.

Template

{{nation
|map= / image=
|ethnicity=
|capital=
|ruler=
|occupied=
|era=
|region=
|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
{{Nation}} Parameters
Parameter Description Examples
map
or
image
Use this to display a relevant map or image hosted on the Coppermind.

See Help:Infoboxes for further details.

|image=Locator Alethkar.png

ethnicity Use this to specify the dominant ethnic groups of the nation. Apply a category if possible.

|ethnicity={{cat tag|Dula}}

capital Use this to specify the nation's capital city.

|capital=[[Luthadel]]

ruler Use this to specify the nation's ruler(s). Include their primary title.

|ruler=King [[Taravangian]]

occupied If the nation is occupied by an invading force, use this to indicate what that force is.

|occupied=[[Singer]]s

era Use to specify which era the nation exists or existed in.

Note: Automatically generates a link.

|era=Classical Scadrial
|era=Silver Kingdoms

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

Note: The value here is passed to the {{place tag}} template, which forwards it to {{toponym}}, so it must be valid for both.
Note: Automatically generates a link. To bypass this and the {{place tag}}, use 'state.

|region=Free Kingdoms
|region=Dayside
|'region=Sycla (Opelon)

world
or
earth
Use this to specify the planet where the nation 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 nation 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 {{nation}} template will be added to Category: Nations and Category: Locations.

Specifying an earth in the infobox will apply the appropriate Earth category (e.g. |earth=Reckoners will apply Category: Earth (Reckoners)).

Articles using Template