Modèle:BoiteInfo Batiment : Différence entre versions

De Xhodon
Aller à : navigation, rechercher
m (catégorie)
 
(10 révisions intermédiaires par 3 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
 
<div style="clear:right; float:right; margin-top:0.3em; margin-bottom:1em; margin-left:1em;">
 
<div style="clear:right; float:right; margin-top:0.3em; margin-bottom:1em; margin-left:1em;">
{| rules="all" cellpadding="4" style="width:300px; border:1px solid #{{CouleurBord|808080}}; border-collapse:collapse; empty-cells:show; table-layout:fixed; background-color:#{{CouleurFond|F9F9F9}}; "
+
{| rules="all" cellpadding="4" style="width:300px; border:1px solid #{{CouleurBordure|808080}}; border-collapse:collapse; empty-cells:show; table-layout:fixed; background-color:#{{CouleurFond|F9F9F9}}; "
 
| colspan="2" style="text-align:center; padding:0;" |
 
| colspan="2" style="text-align:center; padding:0;" |
<div style="background-color:#{{CouleurCadreTitre|FFCC99}}; font-variant:small-caps; margin:0.3em; text-align:center; ">{{{Nom|{{PAGENAME}} }}}</div>
+
<div style="background-color:#{{CouleurTitreCadre|FFCC99}}; font-variant:small-caps; margin:0.3em; text-align:center; ">{{{Nom|{{PAGENAME}} }}}</div>
<div style="text-align:center; padding-bottom:0.3em;">{{{Image}}}</div>
+
<div style="text-align:center; padding-bottom:0.3em;">[[Image:{{{Image|Batiment {{PAGENAME}}.png}}}|{{{Nom|{{PAGENAME}} }}}]]</div>
 
|-
 
|-
 
| style="width:38%; padding-left:5px;" | {{{Fonction}}}:
 
| style="width:38%; padding-left:5px;" | {{{Fonction}}}:
 
| style="width:62%; padding-left:5px;" | {{{Description}}}
 
| style="width:62%; padding-left:5px;" | {{{Description}}}
 
|-
 
|-
| colspan="2" align="center" | {{#if:{{{Prerequis1|}}} | {{#if:{{{Prerequis2|}}} | '''Prerequis'''}} | Pas de prérequis}}
+
| colspan="2" align="center" | {{#if:{{{Prerequis1|}}} | {{#if:{{{Prerequis2|}}} | '''Prérequis''' | '''Prérequis'''}} | Pas de prérequis}}
 
|-
 
|-
 
{{#if:{{{Prerequis1|}}} |  
 
{{#if:{{{Prerequis1|}}} |  
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequis1}}}:
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequis1}}}:
{{!}} style="padding-left:5px;" {{!}} Niveau{{{Niveau1|1}}}
+
{{!}} style="padding-left:5px;" {{!}} Niveau {{{Niveau1|1}}}
 
{{#if:{{{Prerequis2|}}} |
 
{{#if:{{{Prerequis2|}}} |
 
{{!-}}
 
{{!-}}
Ligne 34 : Ligne 34 :
 
{{!}} style="padding-left:5px;" {{!}} Niveau {{{Niveau6|1}}} }} }} }} }} }} | }}
 
{{!}} style="padding-left:5px;" {{!}} Niveau {{{Niveau6|1}}} }} }} }} }} }} | }}
 
|}</div><noinclude>
 
|}</div><noinclude>
Cette boite d'information est utilisée pour les [[bâtiments]] (siehe [[:Category:Buildings]]).
+
Cette boite d'information est utilisée pour les [[bâtiments]] (siehe [[:Catégorie:Bâtiments]]).
  
 
== Syntax ==
 
== Syntax ==
<nowiki>{{BoiteInfo Batiment</nowiki>
+
<pre>{{BoiteInfo Batiment
<nowiki>|Nom=</nowiki>
+
|Nom=
<nowiki>|Image=</nowiki>
+
|Image=
<nowiki>|Fonction=</nowiki>
+
|Fonction=
<nowiki>|Description=</nowiki>
+
|Description=
<nowiki>|Prerequis1=</nowiki>
+
|Prerequis1=
<nowiki>|Niveau1=</nowiki>
+
|Niveau1=
<nowiki>|Prerequis2=</nowiki>
+
|Prerequis2=
<nowiki>|Niveau2=</nowiki>
+
|Niveau2=
<nowiki>|...</nowiki>
+
|...
<nowiki>|Prerequis6=</nowiki>
+
|Prerequis6=
<nowiki>|Niveau6=</nowiki>
+
|Niveau6=
<nowiki>}}</nowiki>
+
}}</pre>
  
 
== Example ==
 
== Example ==
 
{{BoiteInfo Batiment
 
{{BoiteInfo Batiment
 
|Nom=Arbre de vie
 
|Nom=Arbre de vie
|Image=[[Image:Building Tree of Life.png]]
+
|Image=Building Tree of Life.png
 
|Fonction=Production
 
|Fonction=Production
 
|Description=[[Mana]]
 
|Description=[[Mana]]
Ligne 60 : Ligne 60 :
 
|Niveau1=1
 
|Niveau1=1
 
}}
 
}}
<nowiki>{{BoiteInfo Batiment</nowiki>
+
<pre>{{BoiteInfo Batiment
<nowiki>|Nom=Arbre de Vie</nowiki>
+
|Nom=Arbre de Vie
<nowiki>|Image=[[Image:Building Arbre de Vie.png]]</nowiki>
+
|Image=Building Arbre de Vie.png
<nowiki>|Fonction=Production</nowiki>
+
|Fonction=Production
<nowiki>|Description=[[Mana]]</nowiki>
+
|Description=[[Mana]]
<nowiki>|Prerequis1=Antre de Cristal</nowiki>
+
|Prerequis1=Antre de Cristal
<nowiki>|Niveau1=1</nowiki>
+
|Niveau1=1
<nowiki>}}</nowiki>
+
}}</pre>
  
 
[[de:Vorlage:Infobox Gebäude]]
 
[[de:Vorlage:Infobox Gebäude]]
 
[[en:Template:Infobox Building]]
 
[[en:Template:Infobox Building]]
[[Category:Template:Infobox|Building]]
+
 
 +
[[Category:Modèle:BoiteInfo|Batiment]]
 
</noinclude>
 
</noinclude>

Version actuelle en date du 5 décembre 2009 à 11:17

BoiteInfo Batiment
{{{Fonction}}}: {{{Description}}}
Pas de prérequis

Cette boite d'information est utilisée pour les bâtiments (siehe Catégorie:Bâtiments).

Syntax

{{BoiteInfo Batiment
|Nom=
|Image=
|Fonction=
|Description=
|Prerequis1=
|Niveau1=
|Prerequis2=
|Niveau2=
|...
|Prerequis6=
|Niveau6=
}}

Example

Arbre de vie
Arbre de vie
Production: Mana
Prérequis
Antre de Cristal: Niveau 1
{{BoiteInfo Batiment
|Nom=Arbre de Vie
|Image=Building Arbre de Vie.png
|Fonction=Production
|Description=[[Mana]]
|Prerequis1=Antre de Cristal
|Niveau1=1
}}