Template:Infobox Settlement: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 15: | Line 15: | ||
|significance = Text}}<!-- | |significance = Text}}<!-- | ||
</noinclude><includeonly><!-- | --></noinclude><includeonly><!-- | ||
Axiom, Founding Date, Location, Leader, Population, Demonym, Significance | Axiom, Founding Date, Location, Leader, Population, Demonym, Significance | ||
| Line 25: | Line 25: | ||
-->{{#vardefine:significance|{{{significance|}}}}}<!-- | -->{{#vardefine:significance|{{{significance|}}}}}<!-- | ||
-->{{#arraydefine:leaders|{{{leaders|}}}|,}}<!-- | -->{{#arraydefine:leaders|{{{leaders|}}}|,}}<!-- | ||
-->{{#vardefine:location|{{{location|}}}}}<!-- | |||
-->{{#arraydefine:foundingraw | {{{founding-date|}}} |-}}<!-- | -->{{#arraydefine:foundingraw | {{{founding-date|}}} |-}}<!-- | ||
-->{{#vardefine:foundingdate}}<!-- | -->{{#vardefine:foundingdate}}<!-- | ||
| Line 115: | Line 116: | ||
<group> | <group> | ||
<data source="location"><label>Location</label><format>{{#ifexist:{{#var:location}}|[[{{#var:location}}]]|{{#var:location}}}}</format></data> | <data source="location"><label>Location</label><format>{{#ifexist:{{#var:location}}|[[{{#var:location}}]]|{{#var:location}}}}</format></data> | ||
<data source="population"><label>Population</label><format>{{#if:{{#var:population}}|{{ | <data source="population"><label>Population</label><format>{{#if:{{#var:population}}|{{formatnum:{{#var:population}}}}|}}</format></data> | ||
<data source="founding-date"><label>Founded</label><format>{{#var:foundingprint}}</format></data> | <data source="founding-date"><label>Founded</label><format>{{#var:foundingprint}}{{#if:{{#var:foundingyear}}| ({{#invoke:ErraCalendar|PrintHowLongAgoFromToday|year={{#var:foundingyear}}|month={{#var:foundingmonth}}|date={{#var:foundingdate}}}})|}}</format></data> | ||
<data source="dissolution-date"><label>Dissolved</label><format>{{#var:dissolutionprint}}</format></data> | <data source="dissolution-date"><label>Dissolved</label><format>{{#var:dissolutionprint}}{{#if:{{#var:dissolutionyear}}| ({{#invoke:ErraCalendar|PrintHowLongAgoFromToday|year={{#var:dissolutionyear}}|month={{#var:dissolutionmonth}}|date={{#var:dissolutiondate}}}})|}}</format></data> | ||
<data source="leaders"><label>Leaders</label><format>{{#ifexpr: {{#arraysize:leaders}} > 1 | <ul>{{#arrayprint:leaders||@@@@|<li>{{#ifexist:@@@@|[[@@@@]]|@@@@}}</li>}}</ul> | {{#arrayprint:leaders||@@@@|{{#ifexist:@@@@|[[@@@@]]|@@@@}}}}}}</format></data> | <data source="leaders"><label>Leaders</label><format>{{#ifexpr: {{#arraysize:leaders}} > 1 | <ul>{{#arrayprint:leaders||@@@@|<li>{{#ifexist:@@@@|[[@@@@]]|@@@@}}</li>}}</ul> | {{#arrayprint:leaders||@@@@|{{#ifexist:@@@@|[[@@@@]]|@@@@}}}}}}</format></data> | ||
<data source="demonym"><label>Demonym</label><format>{{#var:demonym}}</format></data> | <data source="demonym"><label>Demonym</label><format>{{#var:demonym}}</format></data> | ||
<data source="significance"><label>Significance</label><format>{{#var:significance}}</format></data> | <data source="significance"><label>Significance</label><format>{{#var:significance}}</format></data> | ||
</group> | </group> | ||
</infobox></includeonly><noinclude>{{doc}}</noinclude> | </infobox></includeonly><noinclude> | ||
{{doc}}</noinclude> | |||
Latest revision as of 15:05, 27 March 2023
This template defines the table "settlements". View table.
Parameters
name- Defaults to the page name if not supplied.axiom- Defaults to nonefounding-date- Input with DD-MM-YYYY format. Can also accept MM-YYYY and YYYY.dissolution-date- Input with DD-MM-YYYY format. Can also accept MM-YYYY and YYYY.leaders- Input as list separated by commas. Any individuals with articles associated with them will be automatically linked, so linking is not required.location- Accepts only one location. Any location with an article associated with it will automatically be linked, so linking is not required.population- Accepts an unformatted number (no commas or additional characters). Will automatically format the number for the infobox using the formatnum function.demonym- Accepts a String.significance- Accepts text. Unlike other strings, can be longer than 300 characters.