Template:AdministrativeSubdivision: Difference between revisions

no edit summary
(Undo revision 17072 by Tom (talk))
Tag: Undo
No edit summary
Tag: Reverted
Line 1: Line 1:
<noinclude>
{{#template_params:
|subdivision_name (required)
|country (label=Country, allowed values=United States)
|continent
|region
|area_sq_km (type=Integer)
|population (type=Integer)
|catholic_population (type=Integer)
|catholic_percentage (type=Float)
|rank_among_religions (type=Integer)
|official_languages (type=List (,) of String)
|capital_city
|date_catholicism_introduced (type=Date, format=YYYY)
|catholicism_status
|ecclesiastical_provinces_count (type=Integer)
|dioceses_count (type=Integer)
|patron_saints (type=List (,) of Page, namespace=Main)
|historic (type=Boolean, allowed values=Yes,No)
|Diocese1 (label=Diocese 1, type=Page, deprecated=Use dioceses_count and links in prose)
|Diocese2 (label=Diocese 2, type=Page, deprecated=Use dioceses_count and links in prose)
|Diocese3 (label=Diocese 3, type=Page, deprecated=Use dioceses_count and links in prose)
}}
{{#cargo_declare:_table=AdministrativeSubdivision
|subdivision_name=Page
|country=Page (allowed values=United States)
|continent=String
|region=String
|area_sq_km=Integer
|population=Integer
|catholic_population=Integer
|catholic_percentage=Float
|rank_among_religions=Integer
|official_languages=List (,) of String
|capital_city=String
|date_catholicism_introduced=Date
|catholicism_status=String
|ecclesiastical_provinces_count=Integer
|dioceses_count=Integer
|patron_saints=List (,) of Page
|historic=Boolean
|Diocese1=Page (deprecated)
|Diocese2=Page (deprecated)
|Diocese3=Page (deprecated)
}}
== Usage ==
This template is used to describe a civil administrative subdivision (state, province, etc.) with Catholic demographic and historical data.
Only ''verifiable'' data should be entered. Cite sources in the article body.
=== Required ===
* <code>subdivision_name</code> – Full name of the subdivision (page title)
=== Strongly recommended ===
* <code>country</code>, <code>population</code>, <code>catholic_population</code>, <code>date_catholicism_introduced</code>
=== Deprecated ===
* <code>Diocese1</code>, <code>Diocese2</code>, <code>Diocese3</code> – Use <code>dioceses_count</code> and link dioceses in article text.
[[Category:Template documentation]]
</noinclude>
<includeonly>
<includeonly>
{{#cargo_store:_table=AdministrativeSubdivision
{{#cargo_store:_table=AdministrativeSubdivision
Line 87: Line 23:
}}
}}


{{#template_display:_format=infobox}}
{| class="wikitable" style="float:right; clear:right; margin:0 0 1em 1em; width:22em; font-size:88%;"
! colspan="2" style="background:#f0f0f0; font-size:110%; text-align:center;" |
[[{{{country|United States}}}]]<br />{{{subdivision_name|{{PAGENAME}}}}} {{#if:{{{historic|}}}|''(historic)''}}
|-
| colspan="2" style="text-align:center; font-size:90%; padding:0.3em;" | {{#if:{{{country|}}}|Location in [[{{{country}}}]]|Location unknown}}
|-
! colspan="2" style="background:#f0f0f0; text-align:center;" | Geography
{{#if:{{{continent|}}}|
|-
| style="background:#f9f9f9;" | Continent
| {{{continent}}}
}}
{{#if:{{{region|}}}|
|-
| style="background:#f9f9f9;" | Region
| {{{region}}}
}}
{{#if:{{{area_sq_km|}}}|
|-
| style="background:#f9f9f9;" | Area
| {{#expr:{{{area_sq_km}}} round 0}}&nbsp;km²
}}
{{#if:{{{capital_city|}}}|
|-
| style="background:#f9f9f9;" | Capital
| [[{{{capital_city}}}]]
}}
{{#if:{{{official_languages|}}}|
|-
| style="background:#f9f9f9;" | Language(s)
| {{#arraymap:{{{official_languages}}}|,|x|[[x]]| • }}
}}
 
! colspan="2" style="background:#f0f0f0; text-align:center;" | Demographics
{{#if:{{{population|}}}|
|-
| style="background:#f9f9f9;" | Population
| {{#expr:{{{population}}} round 0}} ({{#if:{{{catholic_population|}}}|{{#expr:{{{catholic_population}}}*100/{{{population}}} round 1}}% Catholic|}})
}}
{{#if:{{{catholic_population|}}}|
|-
| style="background:#f9f9f9;" | Catholic
| {{#expr:{{{catholic_population}}} round 0}} {{#if:{{{catholic_percentage|}}}|({{{catholic_percentage}}}%)|}}
}}
{{#if:{{{rank_among_religions|}}}|
|-
| style="background:#f9f9f9;" | Rank
| #{{{rank_among_religions}}} among religions
}}
 
! colspan="2" style="background:#f0f0f0; color:#006400; text-align:center;" | Catholic Presence
{{#if:{{{date_catholicism_introduced|}}}|
|-
| style="background:#f9f9f9;" | Introduced
| {{{date_catholicism_introduced}}}
}}
{{#if:{{{catholicism_status|}}}|
|-
| style="background:#f9f9f9;" | Status
| ''{{{catholicism_status}}}''
}}
{{#if:{{{dioceses_count|}}}|
|-
| style="background:#f9f9f9;" | Dioceses
| {{{dioceses_count}}}
}}
{{#if:{{{ecclesiastical_provinces_count|}}}|
|-
| style="background:#f9f9f9;" | Provinces
| {{{ecclesiastical_provinces_count}}}
}}
 
! colspan="2" style="background:#f0f0f0; color:#8B4513; text-align:center;" | Patron Saints
|-
| colspan="2" style="text-align:center;" |
{{#if:{{{patron_saints|}}}|
  {{#arraymap:{{{patron_saints}}}|,|x|[[x]]| • }}
| ''None recorded''
}}
|}


[[Category:Administrative Subdivision]]
[[Category:Administrative Subdivision]]
</includeonly>
</includeonly>