« Modèle:Infobox/Pays » : différence entre les versions

De Aknotl
mAucun résumé des modifications
mAucun résumé des modifications
 
(7 versions intermédiaires par le même utilisateur non affichées)
Ligne 70 : Ligne 70 :
}}
}}


{{#if:{{{entites_precedentes|}}}{{{entites_suivantes|}}}}}|
{{#if: {{{entites_precedentes|}}}{{{entites_suivantes|}}}
{{Infobox/Ligne
| {{Infobox/Ligne mixte optionnelle
| test
| Entités précédentes|{{{entites_precedentes|}}}
}}
{{Infobox/Ligne mixte optionnelle
| Entités suivantes|{{{entites_suivantes|}}}
}}
}}
}}
}}
<hr/>
<div style="float: left; width: 45%;">
<p>Entités précédentes</p>
{{#if:{{{entites_precedentes|}}}|<ul>{{{entites_precedentes|}}}</ul>|}}
</div>
<div style="float: right; width: 45%;">
<p>Entités suivantes</p>
{{#if{{{entites_suivantes|}}}|<ul>{{{entites_suivantes|}}}</ul>|}}
</div>


{{Infobox/Fin}}</includeonly>
{{Infobox/Fin}}</includeonly>
Ligne 155 : Ligne 148 :


[[Category:Méta-Modèles]]
[[Category:Méta-Modèles]]
<templatedata>
{
"params": {
"nom": {},
"image": {},
"légende": {},
"gentile": {},
"pop": {},
"pop_rang": {},
"date_formation": {},
"date_formation2": {},
"date_formation3": {},
"date_formation4": {},
"date_formation5": {},
"date_formation6": {},
"date_formation7": {},
"date_formation8": {},
"date_formation9": {},
"date_formation10": {},
"date_formation11": {},
"date_formation12": {},
"date_formation13": {},
"date_formation14": {},
"date_formation15": {},
"date_formation16": {},
"date_formation17": {},
"date_formation18": {},
"date_formation19": {},
"date_formation20": {},
"date_formation21": {},
"date_formation22": {},
"date_formation23": {},
"date_formation24": {},
"date_formation25": {},
"type_formation": {},
"type_formation2": {},
"type_formation3": {},
"type_formation4": {},
"type_formation5": {},
"type_formation6": {},
"type_formation7": {},
"type_formation8": {},
"type_formation9": {},
"type_formation10": {},
"type_formation11": {},
"type_formation12": {},
"type_formation13": {},
"type_formation14": {},
"type_formation15": {},
"type_formation16": {},
"type_formation17": {},
"type_formation18": {},
"type_formation19": {},
"type_formation20": {},
"type_formation21": {},
"type_formation22": {},
"type_formation23": {},
"type_formation24": {},
"type_formation25": {},
"capitale": {},
"villes": {},
"superficie": {},
"superficie_rang": {},
"densite": {},
"x": {},
"z": {},
"entites_precedentes": {
"type": "line"
},
"entites_suivantes": {}
}
}
</templatedata>
</noinclude>
</noinclude>

Dernière version du 16 août 2026 à 15:49


Ce modèle d'infobox est à utiliser pour l'ensemble des pages de pays.

Syntaxe

{{Infobox/Pays
 | nom            		= xxx
 | image          		= xxx.png
 | légende        		= xxx
 | type_formation = xxx
 | date_formation = xxx
 | capitale 		= xxx
 | villes 			= xxx
 | gentile 		= xxx
 | pop	 		= xxx
 | pop_rang		= xxx
 | densite 		= xxx
 | x 			= xxx
 | z 			= xxx
 | superficie 		= xxx
 | superficie_rang 	= xxx
}}

Paramètres

  • nom (facultatif) – Titre de l'infobox (par défaut le nom de la page).
  • image (facultatif) – Image illustration du pays ou blason.
  • légende (facultatif) – Légende de l'image.
  • villes (facultatif) – Villes principales du pays.
  • gentile (facultatif) – Gentilé des habitants.
  • pop (facultatif) – Nombre de personnes habitants le pays.
  • pop_rang (facultatif) – Classement du pays (superficie).
  • densite (facultatif) – Densité de population (non nécessaire si pop et superficie sont fournis).
  • x (facultatif) – Coordonnées x approximative du centre du pays.
  • z (facultatif) – Coordonnées z approximative du centre du pays.
  • superficie (facultatif) – Superficie du pays (km²).
  • superficie_rang (facultatif) – Classement du pays (superficie).

Exemples

{{Infobox/Pays
 | nom                = {{BASEPAGENAME}}
 | image             = Bhrone_1_an_181.png
 | légende          = Bhrone, ville principale du pays
| villes                 = EXTRACTION ?
 | gentile            = Sedléen
 | pop                = {{Pays/Population|{{BASEPAGENAME}}}}
 | pop_rang           = {{Pays/Population_rang|{{BASEPAGENAME}}}}
 | x                  = 2767
 | z                  = -1163
 | superficie         = {{Pays/Superficie|{{BASEPAGENAME}}}} 
 | superficie_rang    = {{Pays/Superficie_rang|{{BASEPAGENAME}}}}
}}

Résultat :

Infobox
Image illustrative de l’article Infobox/Pays
Bhrone, ville principale du pays
Général
Gentilé Sedléen
Géographie
Villes du pays EXTRACTION ?
Coordonnées 2767;-1163