Template:AdministrativeSubdivision: Difference between revisions

Jump to navigation Jump to search
Undo revision 17072 by Tom (talk)
No edit summary
Tag: Reverted
(Undo revision 17072 by Tom (talk))
Tag: Undo
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 23: Line 87:
}}
}}


{{#if:{{{country|}}}|
{{#template_display:_format=infobox}}
{{Infobox
|name        = {{{subdivision_name|{{PAGENAME}}}}}
|image        = [[File:Placeholder-map.png|250px]]
|caption      = Location in {{{country|}}}
|bodyclass    = vcard
|bodystyle    = width: 22em; font-size: 88%;
 
|headerstyle  = background:#f0f0f0; font-weight:bold;
|labelstyle  = background:#f9f9f9; white-space:nowrap;
|datastyle    = text-align:left;
 
|header1 = <span style="font-size:110%;">[[{{{country|}}}]]</span>
|data2  = {{{subdivision_name|{{PAGENAME}}}}} {{#if:{{{historic|}}}|''(historic)''}}
 
|header3 = Geography
|label4  = Continent
|data4  = {{#if:{{{continent|}}}|{{{continent}}}|—}}
|label5  = Region
|data5  = {{#if:{{{region|}}}|{{{region}}}|—}}
|label6  = Area
|data6  = {{#if:{{{area_sq_km|}}}|{{#invoke:Format|number|{{{area_sq_km}}}}} km²|—}}
|label7  = Capital
|data7  = {{#if:{{{capital_city|}}}|[[{{{capital_city}}}]]|—}}
|label8  = Language(s)
|data8  = {{#if:{{{official_languages|}}}|{{#arraymap:{{{official_languages}}}|,|x|[[x]]| • }}|—}}
 
|header9 = Demographics
|label10 = Population
|data10  = {{#if:{{{population|}}}|{{#invoke:Format|number|{{{population}}}}}|—}}
|label11 = Catholic
|data11  = {{#if:{{{catholic_population|}}}|{{#invoke:Format|number|{{{catholic_population}}}}} ({{#if:{{{catholic_percentage|}}}|{{{catholic_percentage}}}%|—}})|—}}
|label12 = Rank
|data12  = {{#if:{{{rank_among_religions|}}}|#{{{rank_among_religions}}} among religions|—}}
 
|header13 = <span style="color:#006400;">Catholic Presence</span>
|label14 = Introduced
|data14  = {{#if:{{{date_catholicism_introduced|}}}|{{{date_catholicism_introduced}}}|—}}
|label15 = Status
|data15  = {{#if:{{{catholicism_status|}}}|''{{{catholicism_status}}}''|—}}
|label16 = Dioceses
|data16  = {{#if:{{{dioceses_count|}}}|{{{dioceses_count}}}|—}}
|label17 = Provinces
|data17  = {{#if:{{{ecclesiastical_provinces_count|}}}|{{{ecclesiastical_provinces_count}}}|—}}
 
|header18 = <span style="color:#8B4513;">Patron Saints</span>
|data19  = {{#if:{{{patron_saints|}}}|
  {{#arraymap:{{{patron_saints}}}|,|x|[[x]]| • }}|''None recorded''}}
}}
|No data available.
}}


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

Navigation menu