|
|
(26 révisions intermédiaires par le même utilisateur non affichées) |
Ligne 1 : |
Ligne 1 : |
− | <!-- texte principal du modèle --> | + | <div style="display:block; |
− | '''{{{name}}}''' est un(e) {{{type}}} en {{#if: {{{subarea|}}} | [[{{{subarea}}}]], }}[[{{{area}}}]] à la latitude ''{{{lat}}}'' et longitude ''{{{long}}}''.
| + | border:1px solid #8888aa; |
− | {{ #if: {{{map|}}} | | + | vertical-align:center; |
− | {{{!}}align=center style="background-color:transparent;" | + | background-color:#F0F0F0; |
− | {{!}}-
| + | margin:10px; padding:5px; |
− | {{!}}align="center" {{!}} {{#tag:slippymap||lat={{{lat}}}|lon={{{long}}}|z={{{zoom|12}}}|w={{{width|400}}}|h={{{height|400}}}|layer={{{layer|mapnik}}}}}
| + | {{#if:{{{float|}}}| float:{{{float}}}; }} |
− | {{!}}-
| + | {{ #if:{{{width|}}} | width:{{{width}}}px; }} |
− | {{!}}align="center" {{!}} <span style="font-size:0.8em;">Les images d'OpenStreetMap (et les données sous-jacentes) sont librement disponibles sous la [[FR:OpenStreetMap License|license d'OpenStreetMap]]</span><br>
| + | "> |
− | {{!}}} <br> |
| + | <!-- affichage de slippy map --> |
− | }}
| + | <center> |
− | | + | {{#tag:slippymap||lat={{{lat|48.467}}}|lon={{{long|-4.438}}}|z={{{zoom|9}}}|w={{{width|400}}}|h={{{height|350}}}|layer={{{layer|mapnik}}}|marker={{{marker}}}}} |
− | | + | </center> |
− | <includeonly>
| + | </div> |
− | <!-- 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> | |