Modèle:Infobox/Géolocalisation multiple/Documentation : Différence entre versions
imported>Jacques Ducloy m (1 version) |
imported>Jacques Ducloy m (1 révision importée) |
||
| (3 révisions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
| − | noinclude{{documentation modèle vue directement}}/noinclude | + | <noinclude>{{documentation modèle vue directement}}</noinclude> |
| − | includeonly{{Protection}}/includeonly | + | <includeonly>{{Protection}}</includeonly> |
| − | Ce modèle permet de réaliser une infobox à partir de briques. La brique nowiki{{Infobox/Géolocalisation multiple}}/nowiki sert à ajouter une géolocalisation automatisée sur plusieurs cartes dans une infobox en faisant appel au modèle {{m|G}}. | + | Ce modèle permet de réaliser une infobox à partir de briques. La brique <nowiki>{{Infobox/Géolocalisation multiple}}</nowiki> sert à ajouter une géolocalisation automatisée sur plusieurs cartes dans une infobox en faisant appel au modèle {{m|G}}. |
Les cartes employées sont différentes, elles peuvent représenter : | Les cartes employées sont différentes, elles peuvent représenter : | ||
| Ligne 11 : | Ligne 11 : | ||
== Syntaxe == | == Syntaxe == | ||
Copiez et collez ceci dans la page du modèle d'infobox. | Copiez et collez ceci dans la page du modèle d'infobox. | ||
| − | pre | + | <pre> |
{{Infobox/Géolocalisation multiple | {{Infobox/Géolocalisation multiple | ||
| géolocalisation = | | géolocalisation = | ||
| Ligne 34 : | Ligne 34 : | ||
| alt4 = | | alt4 = | ||
}} | }} | ||
| − | /pre | + | </pre> |
== Paramètre == | == Paramètre == | ||
| − | * ''' | + | * '''<tt>géolocalisation</tt>''' : cartes de géolocalisation |
| − | * ''' | + | * '''<tt>latitude</tt>''' : latitude |
| − | * ''' | + | * '''<tt>longitude</tt>''' : longitude |
| − | * ''' | + | * '''<tt>toponyme</tt>''' : nom du toponyme |
| − | * ''' | + | * '''<tt>point</tt>''' : type de point à mettre sur les cartes, voir [[Wikipédia:Modèles/Points]]. |
| − | * ''' | + | * '''<tt>parampoint1</tt>''' et '''<tt>parampoint2</tt>''' (optionnels) : paramètres du point, voir [[Wikipédia:Modèles/Points]]. |
| − | * ''' | + | * '''<tt>largeur</tt>''' (optionnel) : largeur d'affichage en pixels de toutes les cartes (250 par défaut, 280 maxi) |
| − | * ''' | + | * '''<tt>largeur1</tt>''' à '''<tt>largeur4</tt>''' (optionnels) : largeur d'affichage en pixels de chaque carte (250 par défaut, 280 maxi, ecrase le paramètre <tt>largeur</tt> si défini) |
| − | * ''' | + | * '''<tt>type1</tt>''' à '''<tt>type4</tt>''' (optionnels) : type de la carte/image (relief par exemple, rien par défaut) |
| − | * ''' | + | * '''<tt>alt1</tt>''' à '''<tt>alt4</tt>''' (optionnels) : alternative textuelle de la carte/image et intitulé du lien d'alternance, {{Bleu|(Voir situation sur carte : <nom de la carte>)}} par défaut. |
== Exemples == | == Exemples == | ||
| Ligne 61 : | Ligne 61 : | ||
{{Infobox/Fin}} | {{Infobox/Fin}} | ||
| − | pre | + | <pre> |
{{Infobox/Début}} | {{Infobox/Début}} | ||
{{Infobox/Géolocalisation_multiple | {{Infobox/Géolocalisation_multiple | ||
| Ligne 72 : | Ligne 72 : | ||
}} | }} | ||
{{Infobox/Fin}} | {{Infobox/Fin}} | ||
| − | /pre | + | </pre> |
{{clr}} | {{clr}} | ||
| Ligne 92 : | Ligne 92 : | ||
{{Infobox/Fin}} | {{Infobox/Fin}} | ||
| − | pre | + | <pre> |
{{Infobox/Début}} | {{Infobox/Début}} | ||
{{Infobox/Géolocalisation_multiple | {{Infobox/Géolocalisation_multiple | ||
| Ligne 108 : | Ligne 108 : | ||
}} | }} | ||
{{Infobox/Fin}} | {{Infobox/Fin}} | ||
| − | /pre | + | </pre> |
{{clr}} | {{clr}} | ||
| Ligne 128 : | Ligne 128 : | ||
{{Infobox/Fin}} | {{Infobox/Fin}} | ||
| − | pre | + | <pre> |
{{Infobox/Début}} | {{Infobox/Début}} | ||
{{Infobox/Géolocalisation_multiple | {{Infobox/Géolocalisation_multiple | ||
| Ligne 143 : | Ligne 143 : | ||
}} | }} | ||
{{Infobox/Fin}} | {{Infobox/Fin}} | ||
| − | /pre | + | </pre> |
{{clr}} | {{clr}} | ||
| Ligne 163 : | Ligne 163 : | ||
{{Infobox/Fin}} | {{Infobox/Fin}} | ||
| − | pre | + | <pre> |
{{Infobox/Début}} | {{Infobox/Début}} | ||
{{Infobox/Géolocalisation_multiple | {{Infobox/Géolocalisation_multiple | ||
| Ligne 178 : | Ligne 178 : | ||
}} | }} | ||
{{Infobox/Fin}} | {{Infobox/Fin}} | ||
| − | /pre | + | </pre> |
{{clr}} | {{clr}} | ||
| Ligne 185 : | Ligne 185 : | ||
* [[Projet:Infobox/Tutoriel infobox avec des briques|Tutoriel infobox avec des briques]] | * [[Projet:Infobox/Tutoriel infobox avec des briques|Tutoriel infobox avec des briques]] | ||
| − | includeonly | + | <includeonly> |
| − | !-- Catégories et interwikis du modèle -- | + | <!-- Catégories et interwikis du modèle --> |
{{DEFAULTSORT:{{BASEPAGENAME}}}} | {{DEFAULTSORT:{{BASEPAGENAME}}}} | ||
[[Catégorie:Modèle de brique d'infobox V2|Géolocalisation multiple]] | [[Catégorie:Modèle de brique d'infobox V2|Géolocalisation multiple]] | ||
| − | /includeonly | + | </includeonly> |
Version actuelle datée du 28 décembre 2020 à 10:57
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