|
|
Ligne 9 : |
Ligne 9 : |
| {{!}}} <br> | | | {{!}}} <br> | |
| }} | | }} |
− |
| |
− |
| |
− | <includeonly>
| |
− | <!-- Allocate to categories. Note we want plural categories so use switch to change singular types (eg. city) to plurals (eg.cities) -->
| |
− |
| |
− | <!-- If a category exists with the same name as the place then add the place to that category with a sort order of "*" to put it first rather than using "sortkey" -->
| |
− | {{#ifexist: Category:{{{name}}} | [[Category:{{{name}}}|*]] | }}
| |
− |
| |
− | <!-- if subarea has been defined then add to category: types in subarea -->
| |
− | {{#if: {{{subarea|}}} | [[Category: {{#switch: {{lc:{{{type}}} }}
| |
− | | city = Cities
| |
− | | ville = Cities
| |
− | | continent = Continents
| |
− | | country = Countries
| |
− | | pays = Countries
| |
− | | sovereign state = Countries
| |
− | | county = Counties
| |
− | | district = Districts
| |
− | | canton = Cantons
| |
− | | kreis = Kreise
| |
− | | landkreis = Landkreise
| |
− | | département = Départements
| |
− | | hameau = Hamlets
| |
− | | hamlet = Hamlets
| |
− | | island
| |
− | | isle = Islands
| |
− | | municipality = Municipalities
| |
− | | province = Provinces
| |
− | | région = Regions
| |
− | | region = Regions
| |
− | | state = States
| |
− | | suburb = Suburbs
| |
− | | metropolitan borough and town
| |
− | | town = Towns
| |
− | | village = Villages
| |
− | | Places }} {{#ifeq:{{{subarea}}}|Earth|on|in}} {{{subarea}}}|{{#if: {{{sortkey|}}} | {{{sortkey}}} | {{{name}}}}}]]
| |
| }} | | }} |
− |
| |
− | <!-- Add the place to the category: types in area, but only do this if the category types in subarea does not exist -->
| |
− |
| |
− | {{#ifexist:
| |
− | Category: {{#switch: {{lc:{{{type}}} }}
| |
− | | city = Cities
| |
− | | ville = Cities
| |
− | | continent = Continents
| |
− | | country = Countries
| |
− | | pays = Countries
| |
− | | sovereign state = Countries
| |
− | | county = Counties
| |
− | | district = Districts
| |
− | | canton = Cantons
| |
− | | kreis = Kreise
| |
− | | landkreis = Landkreise
| |
− | | département = Départements
| |
− | | hameau = Hamlets
| |
− | | hamlet = Hamlets
| |
− | | island
| |
− | | isle = Islands
| |
− | | municipality = Municipalities
| |
− | | province = Provinces
| |
− | | région = Regions
| |
− | | region = Regions
| |
− | | state = States
| |
− | | suburb = Suburbs
| |
− | | metropolitan borough and town
| |
− | | town = Towns
| |
− | | village = Villages
| |
− | | Places }} {{#ifeq:{{{subarea}}}|Earth|on|in}} {{{subarea}}}
| |
− | | <!-- Do nothing: subarea category exists --> |
| |
− | [[Category: {{#switch: {{lc: {{{type}}} }}
| |
− | | city = Cities
| |
− | | ville = Cities
| |
− | | continent = Continents
| |
− | | country = Countries
| |
− | | pays = Countries
| |
− | | sovereign state = Countries
| |
− | | county = Counties
| |
− | | district = Districts
| |
− | | canton = Cantons
| |
− | | kreis = Kreise
| |
− | | landkreis = Landkreise
| |
− | | département = Départements
| |
− | | hameau = Hamlets
| |
− | | hamlet = Hamlets
| |
− | | island
| |
− | | isle = Islands
| |
− | | municipality = Municipalities
| |
− | | province = Provinces
| |
− | | région = Regions
| |
− | | region = Regions
| |
− | | state = States
| |
− | | suburb = Suburbs
| |
− | | metropolitan borough and town
| |
− | | town = Towns
| |
− | | village = Villages
| |
− | | Places }} {{#ifeq:{{{area}}}|Earth|on|in}} {{{area}}}|{{#if: {{{sortkey|}}} | {{{sortkey}}} | {{{name}}}}}]]
| |
− | }}{{ #if: {{{image|}}} | [[Category:Place Uses Image]] | }}
| |
− | </includeonly>
| |