Template:Building: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
Legate (talk | contribs)
mNo edit summary
mNo edit summary
 
(9 intermediate revisions by 3 users not shown)
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>{| cellspacing=0 valign=middle style="background-color:#{{purple 3}}; float:{{{float|right}}}; margin-left:12px;"
|- 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;"|{{{image|[[File:{{{town}}} {{{name|{{PAGENAME}}}}}.gif]]}}}
|-
|-
| style="text-align:center;"|{{{SingleImage|}}}
|- {{#switch: {{{pre|}}}| = style="display: none;" | }}
! style="background-color:#{{purple 2}}; color:white;" | Prerequisite:
! style="background-color:#{{purple 2}}; color:white;" | Prerequisite:
|- {{#switch: {{{pre|}}}| = style="display: none;" | }}
|-
| {{{pre|}}}
| style="padding-left:5px; padding-right:5px; text-align:center;" | {{{pre|}}}
|-
|-
! style="background-color:#{{purple 2}}; color:white;" | Cost:
! style="background-color:#{{purple 2}}; color:white;" | Cost:
|-
|-
| align=center | {{{wood|}}} {{{mercury|}}} {{{ore|}}} {{{sulfur|}}} {{{crystal|}}} {{{gem|}}} {{{gold|}}}
| align=center style="padding-left:5px; padding-right:5px" | {{{wood|}}} {{{mercury|}}} {{{ore|}}} {{{sulfur|}}} {{{crystal|}}} {{{gem|}}} {{{gold|}}}
|-
|-
! style="background-color:#{{purple 2}}; color:white;" | Effect:
! style="background-color:#{{purple 2}}; color:white;" | Effect:
|-
|-
| {{{effect|}}}
| style="padding-left:5px; padding-right:5px" | {{{effect|}}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>


Line 23: Line 23:
{| style="background: transparent;"  
{| style="background: transparent;"  
| <pre>{{Building
| <pre>{{Building
| town    =
| name    =
| image  =
  | pre    =  
  | pre    =  
  | wood    =  
  | wood    =  
Line 34: Line 37:
}}</pre>
}}</pre>
|}
|}
* "name=" is only needed if the building differs from the page name.
* "image=" is only needed if the desired image is not of the form  "<town> <name>.gif"
* all cost parameters are optional if they don't exist.


== Examples ==
== Examples ==
{{Building
{{Building
  | Building   = Library
  | town    = Tower
  | pre         = [[Mage Guild]]
| name   = Library
  | wood       = 5 {{W}}
  | pre     = [[Mage Guild]]
  | mercury     = 5 {{M}}
  | wood   = 5 {{W}}
  | ore         = 5 {{O}}
  | mercury = 5 {{M}}
  | sulfur     = 5 {{S}}
  | ore     = 5 {{O}}
  | crystal     = 5 {{C}}
  | sulfur = 5 {{S}}
  | gem         = 5 {{Gem}}
  | crystal = 5 {{C}}
  | gold       = 1500 {{G}}
  | gem     = 5 {{Gem}}
  | effect     = The library provides additional spells for mage guild.
  | gold   = 1500 {{G}}
  | SingleImage = [[File:Tower Library.gif]]
  | effect = The library provides additional spells for mage guild.
}}
{{Building
| town  = Stronghold
  | name  = Freelancer's Guild
| pre    = [[Marketplace]]
| gold  = 1000 {{G}}
| effect = Allows a visiting hero to sell creatures for resources
| image  = [[File:Stronghold freelancer's guild (outline).gif|200px]]
}}
}}
{{Building
{{Building
  | Building   = Freelancer's Guild
  | town   = Rampart
  | pre         = [[Marketplace]]
| name    = Mystic Pond
  | gold       = 1000 {{G}}
  | pre     = (none)
  | effect     = Allows a visiting hero to sell creatures for resources
| wood    = 2 {{W}}
| SingleImage = [[File:Stronghold freelancer's guild (outline).gif|200px]]
| mercury = 2 {{M}}
| ore    = 2 {{O}}
| sulfur  = 2 {{S}}
| crystal = 2 {{C}}
| gem    = 2 {{Gem}}
  | gold   = 2000 {{G}}
  | effect = Produces 1-4 of a random [[Resource]] (except gold) on the first day of every week.
}}
}}


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

Latest revision as of 15:05, 22 March 2025


How to use[edit | hide | hide all]

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
 | town    =
 | name    =
 | image   =
 | pre     = 
 | wood    = 
 | mercury = 
 | ore     = 
 | sulfur  = 
 | crystal = 
 | gem     = 
 | gold    = 
 | effect  = 
}}
  • "name=" is only needed if the building differs from the page name.
  • "image=" is only needed if the desired image is not of the form "<town> <name>.gif"
  • all cost parameters are optional if they don't exist.

Examples[edit | hide]

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
Mystic Pond
Prerequisite:
(none)
Cost:
2 Wood 2 Mercury 2 Ore 2 Sulfur 2 Crystal 2 Gem 2000 Gold
Effect:
Produces 1-4 of a random Resource (except gold) on the first day of every week.