Jump to content

Template:Infobox polity: Difference between revisions

From Yezur Wiki
Thiorosan (talk | contribs)
Emit the 🌐 On the map page indicator automatically from map_relation
Thiorosan (talk | contribs)
Display-only: remove #cargo_store/#cargo_declare — Cargo retired from the encyclopedia (operator ruling 2026-07-30); docs updated
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{map_relation|}}}|{{On the map|relation={{{map_relation}}}}}}}{{#invoke:Infobox|render
<includeonly>{{#invoke:Infobox|render
|title={{{name|{{PAGENAME}}}}}
|title={{{name|{{PAGENAME}}}}}
|subtitle={{{native_name|}}}
|subtitle={{{native_name|}}}
Line 13: Line 13:
|label8=Languages|data8={{{languages|}}}
|label8=Languages|data8={{{languages|}}}
|label9=Religion|data9={{{religion|}}}
|label9=Religion|data9={{{religion|}}}
}}{{#cargo_store:_table=Polities
}}</includeonly><noinclude>
|name={{{name|{{PAGENAME}}}}}
|native_name={{{native_name|}}}
|region={{{region|}}}
|capital={{{capital|}}}
|government={{{government|}}}
|founded={{{founded|}}}
|languages={{{languages|}}}
|religion={{{religion|}}}
|map_relation={{{map_relation|}}}
}}</includeonly><noinclude>{{#cargo_declare:_table=Polities
|name=String
|native_name=String
|region=String
|capital=String
|government=String
|founded=Integer
|languages=List (,) of String
|religion=String
|map_relation=Integer
}}
=== Usage ===
=== Usage ===
Infobox for a polity (country or state). Renders via [[Module:Infobox]] and
Infobox for a polity (country or state). Renders via [[Module:Infobox]].
populates the <code>Polities</code> [[Special:CargoTables|Cargo table]] for
(No [[Template:On the map|🌐 On the map]] indicator here: a polity cannot be
automatic lists and queries. A filled <code>map_relation</code> also places the
reduced to a single spot.)
'''🌐 On the map''' page indicator ([[Template:On the map]]) at the top right
of the article.
<pre>
<pre>
{{Infobox polity
{{Infobox polity

Latest revision as of 11:27, 30 July 2026

Usage

Infobox for a polity (country or state). Renders via Module:Infobox. (No 🌐 On the map indicator here: a polity cannot be reduced to a single spot.)

{{Infobox polity
|name          =
|native_name   =
|capital       =
|government    =
|founded       =
|region        =
|languages     =
|religion      =
|map_relation  =
|flag          =
|flag_caption  =
}}