Template:Infobox Organization: Difference between revisions

From Errapedia
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 105: Line 105:
<data source="axiom"><format>{{#if:{{#var:axiom}}|<div class="pi-nation-axiom" style="text-align:center;"><i>{{#var:axiom}}</i></div>|}}</format></data>
<data source="axiom"><format>{{#if:{{#var:axiom}}|<div class="pi-nation-axiom" style="text-align:center;"><i>{{#var:axiom}}</i></div>|}}</format></data>
<group>
<group>
<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}}|&#32;({{#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}}|&#32;({{#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="location"><label>Location</label><format>{{#ifexpr: {{#arraysize:locations}} > 1 | <ul>{{#arrayprint:locations||@@@@|<li>{{#ifexist:@@@@|[[@@@@]]|@@@@}}</li>}}</ul> | {{#arrayprint:locations||@@@@|{{#ifexist:@@@@|[[@@@@]]|@@@@}}}}}}</format></data>
<data source="location"><label>Location</label><format>{{#ifexpr: {{#arraysize:locations}} > 1 | <ul>{{#arrayprint:locations||@@@@|<li>{{#ifexist:@@@@|[[@@@@]]|@@@@}}</li>}}</ul> | {{#arrayprint:locations||@@@@|{{#ifexist:@@@@|[[@@@@]]|@@@@}}}}}}</format></data>

Revision as of 15:02, 27 March 2023

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

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 - If there is more than one location, input as list separated by commas. Any locations with articles associated with them will be automatically linked, so linking is not required.