Modèle:Infobox/Géolocalisation multiple/Documentation : Différence entre versions

De Lagny-sur-Marne Wiki
Aller à : navigation, rechercher
m (Syntaxe)
m (2 cartes)
Ligne 69 : Ligne 69 :
 
{{Infobox/Début}}
 
{{Infobox/Début}}
 
{{Infobox/Géolocalisation_multiple
 
{{Infobox/Géolocalisation_multiple
|toponyme=Bogotá
+
| toponyme=Bogotá
|point=Ville
+
| point=Ville
|géolocalisation = Colombie2/Colombie2
+
| parampoint1 = 1
|latitude = 4.61
+
| parampoint2 = ne
|longitude = -74.082
+
| géolocalisation = Colombie2/Colombie2
|type1 = relief
+
| latitude = 4.61
|type2 = routes
+
| longitude = -74.082
 +
| type1 = relief
 +
| type2 = routes
 
}}
 
}}
 
{{Infobox/Fin}}
 
{{Infobox/Fin}}
Ligne 82 : Ligne 84 :
 
{{Infobox/Début}}
 
{{Infobox/Début}}
 
{{Infobox/Géolocalisation_multiple
 
{{Infobox/Géolocalisation_multiple
|toponyme=Bogotá
+
| toponyme=Bogotá
|point=Ville
+
| point=Ville
|géolocalisation = Colombie2/Colombie2
+
| parampoint1 = 1
|latitude = 4.61
+
| parampoint2 = ne
|longitude = -74.082
+
| géolocalisation = Colombie2/Colombie2
|type1 = relief
+
| latitude = 4.61
|type2 = routes
+
| longitude = -74.082
 +
| type1 = relief
 +
| type2 = routes
 
}}
 
}}
 
{{Infobox/Fin}}
 
{{Infobox/Fin}}
Ligne 94 : Ligne 98 :
  
 
{{clr}}
 
{{clr}}
 +
 
=== 3 cartes ===
 
=== 3 cartes ===
 
{{Infobox/Début}}
 
{{Infobox/Début}}

Version du 28 décembre 2010 à 11:51

Modèle:Documentation modèle vue directement

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

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 =
 | largeur1 =
 | type1 =
 | largeur2 =
 | type2 =
...
 | largeur10 =
 | type10 =
}}

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.
  • largeur1 à largeur10 (optionnels) : largeur d'affichage en pixels de la première carte (250 par défaut)
  • type1 à type10 (optionnels) : type de la première carte/image (relief par exemple, rien par défaut)

Exemples

1 carte

Modèle:Infobox/Géolocalisation multiple
{{Infobox/Début}}
{{Infobox/Géolocalisation_multiple
|toponyme=Bogotá
|point=Ville
|géolocalisation = Colombie2
|latitude = 4.61
|longitude = -74.082
|type1 = relief
}}
{{Infobox/Fin}}

2 cartes

Modèle:Infobox/Géolocalisation multiple
{{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
 | type2 = routes
}}
{{Infobox/Fin}}

3 cartes

Modèle:Infobox/Géolocalisation multiple
{{Infobox/Début}}
{{Infobox/Géolocalisation_multiple
|toponyme=Bogotá
|point=Ville
|géolocalisation = Colombie2/Colombie2/Colombie2
|latitude = 4.61
|longitude = -74.082
|type1 = relief
|type2 = routes
|type3 = trains
}}
{{Infobox/Fin}}

4 cartes

Modèle:Infobox/Géolocalisation multiple
{{Infobox/Début}}
{{Infobox/Géolocalisation_multiple
|toponyme=Bogotá
|point=Ville
|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