Szablon:Infobox Building: Różnice pomiędzy wersjami

Z Xhodon
Skocz do: nawigacji, wyszukiwania
(UWAGA! Usunięcie treści (strona pozostała pusta)!)
Linia 1: Linia 1:
<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}}; border-collapse:collapse; empty-cells:show; table-layout:fixed; background-color:#{{ColorBackground|F9F9F9}}; "
 
| colspan="2" style="text-align:center; padding:0;" |
 
<div style="background-color:#{{ColorTitleBox|FFCC99}}; font-variant:small-caps; margin:0.3em; text-align:center; ">{{{Name|{{PAGENAME}} }}}</div>
 
<div style="text-align:center; padding-bottom:0.3em;">{{{Image}}}</div>
 
|-
 
| style="width:38%; padding-left:5px;" | {{{Function}}}:
 
| style="width:62%; padding-left:5px;" | {{{Description}}}
 
|-
 
| colspan="2" align="center" | {{#if:{{{Prerequisite1|}}} | {{#if:{{{Prerequisite2|}}} | '''Prerequisites''' | '''Prerequisite'''}} | No prerequisites}}
 
|-
 
{{#if:{{{Prerequisite1|}}} |
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite1}}}:
 
{{!}} style="padding-left:5px;" {{!}} Level {{{Level1|1}}}
 
{{#if:{{{Prerequisite2|}}} |
 
{{!-}}
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite2}}}:
 
{{!}} style="padding-left:5px;" {{!}} Level {{{Level2|1}}}
 
{{#if:{{{Prerequisite3|}}} |
 
{{!-}}
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite3}}}:
 
{{!}} style="padding-left:5px;" {{!}} Level {{{Level3|1}}}
 
{{#if:{{{Prerequisite4|}}} |
 
{{!-}}
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite4}}}:
 
{{!}} style="padding-left:5px;" {{!}} Level {{{Level4|1}}}
 
{{#if:{{{Prerequisite5|}}} |
 
{{!-}}
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite5}}}:
 
{{!}} style="padding-left:5px;" {{!}} Level {{{Level5|1}}}
 
{{ #if: {{{Prerequisite6|}}} |
 
{{!-}}
 
{{!}} style="padding-left:5px;" {{!}} {{{Prerequisite6}}}:
 
{{!}} style="padding-left:5px;" {{!}} Level {{{Level6|1}}} }} }} }} }} }} | }}
 
|}</div><noinclude>
 
This infobox is used in articles for [[buildings]] (siehe [[:Category:Buildings]]).
 
  
== Syntax ==
 
<nowiki>{{Infobox Building</nowiki>
 
<nowiki>|Name=</nowiki>
 
<nowiki>|Image=</nowiki>
 
<nowiki>|Function=</nowiki>
 
<nowiki>|Description=</nowiki>
 
<nowiki>|Prerequisite1=</nowiki>
 
<nowiki>|Level1=</nowiki>
 
<nowiki>|Prerequisite2=</nowiki>
 
<nowiki>|Level2=</nowiki>
 
<nowiki>|...</nowiki>
 
<nowiki>|Prerequisite6=</nowiki>
 
<nowiki>|Level6=</nowiki>
 
<nowiki>}}</nowiki>
 
 
== Example ==
 
{{Infobox Building
 
|Name=Tree of Life
 
|Image=[[Image:Building Tree of Life.png]]
 
|Function=Produces
 
|Description=[[Mana]]
 
|Prerequisite1=Cave of Crystals
 
|Level1=1
 
}}
 
<nowiki>{{Infobox Building</nowiki>
 
<nowiki>|Name=Tree of Life</nowiki>
 
<nowiki>|Image=[[Image:Building Tree of Life.png]]</nowiki>
 
<nowiki>|Function=Produces</nowiki>
 
<nowiki>|Description=[[Mana]]</nowiki>
 
<nowiki>|Prerequisite1=Cave of Crystals</nowiki>
 
<nowiki>|Level1=1</nowiki>
 
<nowiki>}}</nowiki>
 
 
</noinclude>
 

Wersja z 16:48, 9 lip 2009