Difference between revisions of "Template:Infobox Portugal place/sandbox"
imported>Markussep (either intermunicipal community or metropolitan area, never both) |
imported>TerraCyprus m (TerraCyprus moved page Template:Infobox Portuguese subdivision/sandbox to Template:Infobox Portugal place/sandbox: use "place" as is done by Australian place (since 2006) and UK place (since 2007), restore explicit reference to country (2014-2019: "PT") by using a noun) |
||
| (4 intermediate revisions by one other user not shown) | |||
| Line 2: | Line 2: | ||
| official_name = {{#if:{{{name|{{{official_name<includeonly>|</includeonly>}}}}}}|{{{name|{{{official_name<includeonly>|</includeonly>}}}}}}|{{PAGENAMEBASE}}}} | | official_name = {{#if:{{{name|{{{official_name<includeonly>|</includeonly>}}}}}}|{{{name|{{{official_name<includeonly>|</includeonly>}}}}}}|{{PAGENAMEBASE}}}} | ||
| settlement_type = {{#switch: {{{type<includeonly>|</includeonly><noinclude>|municipality</noinclude>}}} | | settlement_type = {{#switch: {{{type<includeonly>|</includeonly><noinclude>|municipality</noinclude>}}} | ||
| + | | CIM = [[Intermunicipal communities of Portugal|Intermunicipal community]] | ||
| municipality = [[Municipalities of Portugal|Municipality]] | | municipality = [[Municipalities of Portugal|Municipality]] | ||
| parish = [[Freguesia|Civil parish]] | | parish = [[Freguesia|Civil parish]] | ||
| Line 57: | Line 58: | ||
}} | }} | ||
| subdivision_type2 = {{#if: {{{CIM<includeonly>|</includeonly>}}}|[[Intermunicipal communities of Portugal|Intermunic. comm.]]|[[Metropolitan areas in Portugal|Metropolitan area]] }} | | subdivision_type2 = {{#if: {{{CIM<includeonly>|</includeonly>}}}|[[Intermunicipal communities of Portugal|Intermunic. comm.]]|[[Metropolitan areas in Portugal|Metropolitan area]] }} | ||
| − | | subdivision_name2 = {{#if: {{{CIM<includeonly>|</includeonly>}}}|{{{CIM<includeonly>|</includeonly>}}}|{{{metro}}} }} | + | | subdivision_name2 = {{#if: {{{CIM<includeonly>|</includeonly>}}}|{{{CIM<includeonly>|</includeonly>}}}|{{{metro|}}} }} |
| subdivision_type3 = [[Districts of Portugal|District]] | | subdivision_type3 = [[Districts of Portugal|District]] | ||
| subdivision_name3 = {{{district<includeonly>|</includeonly>}}} | | subdivision_name3 = {{{district<includeonly>|</includeonly>}}} | ||
| Line 70: | Line 71: | ||
| #default = | | #default = | ||
}} | }} | ||
| − | | parts_type = [[Freguesia|Parishes]] | + | | parts_type = {{#switch: {{{type<includeonly>|</includeonly><noinclude>|municipality</noinclude>}}} |
| + | | CIM = [[Municipalities of Portugal|Municipalities]] | ||
| + | | municipality = [[Freguesia|Parishes]] | ||
| + | | #default = | ||
| + | }} | ||
| parts = {{#switch: {{{type<includeonly>|</includeonly><noinclude>|municipality</noinclude>}}} | | parts = {{#switch: {{{type<includeonly>|</includeonly><noinclude>|municipality</noinclude>}}} | ||
| + | | CIM = {{{municipalities}}} | ||
| municipality = {{{parishes<includeonly>|</includeonly>}}} | | municipality = {{{parishes<includeonly>|</includeonly>}}} | ||
| #default = | | #default = | ||
}} | }} | ||
| + | | seat = {{{seat<includeonly>|</includeonly>}}} | ||
| leader_party = {{{leader_party<includeonly>|</includeonly>}}} | | leader_party = {{{leader_party<includeonly>|</includeonly>}}} | ||
| leader_title = {{#switch: {{{type<includeonly>|</includeonly><noinclude>|municipality</noinclude>}}} | | leader_title = {{#switch: {{{type<includeonly>|</includeonly><noinclude>|municipality</noinclude>}}} | ||
| + | | CIM = President | ||
| municipality = [[President of the Municipal Chamber|President]] | | municipality = [[President of the Municipal Chamber|President]] | ||
| #default = | | #default = | ||
}} | }} | ||
| leader_name = {{#switch: {{{type<includeonly>|</includeonly><noinclude>|municipality</noinclude>}}} | | leader_name = {{#switch: {{{type<includeonly>|</includeonly><noinclude>|municipality</noinclude>}}} | ||
| − | | municipality = {{{leader_name<includeonly>|</includeonly>}}} | + | | CIM | municipality = {{{leader_name<includeonly>|</includeonly>}}} |
| #default = | | #default = | ||
}} | }} | ||
| Line 97: | Line 105: | ||
| #default = [[Western European Time|WET]]/[[Western European Summer Time|WEST]] (UTC+0/+1) | | #default = [[Western European Time|WET]]/[[Western European Summer Time|WEST]] (UTC+0/+1) | ||
}} | }} | ||
| − | | postal_code_type = {{#if:{{{postal_code<includeonly>|</includeonly>}}}|Postal code}} | + | | postal_code_type = {{#if:{{{postal_code<includeonly>|</includeonly>}}}|[[Postal codes in Portugal|Postal code]]}} |
| postal_code = {{{postal_code<includeonly>|</includeonly>}}} | | postal_code = {{{postal_code<includeonly>|</includeonly>}}} | ||
| − | | area_code_type = {{#if:{{{area_code<includeonly>|</includeonly>}}}|Area code}} | + | | area_code_type = {{#if:{{{area_code<includeonly>|</includeonly>}}}|[[Telephone numbers in Portugal|Area code]]}} |
| area_code = {{{area_code<includeonly>|</includeonly>}}} | | area_code = {{{area_code<includeonly>|</includeonly>}}} | ||
| blank_name_sec2 = {{#if:{{{patron<includeonly>|</includeonly>}}}|[[Patron saint|Patron]]}} | | blank_name_sec2 = {{#if:{{{patron<includeonly>|</includeonly>}}}|[[Patron saint|Patron]]}} | ||
| Line 110: | Line 118: | ||
| extinct_date = {{{dissolved|}}} | | extinct_date = {{{dissolved|}}} | ||
| website = {{{website<includeonly>|</includeonly>}}} | | website = {{{website<includeonly>|</includeonly>}}} | ||
| − | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Portugal articles needing attention|U_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox Portuguese subdivision]] with unknown parameter "_VALUE_"|ignoreblank=y| | area_code | area_total | area_total_km2 | CIM | coordinates | dissolved | district | elevation | elevation_m | elevation_max | elevation_min | established_date | holiday | image_caption | image_coat_of_arms | image_flag | image_location | image_map | image_shield | image_skyline | island | leader_name | leader_party | map_caption | metro | municipality | name | official_name | parishes | patron | population_as_of | population_total | postal_code | region | type | website | | + | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Portugal articles needing attention|U_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox Portuguese subdivision]] with unknown parameter "_VALUE_"|ignoreblank=y| | area_code | area_total | area_total_km2 | CIM | coordinates | dissolved | district | elevation | elevation_m | elevation_max | elevation_min | established_date | holiday | image_caption | image_coat_of_arms | image_flag | image_location | image_map | image_shield | image_skyline | island | leader_name | leader_party | map_caption | metro | municipality | municipalities | name | official_name | parishes | patron | population_as_of | population_total | postal_code | region | seat | type | website | |
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 14:22, 19 September 2020
[[Category:Template:Pagetype with short description]]
Script error: No such module "If empty". | |
|---|---|
| [[File:{{{image_skyline}}}|270x320px|{{{image_caption}}}]] {{{image_caption}}} | |
[[File:{{{image_flag}}}|100px|border|Flag of {{{official_name}}}]] Flag [[File:{{{image_shield}}}|100px|Coat of arms of {{{official_name}}}]] Coat of arms | |
| [[File:{{{image_map}}}|270x320px|{{{map_caption}}}]] {{{map_caption}}} | |
| Country | |
| Region | {{{region}}} |
| Intermunic. comm. | {{{CIM}}} |
| District | {{{district}}} |
| Established | {{{established_date}}} |
| Seat | {{{seat}}} |
| Parishes | {{{parishes}}} |
| Government | |
| • President | {{{leader_name}}} (Template:Polparty) |
| Area | |
| • Total | 1 km2 (Template:Round sq mi) |
| Elevation | 0 m (Template:Round ft) |
| Highest elevation | 0 m (Template:Round ft) |
| Lowest elevation | 0 m (Template:Round ft) |
| Population | |
| • Total | 0 |
| • Density | Template:Round/km2 (Template:Round/sq mi) |
| Script error: No such module "If empty". | |
| Time zone | WET/WEST (UTC+0/+1) |
| Postal code | {{{postal_code}}} |
| Area code | Script error: No such module "If empty". |
| Patron | {{{patron}}} |
| Local holiday | {{{holiday}}} |
| Website | {{{website}}} |
| This is the template sandbox page for Template:Infobox Portugal place (diff). See also the companion subpage for test cases. |
Template:Uses Infobox settlement
| This template uses Lua: |
Usage
This is a dedicated infobox for administrative divisions of Portugal. The following subdivisions are currently supported:
Structure
{{Infobox Portugal place
|type = <!-- municipality, parish, CIM -->
|official_name =
|image_flag =
|flag_border =
|image_shield =
|image_skyline =
|image_caption =
|image_location =
|region = <!-- NUTS II region -->
|CIM = <!-- Intermunicipal community (NUTS III region) -->
|metro = <!-- Metropolitan area (NUTS III region) -->
|district = <!-- District (former) -->
|municipality = <!-- For parishes -->
|island = <!-- For subdivisions in the Azores and Madeira -->
|parishes = <!-- Link to list of parishes -->
|established_date =
|leader_name = <!-- President of the municipal chamber -->
|leader_party =
|coordinates = <!-- Use {{Coord}} -->
|elevation = <!-- elevations in meters -->
|elevation_min =
|elevation_max =
|area_total =
|population_as_of =
|population_total =
|patron =
|holiday =
|postal_code =
|area_code =
|website =
}}
TemplateData
TemplateData documentation used by VisualEditor and other tools
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
See the monthly parameter usage report for this template.
TemplateData for Infobox Portugal place Infobox for administrative divisions of Portugal
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Microformat
Tracking category
| The above documentation is transcluded from Template:Infobox Portugal place/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |