Template:Infobox Building: differenze tra le versioni

Da Xhodon.
(Nuova pagina: <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 #{{ColorBorder|808080}...)
 
 
(3 versioni intermedie di uno stesso utente non sono mostrate)
Riga 8: Riga 8:
 
| style="width:62%; padding-left:5px;" | {{{Description}}}
 
| style="width:62%; padding-left:5px;" | {{{Description}}}
 
|-
 
|-
| colspan="2" align="center" | {{#if:{{{Prerequisite1|}}} | {{#if:{{{Prerequisite2|}}} | '''Prerequisites''' | '''Prerequisite'''}} | No prerequisites}}
+
| colspan="2" align="center" | {{#if:{{{Prerequisite1|}}} | {{#if:{{{Prerequisite2|}}} | '''Requisiti''' | '''Requisiti'''}} | Nessun requisito}}
 
|-
 
|-
 
{{#if:{{{Prerequisite1|}}} |  
 
{{#if:{{{Prerequisite1|}}} |  
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite1}}}:
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite1}}}:
{{!}} style="padding-left:5px;" {{!}} Level {{{Level1|1}}}
+
{{!}} style="padding-left:5px;" {{!}} Livello {{{Level1|1}}}
 
{{#if:{{{Prerequisite2|}}} |
 
{{#if:{{{Prerequisite2|}}} |
 
{{!-}}
 
{{!-}}
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite2}}}:
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite2}}}:
{{!}} style="padding-left:5px;" {{!}} Level {{{Level2|1}}}
+
{{!}} style="padding-left:5px;" {{!}} Livello {{{Level2|1}}}
 
{{#if:{{{Prerequisite3|}}} |
 
{{#if:{{{Prerequisite3|}}} |
 
{{!-}}
 
{{!-}}
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite3}}}:
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite3}}}:
{{!}} style="padding-left:5px;" {{!}} Level {{{Level3|1}}}
+
{{!}} style="padding-left:5px;" {{!}} Livello {{{Level3|1}}}
 
{{#if:{{{Prerequisite4|}}} |
 
{{#if:{{{Prerequisite4|}}} |
 
{{!-}}
 
{{!-}}
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite4}}}:
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite4}}}:
{{!}} style="padding-left:5px;" {{!}} Level {{{Level4|1}}}
+
{{!}} style="padding-left:5px;" {{!}} Livello {{{Level4|1}}}
 
{{#if:{{{Prerequisite5|}}} |
 
{{#if:{{{Prerequisite5|}}} |
 
{{!-}}
 
{{!-}}
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite5}}}:
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite5}}}:
{{!}} style="padding-left:5px;" {{!}} Level {{{Level5|1}}}
+
{{!}} style="padding-left:5px;" {{!}} Livello {{{Level5|1}}}
 
{{ #if: {{{Prerequisite6|}}} |
 
{{ #if: {{{Prerequisite6|}}} |
 
{{!-}}
 
{{!-}}
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite6}}}:
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite6}}}:
{{!}} style="padding-left:5px;" {{!}} Level {{{Level6|1}}} }} }} }} }} }} | }}
+
{{!}} style="padding-left:5px;" {{!}} Livello {{{Level6|1}}} }} }} }} }} }} | }}
 
|}</div><noinclude>
 
|}</div><noinclude>
This infobox is used in articles for [[buildings]] (siehe [[:Category:Buildings]]).
+
Questa infobox è usata per tutte le [[costruzioni]].
  
 
== Syntax ==
 
== Syntax ==

Versione attuale delle 13:43, 18 apr 2010

Infobox Building
{{{Image}}}
{{{Function}}}: {{{Description}}}
Nessun requisito

Questa infobox è usata per tutte le costruzioni.

Syntax

{{Infobox Building
|Name=
|Image=
|Function=
|Description=
|Prerequisite1=
|Level1=
|Prerequisite2=
|Level2=
|...
|Prerequisite6=
|Level6=
}}

Example

Tree of Life
Building Tree of Life.png
Produces: Mana
Requisiti
Cave of Crystals: Livello 1
{{Infobox Building
|Name=Tree of Life
|Image=[[Image:Building Tree of Life.png]]
|Function=Produces
|Description=[[Mana]]
|Prerequisite1=Cave of Crystals
|Level1=1
}}