Template:Infobox Settlement: Difference between revisions

From Errapedia
Jump to navigation Jump to search
(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...")
 
No edit summary
Line 115: Line 115:
<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}}|{{#formatnum:{{#var:population}}}}|}}</format><format>
<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}}</format></data>
<data source="dissolution-date"><label>Dissolved</label><format>{{#var:dissolutionprint}}</format></data>
<data source="dissolution-date"><label>Dissolved</label><format>{{#var:dissolutionprint}}</format></data>

Revision as of 16:12, 26 March 2023

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

</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.