Difference between revisions of "Template:Infobox Albania place"
imported>Markussep m |
imported>Markussep m (renamed maintenance category) |
||
| (5 intermediate revisions by 3 users not shown) | |||
| Line 4: | Line 4: | ||
| nickname = {{{nickname|}}} | | nickname = {{{nickname|}}} | ||
| settlement_type = {{#switch:{{lc:{{{type}}}}} | | settlement_type = {{#switch:{{lc:{{{type}}}}} | ||
| − | | county | co = [[Counties of Albania|County]] <!-- Albanian: qark --> | + | | county | co = [[Counties of Albania|County]] <!-- Albanian: qark --> |
| − | | district | d = [[Districts of Albania|Former district]] <!-- Albanian: rrethe, abolished in 2000 --> | + | | district | d = [[Districts of Albania|Former district]] <!-- Albanian: rrethe, abolished in 2000 --> |
| − | | municipality | m = [[Municipalities of Albania|Municipality]] | + | | municipality | m = [[Municipalities of Albania|Municipality]] |
| − | | municipal unit | mu = [[Municipalities of Albania|Municipal unit]] | + | | municipal unit | mu = [[Municipalities of Albania|Municipal unit]] |
| − | | village | v = [[Villages of Albania|Village]] <!-- Albanian: fshat --> | + | | village | v = [[Villages of Albania|Village]] <!-- Albanian: fshat --> |
| − | | city | c = [[List of cities in Albania|City]] <!-- Albanian: qytet --> | + | | city | c = [[List of cities in Albania|City]] <!-- Albanian: qytet --> |
| − | | town | t = [[List of cities in Albania|Town]] <!-- Albanian: qytet, use this for smaller places with city status --> | + | | town | t = [[List of cities in Albania|Town]] <!-- Albanian: qytet, use this for smaller places with city status --> |
| − | | #default = Settlement | + | | #default = Settlement |
}} | }} | ||
| image_seal = {{{seal|}}} | | image_seal = {{{seal|}}} | ||
| Line 26: | Line 26: | ||
| map_caption = {{{map caption|}}} | | map_caption = {{{map caption|}}} | ||
| − | | coordinates = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type: | + | | coordinates = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:city|region:AL}}|{{#if:{{#property:P625}}|{{coord|format=dms|display=inline}}}}}} |
| subdivision_type = Country | | subdivision_type = Country | ||
| subdivision_name = {{flag|Albania}} | | subdivision_name = {{flag|Albania}} | ||
| subdivision_type1 = [[Counties of Albania|County]] | | subdivision_type1 = [[Counties of Albania|County]] | ||
| − | | subdivision_name1 = {{{county|}}} | + | | subdivision_name1 = {{#switch: {{{type|}}} |
| + | | co | county = | ||
| + | | #default = {{#switch: {{unlink|{{{county|}}} }} | ||
| + | | Berat | Berat County = [[Berat County|Berat]] | ||
| + | | Dibër | Dibër County = [[Dibër County|Dibër]] | ||
| + | | Durrës | Durrës County = [[Durrës County|Durrës]] | ||
| + | | Elbasan | Elbasan County = [[Elbasan County|Elbasan]] | ||
| + | | Fier | Fier County = [[Fier County|Fier]] | ||
| + | | Gjirokastër | Gjirokastër County = [[Gjirokastër County|Gjirokastër]] | ||
| + | | Korçë | Korçë County = [[Korçë County|Korçë]] | ||
| + | | Kukës | Kukës County = [[Kukës County|Kukës]] | ||
| + | | Lezhë | Lezhë County = [[Lezhë County|Lezhë]] | ||
| + | | Shkodër | Shkodër County = [[Shkodër County|Shkodër]] | ||
| + | | Tirana | Tirana County = [[Tirana County|Tirana]] | ||
| + | | Vlorë | Vlorë County = [[Vlorë County|Vlorë]] | ||
| + | | #default = {{{county|}}} | ||
| + | }} }} | ||
| subdivision_type2 = [[Municipalities of Albania|Municipality]] | | subdivision_type2 = [[Municipalities of Albania|Municipality]] | ||
| − | | subdivision_name2 = {{{municipality|}}} | + | | subdivision_name2 = {{#switch: {{{type|}}} |
| + | | co | county | municipality | m = | ||
| + | | #default = {{{municipality|}}} | ||
| + | }} | ||
| subdivision_type3 = [[Municipalities of Albania|Municipal unit]] | | subdivision_type3 = [[Municipalities of Albania|Municipal unit]] | ||
| subdivision_name3 = {{{municunit|}}} | | subdivision_name3 = {{{municunit|}}} | ||
| Line 89: | Line 108: | ||
| area_code_type = Area Code | | area_code_type = Area Code | ||
| area_code = {{{area code|{{{area_code|}}}}}} | | area_code = {{{area code|{{{area_code|}}}}}} | ||
| − | |||
| − | |||
| website = {{{website|}}} | | website = {{{website|}}} | ||
| − | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using | + | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox Albania place with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox Albania place]] with unknown parameter "_VALUE_"|ignoreblank=y| administrator | area code | area_code | area footnotes | area munic | area_munic | area rank | area total | area total km2 | area_total_km2 | area unit | area_unit | caption | car_plates | coordinates | council chairman | county | demonym | dissolved | elevation | emblem | established | flag | image_caption | image_skyline | incorporated | location | map | map caption | mapsize | mayor | municipality | municunit | name | nickname | NUTS code | official_name | other name | other_name | parts | party | population as of | population_as_of | population density km2 | population_density_km2 | population munic | population_munic | population rank | population total | population_total | population unit | population_unit | postal code | postal_code | prefect | seal | seat | settled | skyline | type | vehicle plate | website}}<!-- error tracking categories |
| − | -->{{#if: {{{coordinates|}}} | | {{ns0|[[Category:Pages using | + | -->{{#if: {{{coordinates|}}} | | {{ns0|[[Category:Pages using infobox Albania place with unknown parameters|C]]}} }}<!-- coordinates missing |
| − | -->{{#ifeq: {{#expr: {{#expr: {{{population total|{{{population_total|0}}}}}} round 0 }} = {{{population total|{{{population_total|0}}}}}} }} | 0 | [[Category:Pages using | + | -->{{#ifeq: {{#expr: {{#expr: {{{population total|{{{population_total|0}}}}}} round 0 }} = {{{population total|{{{population_total|0}}}}}} }} | 0 | [[Category:Pages using infobox Albania place with unknown parameters|D]] | }}<!-- Assign to maintenance category if decimal point is used in population as a thousands divider, or the population is not a number |
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 08:34, 5 November 2020
| This template uses Lua: |
Template:Uses Infobox settlement
Usage
Template:Parameter names example
This is a dedicated infobox for municipalities of Albania and villages of Albania.
Structure
{{Infobox Albanian place
| name =
| other name =
| type = <!-- Valid types are county, district, municipality, municipal unit, city, town and village. Default is Settlement -->
| flag =
| emblem =
| image_skyline =
| image_caption =
| map =
| location =
| county =
| municipality =
| municunit =
| parts =
| settled =
| incorporated =
| dissolved =
| party =
| mayor =
| party =
| prefect =
| council chairman =
| administrator =
| coordinates =
| elevation =
| area total =
| area rank =
| population as of =
| population total =
| population rank =
| demonym =
| postal code =
| area code =
| vehicle plate =
| website =
}}
Microformat
Tracking category
TemplateData
TemplateData documentation used by VisualEditor and other tools
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
See the monthly parameter usage report for this template.
TemplateData for Infobox Albania place Infobox for settlements and administrative divisions in Albania
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The above documentation is transcluded from Template:Infobox Albania place/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |