Editing Template:Common building

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{| border=0 cellpadding=0 cellspacing=0 valign=middle style="background-color:#{{purple 3}}; border:1px solid; border-color:rgba(0,0,0,0); float:{{{float|right}}}; margin: 0 0 8px 8px;"
{| cellpadding=0 cellspacing=0 style="background-color:#CCCCFF; border: 1px solid; float:{{{float|right}}};"
|- style="height: 25px;"
|- style="height: 25px;"
| align=center bgcolor={{purple 1}} style="color:#FFFFFF" | '''{{{name|{{{Building|1}}}}}}'''
| colspan=5 align=center bgcolor=3250FF style="color:#FFFFFF" | {{PAGENAME}}  
|-
|-
| <includeonly>style="text-align:center;"|{{{SingleImage|[[Image: Castle {{{Building|1}}}.gif|{{{Building|1}}} of Castle|link=Castle town]][[Image: Tower {{{Building|1}}}.gif|{{{Building|1}}} of Tower|link=Tower town]][[Image: Rampart {{{Building|1}}}.gif|{{{Building|1}}} of Rampart|link=Rampart town]]<br>[[Image: Inferno {{{Building|1}}}.gif|{{{Building|1}}} of Inferno|link=Inferno town]][[Image: Necropolis {{{Building|1}}}.gif|{{{Building|1}}} of Necropolis|link=Necropolis town]][[Image: Dungeon {{{Building|1}}}.gif|{{{Building|1}}} of Dungeon|link=Dungeon town]]<br>[[Image: Stronghold {{{Building|1}}}.gif|{{{Building|1}}} of Stronghold|link=Stronghold town]][[Image: Fortress {{{Building|1}}}.gif|{{{Building|1}}} of Fortress|link=Fortress town]][[Image: Conflux {{{Building|1}}}.gif|{{{Building|1}}} of Conflux|link=Conflux town]]}}}</includeonly>
| colspan=2 align=center | '''Cost'''
|-
|-
{{{no_pre|
{{{no_wood|{{!}} &nbsp;[[Wood]]&nbsp;}}}
{{!}} align=center bgcolor=mediumorchid{{!}} '''Prerequisite:''' }}}
{{{no_wood|{{!}} {{{wood|}}} {{wood}}}}}
|-
|-
| colspan=8 style="width: 150px;" |
{{{no_mercury|{{!}} &nbsp;[[Mercury]]}}}&nbsp;
{| cellpadding=0 cellspacing=0 valign=middle style="background-color:#{{purple 3}};"
{{{no_mercury|{{!}} {{{mercury|}}} {{mercury}} }}}
| style="border-left: 5px solid #E8C0E8; border-right: 5px solid #{{purple 3}};" | {{{pre|}}}
|}
|-
|-
{{{no_cost|
{{{no_ore|{{!}} &nbsp;[[Ore]]&nbsp;}}}
{{!}} colspan=8 align=center bgcolor=mediumorchid{{!}} '''Cost:'''
{{{no_ore|{{!}} {{{ore|}}} {{ore}} }}}
{{!-}} align=center valign=middle
{{!}} {{{wood|}}} {{{mercury|}}} {{{ore|}}} {{{sulfur|}}} {{{crystal|}}} {{{gem|}}} {{{gold|}}} }}}
|-
|-
| colspan=8 align=center bgcolor=mediumorchid style="width: 150px;" | '''Effect:'''
{{{no_sulfur|{{!}} &nbsp;[[Sulfur]]&nbsp;}}}
{{{no_sulfur|{{!}} {{{sulfur|}}} {{Sulfur}} }}}
|-
|-
| colspan=8 style="width: 150px;" |
{{{no_crystal|{{!}} &nbsp;[[Crystal]]&nbsp;}}}
{| cellpadding=0 cellspacing=0 valign=middle style="background-color:#{{purple 3}};"
{{{no_crystal|{{!}} {{{crystal|}}} {{Crystal}} }}}
| style="border-left: 5px solid #{{purple 3}}; border-right: 5px solid #E5CCFF; font-size:90%;" | {{{effect|}}}
|-
|}
{{{no_gem|{{!}} &nbsp;[[Gem (resource)|Gem]]&nbsp;}}}
{{{no_gem|{{!}} {{{gem|}}} {{Gem}} }}}
|-
| &nbsp;[[Gold]]&nbsp;
| {{{gold|}}} {{Gold}}
|-
| colspan=2 valign=middle style="width: 50px; font-size:90%;" | '''Effect''' {{{effect|}}}
|}<noinclude>
|}<noinclude>


== How to use ==
[[Category:Help templates|{{PAGENAME}}]]</noinclude>
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".
 
{| style="background: transparent;"
| <pre>{{Building
| pre    =
| wood    =
| mercury =
| ore    =
| sulfur  =
| crystal =
| gem    =
| gold    =
| effect  =
}}</pre>
|}
 
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
 
{| style="background: transparent;"
| <pre>
| no_sulfur  =</pre>
|}
 
[[Category: Building templates|{{PAGENAME}}]]</noinclude>
Please note that all contributions to Heroes 3 wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Templates used on this page: