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

De Nefald Wiki
Aller à la navigation Aller à la recherche
Hiob (discussion | contributions)
mAucun résumé des modifications
Hiob (discussion | contributions)
mAucun résumé des modifications
Ligne 12 : Ligne 12 :
}}
}}
|-
|-
! colspan="2" class="infoboxcat" style="text-align=center; background-color:transparent; padding:3px; margin-top: 20px; border-bottom:1px solid #ccc; color:#099DFF;" | Définition
! colspan="2" class="infoboxcat" style="text-align=center; background-color:transparent; padding:3px; margin-top: 20px; border-bottom:1px solid #ccc; color:#099DFF;" | Informations générales
|-
|-
! scope=row | Coordonnées
! scope=row | Fondation
| ''{{{coord}}}''
| ''{{{fondation}}}''
|-
|-
! scope=row | Monde
! scope=row | Bourgmestre
| [[{{{monde}}}]]
| ''{{{bourgmestre}}}''
|-
{{#if:{{{guilde|}}} |
! scope=row {{!}} Guilde(s)
{{!}} {{{guilde}}}
{{!-}}
}}
|-
|-
! scope=row | Spécificité(s)
! scope=row | Spécificité(s)
| {{{spec}}}
| {{{spec}}}
|-
|-
{{#if:{{{projet|}}} |
! scope=row {{!}} Projet
{{!}} {{{projet}}}
{{!-}}
}}
|-
<!---------------------------------- Partie 3 ---------------------------------->
! colspan="2" class="infoboxcat" style="text-align=center; background-color:transparent; padding:3px; margin-top: 20px; border-bottom:1px solid #ccc; color:#099DFF;" | Économie
|-
{{#if:{{{production|}}} |
! scope=row {{!}} Production
{{!}} {{{production}}}
{{!-}}
}}
|-
{{#if:{{{commerce|}}} |
! scope=row {{!}} Liens commerciaux
{{!}} {{{commerce}}}
{{!-}}
}}
<!---------------------------------- Partie 3 ---------------------------------->
<!---------------------------------- Partie 3 ---------------------------------->
! colspan="2" class="infoboxcat" style="text-align=center; background-color:transparent; padding:3px; margin-top: 20px; border-bottom:1px solid #ccc; color:#099DFF;" | Accès
! colspan="2" class="infoboxcat" style="text-align=center; background-color:transparent; padding:3px; margin-top: 20px; border-bottom:1px solid #ccc; color:#099DFF;" | Géographie
|-
{{#if:{{{monde|}}} |
! scope=row {{!}} Monde
{{!}} {{{monde}}}
{{!-}}
}}
|-
{{#if:{{{région|}}} |
! scope=row {{!}} Région(s)
{{!}} {{{région}}}
{{!-}}
}}
|-
|-
{{#if:{{{guilde|}}} |  
{{#if:{{{coord|}}} |  
! scope=row {{!}} Guilde(s)
! scope=row {{!}} Coordonnées
{{!}} {{{guilde}}}
{{!}} {{{coord}}}
{{!-}}
}}
|-
{{#if:{{{biome|}}} |
! scope=row {{!}} Biomes(s)
{{!}} {{{biome}}}
{{!-}}
{{!-}}
}}
}}

Version du 27 janvier 2015 à 07:59


Utilisation

La syntaxe est de la forme :

{{Infobox Ville| image = | fondation = | bourgmestre = | guilde = | spec = | projet = | production = | commerce = | monde = | region = | x = | y = | z = | biome = }}


Exemple

{{Infobox Ville| image = Carte Nefald 3d.jpg | fondation = ~800 av. G.C. | bourgmestre = Intendance | guilde = Toute guilde | spec = Capitale | projet = ''N/A'' | production = Tout type | commerce = Tout commerce | monde = Harlan | region = [[Värgen]] | x = -421150 | y = 64 | z = -54443 | biome = Taïga }}


  • donne :


Infobox Ville
Infobox Ville
Informations générales
Fondation ~800 av. G.C.
Bourgmestre Intendance
Guilde(s) Toute guilde
Spécificité(s) Capitale
Projet N/A
Économie
Production Tout type
Liens commerciaux Tout commerce
Géographie
Monde Harlan
Biomes(s) Taïga