Template:Building: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
Legate (talk | contribs)
mNo edit summary
Legate (talk | contribs)
simplify params
Line 1: Line 1:
<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;"
<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="background-color:#{{purple 1}}A0!important; color:white; width: 200px;" | {{{name|{{{PAGENAME}}}}}}
|-
|-
| style="text-align:center;"|{{{SingleImage|}}}
| style="text-align:center;"|{{{image|}}}
|- {{#switch: {{{pre|}}}| = style="display: none;" | }}
|- {{#switch: {{{pre|}}}| = style="display: none;" | }}
! style="background-color:#{{purple 2}}; color:white;" | Prerequisite:
! style="background-color:#{{purple 2}}; color:white;" | Prerequisite:
Line 23: Line 23:
{| style="background: transparent;"  
{| style="background: transparent;"  
| <pre>{{Building
| <pre>{{Building
| name    =
| image  =
  | pre    =  
  | pre    =  
  | wood    =  
  | wood    =  
Line 37: Line 39:
== Examples ==
== Examples ==
{{Building
{{Building
  | Building   = Library
  | name   = Library
  | pre         = [[Mage Guild]]
  | pre     = [[Mage Guild]]
  | wood       = 5 {{W}}
  | wood   = 5 {{W}}
  | mercury     = 5 {{M}}
  | mercury = 5 {{M}}
  | ore         = 5 {{O}}
  | ore     = 5 {{O}}
  | sulfur     = 5 {{S}}
  | sulfur = 5 {{S}}
  | crystal     = 5 {{C}}
  | crystal = 5 {{C}}
  | gem         = 5 {{Gem}}
  | gem     = 5 {{Gem}}
  | gold       = 1500 {{G}}
  | gold   = 1500 {{G}}
  | effect     = The library provides additional spells for mage guild.
  | effect = The library provides additional spells for mage guild.
  | SingleImage = [[File:Tower Library.gif]]
  | image  = [[File:Tower Library.gif]]
}}
}}
{{Building
{{Building
  | Building    = Freelancer's Guild
  | name  = Freelancer's Guild
  | pre         = [[Marketplace]]
  | pre   = [[Marketplace]]
  | gold       = 1000 {{G}}
  | gold   = 1000 {{G}}
  | effect     = Allows a visiting hero to sell creatures for resources
  | effect = Allows a visiting hero to sell creatures for resources
  | SingleImage = [[File:Stronghold freelancer's guild (outline).gif|200px]]
  | image  = [[File:Stronghold freelancer's guild (outline).gif|200px]]
}}
}}


[[Category: Building templates|{{PAGENAME}}]]</noinclude>
[[Category: Building templates|{{PAGENAME}}]]</noinclude>

Revision as of 15:39, 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
 | name    =
 | image   =
 | pre     = 
 | wood    = 
 | mercury = 
 | ore     = 
 | sulfur  = 
 | crystal = 
 | gem     = 
 | gold    = 
 | effect  = 
}}

Examples

Library
Prerequisite:
Mage Guild
Cost:
5 Wood 5 Mercury 5 Ore 5 Sulfur 5 Crystal 5 Gem 1500 Gold
Effect:
The library provides additional spells for mage guild.
Freelancer's Guild
Prerequisite:
Marketplace
Cost:
1000 Gold
Effect:
Allows a visiting hero to sell creatures for resources