Modèle:Infobox/Géolocalisation multiple : Différence entre versions
imported>Jacques Ducloy m (1 révision importée)  | 
				imported>Jacques Ducloy   | 
				||
| Ligne 1 : | Ligne 1 : | ||
| − | <includeonly>{{#  | + | <includeonly>{{#switch: {{{géolocalisation|}}} | | non | pas pertinent = <nowiki /> | {{#if: {{#invoke:Coordinates|longitude|{{{longitude|}}}|wikidata=true}} |  | 
| − | + | {{#ifeq:{{{infobox|}}}|V3|| <td colspan="{{#if:{{{colspan|}}}|{{{colspan}}}|2}}"> }} <div class="img_toogle" style="text-align:center;">  | |
{{#if:{{#titleparts:{{{géolocalisation|}}}|1|4}}|  | {{#if:{{#titleparts:{{{géolocalisation|}}}|1|4}}|  | ||
{{Infobox/Géolocalisation multiple/Carte|{{#titleparts:{{{géolocalisation|}}}|1|4}}  | {{Infobox/Géolocalisation multiple/Carte|{{#titleparts:{{{géolocalisation|}}}|1|4}}  | ||
| − |           |largeur={{#if:{{{largeur4|{{{largeur|}}}}}}|{{#ifexpr:{{{largeur4|{{{largeur|}}}}}}>280|280|{{{largeur4|{{{largeur|}}}}}}}}|  | + |           |largeur={{#if:{{{largeur4|{{{largeur|}}}}}}|{{#ifexpr:{{{largeur4|{{{largeur|}}}}}}>280|280|{{{largeur4|{{{largeur|}}}}}}}}|280}}  | 
| − |           |type={{{type4|}}}|toponyme={{{toponyme|}}}|alt={{{alt4|}}}|info={{{info4|}}}  | + |           |type={{{type4|{{{type|défaut}}}}}}|toponyme={{{toponyme|}}}|alt={{{alt4|}}}|info={{{info4|}}}  | 
| − |           |point={{{point|}}}|parampoint1={{{parampoint1|}}}|parampoint2={{{parampoint2|}}}  | + |           |point={{{point4|{{{point|}}}}}}|parampoint1={{{parampoint1-4|{{{parampoint1|}}}}}}|parampoint2={{{parampoint2-4|{{{parampoint2|}}}}}}  | 
| − |           |latitude={{  | + |           |latitude={{#if: {{{latitude|}}} | {{#invoke:Coordinates|dms2dec|{{{latitude|}}}}} | {{#invoke:Coordinates|latitude|wikidata=true}} }}  | 
| + |          |longitude={{#if: {{{longitude|}}} | {{#invoke:Coordinates|dms2dec|{{{longitude|}}}}} | {{#invoke:Coordinates|longitude|wikidata=true}} }}  | ||
| + |          |latitude2={{#if: {{{latitude2|}}} | {{#invoke:Coordinates|dms2dec|{{{latitude2|}}}}} |}}  | ||
| + |          |longitude2={{#if: {{{longitude2|}}} | {{#invoke:Coordinates|dms2dec|{{{longitude2|}}}}} |}}  | ||
| + |          |toponyme2={{{toponyme2|}}}  | ||
| + |          |latitude3={{#if: {{{latitude3|}}} | {{#invoke:Coordinates|dms2dec|{{{latitude3|}}}}} |}}  | ||
| + |          |longitude3={{#if: {{{longitude3|}}} | {{#invoke:Coordinates|dms2dec|{{{longitude3|}}}}} |}}  | ||
| + |          |toponyme3={{{toponyme3|}}}  | ||
| + |          |latitude4={{#if: {{{latitude4|}}} | {{#invoke:Coordinates|dms2dec|{{{latitude4|}}}}} |}}  | ||
| + |          |longitude4={{#if: {{{longitude4|}}} | {{#invoke:Coordinates|dms2dec|{{{longitude4|}}}}} |}}  | ||
| + |          |toponyme4={{{toponyme4|}}}  | ||
}}}}<!--  | }}}}<!--  | ||
-->{{#if:{{#titleparts:{{{géolocalisation|}}}|1|3}}|  | -->{{#if:{{#titleparts:{{{géolocalisation|}}}|1|3}}|  | ||
{{Infobox/Géolocalisation multiple/Carte|{{#titleparts:{{{géolocalisation|}}}|1|3}}  | {{Infobox/Géolocalisation multiple/Carte|{{#titleparts:{{{géolocalisation|}}}|1|3}}  | ||
| − |           |largeur={{#if:{{{largeur3|{{{largeur|}}}}}}|{{#ifexpr:{{{largeur3|{{{largeur|}}}}}}>280|280|{{{largeur3|{{{largeur|}}}}}}}}|  | + |           |largeur={{#if:{{{largeur3|{{{largeur|}}}}}}|{{#ifexpr:{{{largeur3|{{{largeur|}}}}}}>280|280|{{{largeur3|{{{largeur|}}}}}}}}|280}}  | 
| − |           |type={{{type3|}}}|toponyme={{{toponyme|}}}|alt={{{alt3|}}}|info={{{info3|}}}  | + |           |type={{{type3|{{{type|défaut}}}}}}|toponyme={{{toponyme|}}}|alt={{{alt3|}}}|info={{{info3|}}}  | 
| − |           |point={{{point|}}}|parampoint1={{{parampoint1|}}}|parampoint2={{{parampoint2|}}}  | + |           |point={{{point3|{{{point|}}}}}}|parampoint1={{{parampoint1-3|{{{parampoint1|}}}}}}|parampoint2={{{parampoint2-3|{{{parampoint2|}}}}}}  | 
| − |           |latitude={{  | + |           |latitude={{#if: {{{latitude|}}} | {{#invoke:Coordinates|dms2dec|{{{latitude|}}}}} | {{#invoke:Coordinates|latitude|wikidata=true}} }}  | 
| + |          |longitude={{#if: {{{longitude|}}} | {{#invoke:Coordinates|dms2dec|{{{longitude|}}}}} | {{#invoke:Coordinates|longitude|wikidata=true}} }}  | ||
| + |          |latitude2={{#if: {{{latitude2|}}} | {{#invoke:Coordinates|dms2dec|{{{latitude2|}}}}} |}}  | ||
| + |          |longitude2={{#if: {{{longitude2|}}} | {{#invoke:Coordinates|dms2dec|{{{longitude2|}}}}} |}}  | ||
| + |          |toponyme2={{{toponyme2|}}}  | ||
| + |          |latitude3={{#if: {{{latitude3|}}} | {{#invoke:Coordinates|dms2dec|{{{latitude3|}}}}} |}}  | ||
| + |          |longitude3={{#if: {{{longitude3|}}} | {{#invoke:Coordinates|dms2dec|{{{longitude3|}}}}} |}}  | ||
| + |          |toponyme3={{{toponyme3|}}}  | ||
| + |          |latitude4={{#if: {{{latitude4|}}} | {{#invoke:Coordinates|dms2dec|{{{latitude4|}}}}} |}}  | ||
| + |          |longitude4={{#if: {{{longitude4|}}} | {{#invoke:Coordinates|dms2dec|{{{longitude4|}}}}} |}}  | ||
| + |          |toponyme4={{{toponyme4|}}}  | ||
}}}}<!--  | }}}}<!--  | ||
-->{{#if:{{#titleparts:{{{géolocalisation|}}}|1|2}}|  | -->{{#if:{{#titleparts:{{{géolocalisation|}}}|1|2}}|  | ||
{{Infobox/Géolocalisation multiple/Carte|{{#titleparts:{{{géolocalisation|}}}|1|2}}  | {{Infobox/Géolocalisation multiple/Carte|{{#titleparts:{{{géolocalisation|}}}|1|2}}  | ||
| − |           |largeur={{#if:{{{largeur2|{{{largeur|}}}}}}|{{#ifexpr:{{{largeur2|{{{largeur|}}}}}}>280|280|{{{largeur2|{{{largeur|}}}}}}}}|  | + |           |largeur={{#if:{{{largeur2|{{{largeur|}}}}}}|{{#ifexpr:{{{largeur2|{{{largeur|}}}}}}>280|280|{{{largeur2|{{{largeur|}}}}}}}}|280}}  | 
| − |           |type={{{type2|}}}|toponyme={{{toponyme|}}}|alt={{{alt2|}}}|info={{{info2|}}}  | + |           |type={{{type2|{{{type|défaut}}}}}}|toponyme={{{toponyme|}}}|alt={{{alt2|}}}|info={{{info2|}}}  | 
| − |           |point={{{point|}}}|parampoint1={{{parampoint1|}}}|parampoint2={{{parampoint2|}}}  | + |           |point={{{point2|{{{point|}}}}}}|parampoint1={{{parampoint1-2|{{{parampoint1|}}}}}}|parampoint2={{{parampoint2-2|{{{parampoint2|}}}}}}  | 
| − |           |latitude={{  | + |           |latitude={{#if: {{{latitude|}}} | {{#invoke:Coordinates|dms2dec|{{{latitude|}}}}} | {{#invoke:Coordinates|latitude|wikidata=true}} }}  | 
| + |          |longitude={{#if: {{{longitude|}}} | {{#invoke:Coordinates|dms2dec|{{{longitude|}}}}} | {{#invoke:Coordinates|longitude|wikidata=true}} }}  | ||
| + |          |latitude2={{#if: {{{latitude2|}}} | {{#invoke:Coordinates|dms2dec|{{{latitude2|}}}}} |}}  | ||
| + |          |longitude2={{#if: {{{longitude2|}}} | {{#invoke:Coordinates|dms2dec|{{{longitude2|}}}}} |}}  | ||
| + |          |toponyme2={{{toponyme2|}}}  | ||
| + |          |latitude3={{#if: {{{latitude3|}}} | {{#invoke:Coordinates|dms2dec|{{{latitude3|}}}}} |}}  | ||
| + |          |longitude3={{#if: {{{longitude3|}}} | {{#invoke:Coordinates|dms2dec|{{{longitude3|}}}}} |}}  | ||
| + |          |toponyme3={{{toponyme3|}}}  | ||
| + |          |latitude4={{#if: {{{latitude4|}}} | {{#invoke:Coordinates|dms2dec|{{{latitude4|}}}}} |}}  | ||
| + |          |longitude4={{#if: {{{longitude4|}}} | {{#invoke:Coordinates|dms2dec|{{{longitude4|}}}}} |}}  | ||
| + |          |toponyme4={{{toponyme4|}}}  | ||
}}}}<!--  | }}}}<!--  | ||
-->{{#if:{{#titleparts:{{{géolocalisation|}}}|1|1}}|  | -->{{#if:{{#titleparts:{{{géolocalisation|}}}|1|1}}|  | ||
{{Infobox/Géolocalisation multiple/Carte|{{#titleparts:{{{géolocalisation|}}}|1|1}}  | {{Infobox/Géolocalisation multiple/Carte|{{#titleparts:{{{géolocalisation|}}}|1|1}}  | ||
| − |           |largeur={{#if:{{{largeur1|{{{largeur|}}}}}}|{{#ifexpr:{{{largeur1|{{{largeur|}}}}}}>280|280|{{{largeur1|{{{largeur|}}}}}}}}|  | + |           |largeur={{#if:{{{largeur1|{{{largeur|}}}}}}|{{#ifexpr:{{{largeur1|{{{largeur|}}}}}}>280|280|{{{largeur1|{{{largeur|}}}}}}}}|280}}  | 
| − |           |type={{{type1|}}}|toponyme={{{toponyme|}}}|alt={{{alt1|}}}|info={{{info1|}}}  | + |           |type={{{type1|{{{type|défaut}}}}}}|toponyme={{{toponyme|}}}|alt={{{alt1|}}}|info={{{info1|}}}  | 
| − |           |point={{{point|}}}|parampoint1={{{parampoint1|}}}|parampoint2={{{parampoint2|}}}  | + |           |point={{{point1|{{{point|}}}}}}|parampoint1={{{parampoint1-1|{{{parampoint1|}}}}}}|parampoint2={{{parampoint2-1|{{{parampoint2|}}}}}}  | 
| − |           |latitude={{  | + |           |latitude={{#if: {{{latitude|}}} | {{#invoke:Coordinates|dms2dec|{{{latitude|}}}}} | {{#invoke:Coordinates|latitude|wikidata=true}} }}  | 
| + |          |longitude={{#if: {{{longitude|}}} | {{#invoke:Coordinates|dms2dec|{{{longitude|}}}}} | {{#invoke:Coordinates|longitude|wikidata=true}} }}  | ||
| + |          |latitude2={{#if: {{{latitude2|}}} | {{#invoke:Coordinates|dms2dec|{{{latitude2|}}}}} |}}  | ||
| + |          |longitude2={{#if: {{{longitude2|}}} | {{#invoke:Coordinates|dms2dec|{{{longitude2|}}}}} |}}  | ||
| + |          |toponyme2={{{toponyme2|}}}  | ||
| + |          |latitude3={{#if: {{{latitude3|}}} | {{#invoke:Coordinates|dms2dec|{{{latitude3|}}}}} |}}  | ||
| + |          |longitude3={{#if: {{{longitude3|}}} | {{#invoke:Coordinates|dms2dec|{{{longitude3|}}}}} |}}  | ||
| + |          |toponyme3={{{toponyme3|}}}  | ||
| + |          |latitude4={{#if: {{{latitude4|}}} | {{#invoke:Coordinates|dms2dec|{{{latitude4|}}}}} |}}  | ||
| + |          |longitude4={{#if: {{{longitude4|}}} | {{#invoke:Coordinates|dms2dec|{{{longitude4|}}}}} |}}  | ||
| + |          |toponyme4={{{toponyme4|}}}  | ||
}}}}  | }}}}  | ||
</div>  | </div>  | ||
| − | + | {{#ifeq:{{{infobox|}}}|V3|| </td></tr>  | |
| − | |}}</includeonly><noinclude>{{  | + | <tr> }}  | 
| + | | <nowiki /> }} }}</includeonly><noinclude>{{Documentation}}</noinclude>  | ||
Version actuelle datée du 18 juin 2017 à 22:42
Ce modèle permet de réaliser une infobox à partir de briques. La brique {{Infobox/Géolocalisation multiple}} sert à ajouter une géolocalisation automatisée sur plusieurs cartes dans une infobox en faisant appel au modèle {{G}}.
Les cartes employées sont différentes, elles peuvent représenter :
- un changement d'échelle l'une par rapport à l'autre (Monde puis pays, ou pays puis subdivision administrative, etc)
 - des visualisations complémentaires comme pour les lieux frontaliers où la visualisation se fait sur un pays ou sur l'autre
 - un changement de nature comme l'alternance entre une carte administrative et une carte en relief
 
Sommaire
Syntaxe
Copiez et collez ceci dans la page du modèle d'infobox.
{{Infobox/Géolocalisation multiple
 | géolocalisation =
 | latitude =
 | longitude =
 | toponyme =
 | point =
 | parampoint1 =
 | parampoint2 =
 | largeur = 
 | largeur1 =
 | type1 =
 | alt1 =
 | largeur2 =
 | type2 =
 | alt2 =
 | largeur3 =
 | type3 =
 | alt3 =
 | largeur4 =
 | type4 =
 | alt4 =
}}
Paramètre
- géolocalisation : cartes de géolocalisation
 - latitude : latitude
 - longitude : longitude
 - toponyme : nom du toponyme
 - point : type de point à mettre sur les cartes, voir Wikipédia:Modèles/Points.
 - parampoint1 et parampoint2 (optionnels) : paramètres du point, voir Wikipédia:Modèles/Points.
 - largeur (optionnel) : largeur d'affichage en pixels de toutes les cartes (250 par défaut, 280 maxi)
 - largeur1 à largeur4 (optionnels) : largeur d'affichage en pixels de chaque carte (250 par défaut, 280 maxi, ecrase le paramètre largeur si défini)
 - type1 à type4 (optionnels) : type de la carte/image (relief par exemple, rien par défaut)
 - alt1 à alt4 (optionnels) : alternative textuelle de la carte/image et intitulé du lien d'alternance, Modèle:Bleu par défaut.
 
Exemples
Une carte
|   Géolocalisation sur la carte : [[Modèle:Géolocalisation/Colombie2]] 
  | ||
{{Infobox/Début}}
{{Infobox/Géolocalisation_multiple
|toponyme=Bogotá
|point=Ville
|géolocalisation = Colombie2
|latitude = 4.61
|longitude = -74.082
|type1 = relief
}}
{{Infobox/Fin}}
Deux cartes
|   Géolocalisation sur la carte : [[Modèle:Géolocalisation/Colombie2]] 
 Géolocalisation sur la carte : [[Modèle:Géolocalisation/Colombie2]] 
  | |||
{{Infobox/Début}}
{{Infobox/Géolocalisation_multiple
 | toponyme=Bogotá
 | point=Ville
 | parampoint1 = 1
 | parampoint2 = ne
 | géolocalisation = Colombie2/Colombie2
 | latitude = 4.61
 | longitude = -74.082
 | type1 = relief
 | alt1 = Voir la carte topographique
 | type2 = routes
 | alt2 = Voir la carte routière
}}
{{Infobox/Fin}}
Trois cartes
|   Géolocalisation sur la carte : [[Modèle:Géolocalisation/Colombie2]] 
 Géolocalisation sur la carte : [[Modèle:Géolocalisation/Colombie2]] 
 Géolocalisation sur la carte : [[Modèle:Géolocalisation/Colombie2]] 
  | ||||
{{Infobox/Début}}
{{Infobox/Géolocalisation_multiple
 | toponyme = Bogotá
 | point = Ville
 | parampoint1 = 2
 | parampoint2 = so
 | géolocalisation = Colombie2/Colombie2/Colombie2
 | latitude = 4.61
 | longitude = -74.082
 | type1 = relief
 | type2 = routes
 | type3 = trains
}}
{{Infobox/Fin}}
Quatre cartes
|   Géolocalisation sur la carte : [[Modèle:Géolocalisation/Colombie2]] 
 Géolocalisation sur la carte : [[Modèle:Géolocalisation/Colombie2]] 
 Géolocalisation sur la carte : [[Modèle:Géolocalisation/Colombie2]] 
 Géolocalisation sur la carte : [[Modèle:Géolocalisation/Colombie2]] 
  | |||||
{{Infobox/Début}}
{{Infobox/Géolocalisation_multiple
 | toponyme = Bogotá
 | point = Ville sans lien
 | parampoint2 = s
 | géolocalisation = Colombie2/Colombie2/Colombie2/Colombie2
 | latitude = 4.61
 | longitude = -74.082
 | type1 = relief
 | type2 = routes
 | type3 = trains
 | type4 = rivières
}}
{{Infobox/Fin}}
Voir aussi
- {{Infobox/Géolocalisation}} : modèle de géolocalisation n'utilisant qu'une carte.
 - Tutoriel infobox avec des briques
 
La documentation de ce modèle est incluse depuis sa sous-page de documentation (modifier | historique).
 Veuillez placer les catégories dans la sous-page /Documentation.
 Les éditeurs peuvent travailler dans le bac à sable (créer) et la page de test (créer).