Template:Common building: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(Created page with "{| style="background-color: #CCCCFF; border-width: 0px; float: {{{float|right}}};" cellpadding="3"; |- | colspan=5 align=center bgcolor=3250FF style="color:#FFFFFF" | {{PAGENAME}...")
 
No edit summary
 
(259 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| style="background-color: #CCCCFF; border-width: 0px; float: {{{float|right}}};" cellpadding="3";
{| 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;"
| 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="5" align="center" | '''{{{Name}}}'''
{{{no_pre|
{{!}} align=center bgcolor=mediumorchid{{!}} '''Prerequisite:''' }}}
|-
|-
| rowspan="4" align=center valign=center | [[Image:Creature {{{Image|{{{Name}}}}}}.gif]]
| colspan=8 style="width: 150px;" |
| '''[[Primary skill#attack skill|Attack]]'''
{| cellpadding=0 cellspacing=0 valign=middle style="background-color:#{{purple 3}};"
| {{{Attack}}}
| style="border-left: 5px solid #E8C0E8; border-right: 5px solid #{{purple 3}};" | {{{pre|}}}
| '''[[Speed]]'''
|}
| {{{Speed}}}
|-
|-
| '''[[Primary skill#defense skill|Defense]]'''  
{{{no_cost|
| {{{Defense|{{{Defence}}}}}}
{{!}} colspan=8 align=center bgcolor=mediumorchid{{!}} '''Cost:'''
| '''[[Movement (combat)|Movement]]'''
{{!-}} align=center valign=middle
| {{{Movement|}}}  
{{!}} {{{wood|}}} {{{mercury|}}} {{{ore|}}} {{{sulfur|}}} {{{crystal|}}} {{{gem|}}} {{{gold|}}} }}}
|-
|-
| '''[[Damage]]'''
| colspan=8 align=center bgcolor=mediumorchid style="width: 150px;" | '''Effect:'''
| {{{Damage}}}
| {{{No_shots|'''[[Shots]]'''}}}
| {{{Shots|}}}
|- valign="top"
| '''[[Health]]'''
| {{{Health}}}
| '''[[Cost]]'''
| {{{Cost}}} {{Gold}}
|-
|-
| colspan="5" width=300 | {{{No_spec|'''Special:''' {{{Special}}}}}}
| colspan=8 style="width: 150px;" |
|-
{| cellpadding=0 cellspacing=0 valign=middle style="background-color:#{{purple 3}};"
| colspan="5" align="center" | {{{Onlyone|'''{{{U_name|<noinclude>-</noinclude>}}}'''}}}
| style="border-left: 5px solid #{{purple 3}}; border-right: 5px solid #E5CCFF; font-size:90%;" | {{{effect|}}}
|-
|}
| rowspan="4" align=center valign=center | {{{Onlyone|[[Image:Creature {{{U_image|{{{U_name|}}}}}}.gif]] }}}
| {{{Onlyone|'''[[Primary skill#attack skill|Attack]]''' }}}
| {{{Onlyone|{{{U_attack}}} }}}
| {{{Onlyone|'''[[Speed]]''' }}}
| {{{Onlyone|{{{U_speed}}} }}}
|-
| {{{Onlyone|'''[[Primary skill#defense skill|Defense]]''' }}}
| {{{Onlyone|{{{U_defense|{{{U_defence}}}}}} }}}
| {{{Onlyone|'''[[Movement (combat)|Movement]]''' }}}
| {{{Onlyone|{{{U_movement|}}} }}}
|-
| {{{Onlyone|'''[[Damage]]''' }}}
| {{{Onlyone|{{{U_damage}}} }}}
| {{{Onlyone|{{{No_shots|'''[[Shots]]'''}}} }}}
| {{{Onlyone|{{{U_shots|}}}
|- valign="top"
| {{{Onlyone|'''[[Health]]''' }}}
| {{{Onlyone|{{{U_health}}} }}}
| {{{Onlyone|'''[[Cost]]''' }}}
| {{{Onlyone|{{{U_cost}}} {{Gold}} }}}
|-
| colspan="5" width=300 | {{{Onlyone|{{{No_U_spec|'''Special:''' {{{U_special}}} }}} }}}
|}<noinclude>
|}<noinclude>


== How to use ==
== How to use ==
Copy the code at the beginning of the creature article, and fill in the missing information. Notice, that the factors below are case sensitive meaning, that "Town" is not the same as "town".  
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;"  
{| style="background: transparent;"  
| <pre>{{Creature
| <pre>{{Building
  | Town      =
  | pre     =  
| lvl        =
  | wood   =  
| Growth     =  
  | mercury =  
  | Name      =
  | ore     =  
| Attack    =
  | sulfur =  
| Defense   =  
  | crystal =  
  | Damage    =  
  | gem     =  
  | Health     =  
  | gold   =  
  | Speed      =
  | effect =  
  | Movement  =  
}}</pre>
  | Shots      =  
  | Cost      =
| Special    =
| U_name     =  
  | U_attack  =
| U_defense  =
| U_damage  =
| U_health  =
| U_speed   =  
  | U_movement =
| U_shots    =
| U_cost    =
| U_special =  
}} </pre>
|}
|}


If only one set of information is needed (e.g. [[neutral creature]]s, you can add the following row with no value:
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
<pre>
 
  | Onlyone    = </pre>
{| style="background: transparent;"
| <pre>
  | no_sulfur  =</pre>
|}


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

Latest revision as of 16:49, 25 June 2021

1
Prerequisite:
Cost:
Effect:

How to use[edit]

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  =