Template:Infobox Settlement: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 117: | Line 117: | ||
<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></data> | <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> | ||
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.