Template:Building: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Simplify/Standardize template |
||
| 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;" | <includeonly>{| 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;" | ||
|- style="height: 25px;" | |- style="height: 25px;" | ||
! style="background-color:#{{purple 1}}A0!important; color:white; width: 200px;" | {{{name|{{{Building|1}}}}}} | |||
|- | |- | ||
| | | style="text-align:center;"|{{{SingleImage|}}} | ||
|- {{#switch: {{{pre|}}}| = style="display: none;" | }} | |||
! style="background-color:#{{purple 2}}; color:white;" | Prerequisite: | |||
|- {{#switch: {{{pre|}}}| = style="display: none;" | }} | |||
| {{{pre|}}} | |||
|- | |- | ||
! style="background-color:#{{purple 2}}; color:white;" | Cost: | |||
|- | |- | ||
| | | align=center | {{{wood|}}} {{{mercury|}}} {{{ore|}}} {{{sulfur|}}} {{{crystal|}}} {{{gem|}}} {{{gold|}}} | ||
|- | |- | ||
! style="background-color:#{{purple 2}}; color:white;" | Effect: | |||
|- | |- | ||
| {{{effect|}}} | |||
|}</includeonly><noinclude> | |||
|} | |||
== How to use == | == How to use == | ||
| Line 43: | Line 35: | ||
|} | |} | ||
You can add more "pre rows" as parameters if the building needs more than one. | You can add more "pre rows" as parameters if the building needs more than one. | ||
== Examples == | |||
{{Common building | {{Common building | ||
| Building = Library | | Building = Library | ||
| pre | | pre = [[Mage Guild]] | ||
| wood | | wood = 5 {{W}} | ||
| mercury = {{M}} | | mercury = 5 {{M}} | ||
| ore | | ore = 5 {{O}} | ||
| sulfur | | sulfur = 5 {{S}} | ||
| crystal = {{C}} | | crystal = 5 {{C}} | ||
| gem | | gem = 5 {{Gem}} | ||
| gold | | gold = 1500 {{G}} | ||
| effect | | effect = The library provides additional spells for mage guild. | ||
| SingleImage = [[File:Tower Library.gif]] | | SingleImage = [[File:Tower Library.gif]] | ||
}} | |||
{{Common building | |||
| Building = Freelancer's Guild | |||
| pre = [[Marketplace]] | |||
| gold = 1000 {{G}} | |||
| effect = Allows a visiting hero to sell creatures for resources | |||
| SingleImage = [[File:Stronghold freelancer's guild (outline).gif|200px]] | |||
}} | }} | ||
[[Category: Building templates|{{PAGENAME}}]]</noinclude> | [[Category: Building templates|{{PAGENAME}}]]</noinclude> | ||
Revision as of 15:25, 21 March 2025
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.