Template:Infobox Settlement

From Errapedia
Revision as of 16:11, 26 March 2023 by LunarEcklipse (talk | contribs) (Created page with "<noinclude>{{#cargo_declare: _table=settlements |name = String |founding_day = Integer |founding_month = Integer |founding_year = Integer |dissolution_day = Integer |dissolution_month = Integer |dissolution_year = Integer |axiom = String |location = String |leaders = List (,) of String |population = Integer |demonym = String |significance = Text}}<!-- </noinclude><includeonly><!-- Axiom, Founding Date, Location, Leader, Population, Demonym, Significance -->{{#vardefin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template defines the table "settlements". View table.

There is a problem with parsing the infobox

  • 0
  • 1
    <title source="name"><default>{{PAGENAME}}</default></title>
  • 2
    <image source="image"><default>File:{{PAGENAMEE}}.png</default></image>
  • 3
    <data source="axiom"><format>{{#if:{{#var:axiom}}|<div class="pi-nation-axiom" style="text-align:center;"><i>{{#var:axiom}}</i></div>|}}</format></data>
  • 4
    <group>
  • 5
    <data source="location"><label>Location</label><format>{{#ifexist:{{#var:location}}|[[{{#var:location}}]]|{{#var:location}}}}</format></data>
  • 6
    <data source="population"><label>Population</label><format>{{#if:{{#var:population}}|{{#formatnum:{{#var:population}}}}|}}</format><format>
  • 7
    <data source="founding-date"><label>Founded</label><format>{{#var:foundingprint}}</format></data>

    Opening and ending tag mismatch

    Incorrect XML markup. Please validate your XML

  • 8
    <data source="dissolution-date"><label>Dissolved</label><format>{{#var:dissolutionprint}}</format></data>
  • 9
    <data source="leaders"><label>Leaders</label><format>{{#ifexpr: {{#arraysize:leaders}} > 1 | <ul>{{#arrayprint:leaders||@@@@|<li>{{#ifexist:@@@@|[[@@@@]]|@@@@}}</li>}}</ul> | {{#arrayprint:leaders||@@@@|{{#ifexist:@@@@|[[@@@@]]|@@@@}}}}}}</format></data>
  • 10
    <data source="demonym"><label>Demonym</label><format>{{#var:demonym}}</format></data>
  • 11
    <data source="significance"><label>Significance</label><format>{{#var:significance}}</format></data>
  • 12
    </group>
  • 13

</includeonly>== Parameters ==

  • name - Defaults to the page name if not supplied.
  • axiom - Defaults to none
  • founding-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.