Template:Common building: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{| border=0 cellpadding=0 cellspacing=0 valign=middle style="background-color:#E5CCFF; border: 1px solid; float:{{{float|right}}};"
{| border=0 cellpadding=0 cellspacing=0 valign=middle style="background-color:#{{purple 3}}; border: 1px solid; float:{{{float|right}}};"
|- style="height: 25px;"
|- style="height: 25px;"
| align=center bgcolor=631077 style="color:#FFFFFF" | '''{{{name|{{PAGENAME}}}}}'''
| align=center bgcolor={{purple 1}} style="color:#FFFFFF" | '''{{{name|{{PAGENAME}}}}}'''
|-
|-
| align=center bgcolor=945AA5| '''Pictures:'''
| align=center bgcolor={{purple 2}} | '''Pictures:'''
|-
|-
| <includeonly>[[Image: Castle {{PAGENAME}}.gif|{{PAGENAME}} of Castle|link=Castle town]][[Image: Tower {{PAGENAME}}.gif|{{PAGENAME}} of Tower|link=Tower town]][[Image: Rampart {{PAGENAME}}.gif|{{PAGENAME}} of Rampart|link=Rampart town]]<br>[[Image: Inferno {{PAGENAME}}.gif|{{PAGENAME}} of Inferno|link=Infernotown]][[Image: Necropolis {{PAGENAME}}.gif|{{PAGENAME}} of Necropolis|link=Necropolis town]][[Image: Dungeon {{PAGENAME}}.gif|{{PAGENAME}} of Dungeon|link=Dungeon town]]<br>[[Image: Stronghold {{PAGENAME}}.gif|{{PAGENAME}} of Stronghold|link=Stronghold town]][[Image: Fortress {{PAGENAME}}.gif|{{PAGENAME}} of Fortress|link=Fortress town]][[Image: Conflux {{PAGENAME}}.gif|{{PAGENAME}} of Conflux|link=Confux town]]</includeonly>
| <includeonly>[[Image: Castle {{PAGENAME}}.gif|{{PAGENAME}} of Castle|link=Castle town]][[Image: Tower {{PAGENAME}}.gif|{{PAGENAME}} of Tower|link=Tower town]][[Image: Rampart {{PAGENAME}}.gif|{{PAGENAME}} of Rampart|link=Rampart town]]<br>[[Image: Inferno {{PAGENAME}}.gif|{{PAGENAME}} of Inferno|link=Infernotown]][[Image: Necropolis {{PAGENAME}}.gif|{{PAGENAME}} of Necropolis|link=Necropolis town]][[Image: Dungeon {{PAGENAME}}.gif|{{PAGENAME}} of Dungeon|link=Dungeon town]]<br>[[Image: Stronghold {{PAGENAME}}.gif|{{PAGENAME}} of Stronghold|link=Stronghold town]][[Image: Fortress {{PAGENAME}}.gif|{{PAGENAME}} of Fortress|link=Fortress town]][[Image: Conflux {{PAGENAME}}.gif|{{PAGENAME}} of Conflux|link=Confux town]]</includeonly>
|-
|-
{{{no_pre|
{{{no_pre|
{{!}} align=center bgcolor=945AA5{{!}} '''Prerequisite:''' }}}
{{!}} align=center bgcolor={{purple 2}}{{!}} '''Prerequisite:''' }}}
|-
|-
| colspan=8 style="width: 150px;" |
| colspan=8 style="width: 150px;" |
{| cellpadding=0 cellspacing=0 valign=middle style="background-color:#E8C0E8;"
{| cellpadding=0 cellspacing=0 valign=middle style="background-color:#{{purple 3}};"
| style="border-left: 5px solid #E8C0E8; border-right: 5px solid #E8C0E8;" | {{{pre|}}}
| style="border-left: 5px solid #E8C0E8; border-right: 5px solid #{{purple 3}};" | {{{pre|}}}
|}
|}
|-
|-
{{{no_cost|
{{{no_cost|
{{!}} colspan=8 align=center bgcolor=945AA5 {{!}} '''Cost:'''
{{!}} colspan=8 align=center bgcolor={{purple 2}}{{!}} '''Cost:'''
{{!-}} align=center valign=middle
{{!-}} align=center valign=middle
{{!}} {{{wood|}}} {{{mercury|}}} {{{ore|}}} {{{sulfur|}}} {{{crystal|}}} {{{gem|}}} {{{gold|}}} }}}
{{!}} {{{wood|}}} {{{mercury|}}} {{{ore|}}} {{{sulfur|}}} {{{crystal|}}} {{{gem|}}} {{{gold|}}} }}}
|-
|-
| colspan=8 align=center bgcolor=945AA5 style="width: 150px;" | '''Effect:'''
| colspan=8 align=center bgcolor={{purple 2}} style="width: 150px;" | '''Effect:'''
|-
|-
| colspan=8 style="width: 150px;" |
| colspan=8 style="width: 150px;" |
{| cellpadding=0 cellspacing=0 valign=middle style="background-color:#E5CCFF;"
{| cellpadding=0 cellspacing=0 valign=middle style="background-color:#{{purple 3}};"
| style="border-left: 5px solid #E5CCFF; border-right: 5px solid #E5CCFF; font-size:90%;" | {{{effect|}}}
| style="border-left: 5px solid #{{purple 3}}; border-right: 5px solid #E5CCFF; font-size:90%;" | {{{effect|}}}
|}
|}
|}<noinclude>
|}<noinclude>

Revision as of 15:55, 27 March 2014

Common building
Pictures:
Prerequisite:
Cost:
Effect:

How to use

Copy the code at the beginning of building article, and fill in the missing information. Notice, that the factors below are case sensitive meaning, that "Ore" is not the same as "ore".

{{Building
 | pre     = 
 | wood    = 
 | mercury = 
 | ore     = 
 | sulfur  = 
 | crystal = 
 | gem     = 
 | gold    = 
 | effect  = 
}}

You can add more "pre rows" as parameters if the building needs more than one. If the building does not require certain resource, you have to add "no_" in front of the parameter and leave it empty. For example

 | no_sulfur  =