Template:Spell: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
Kapteeni Ruoska (talk | contribs)
No edit summary
Undo revision 155815 by Sanust (talk) The {{ab}} and {{roe}} tags are relegated to specific uses; unless it's important to imply Conflux is from AB, leave it out
Tag: Undo
(94 intermediate revisions by 10 users not shown)
Line 1: Line 1:
'''{{PAGENAME}}''' is a {{{level|{{{4}}}}}} level [[spell]]{{{custom_text| in the [[school of {{{school|{{{1}}}}}}]]}}}.
<includeonly>{| cellpadding=0 cellspacing=0 style="background-color:#{{teal 3}}A0!important; color:#{{Teal 1}}; border-color:rgba(0,0,0,0); float:{{{float|right}}}; width:300px; margin: 0 0 0 1em; margin-left:8px; margin-bottom:8px;"
{| align=right border=0 cellpadding=1 cellspacing=0 style="background-color:#CCFFFF; border: 1px solid; border-right: 0px;"
! colspan=3 style="height: 25px; color:white; background-color:#{{teal 1}}A0!important;" | {{{name|{{PAGENAME}}}}}
|- style="height: 25px;"
| width=225 colspan=3 align=center bgcolor=00CCCC | '''{{{name|{{PAGENAME}}}}}'''
|-
|-
| rowspan=5 align=center valign=top | [[Image:{{{Image|{{PAGENAME}}}}}.png]]
| rowspan=5 align=center valign=center style="margin-left: 4px; margin-right: 4px;" | [[File:{{{image|{{PAGENAME}}.png}}}]]
|-
|-
| '''School:'''  
| '''School:'''  
| &nbsp;[[School of {{{school|{{{1}}}}}}|{{{school|{{{1}}}}}}]]
| {{{exception|[[School of {{{school}}}|{{{school|}}}]]}}}
|-
|-
| '''Level:'''
| '''Level:'''
| &nbsp;{{{level|{{{4}}}}}}
| {{{level|}}}
|-  
|-  
| '''Basic cost:'''
| '''Cost:'''
| &nbsp;{{{cost|{{{2}}}}}}
| {{{cost|}}}
|-  
|-  
| '''Duration:'''
| '''Duration:'''
| &nbsp;{{{duration|{{{3}}}}}}
| {{{duration|}}}
|-
|-
| colspan=9 bgcolor=66FFFF style="border-left: 5px solid #66FFFF; idth: 150px;" | '''Effects'''
! colspan=3 align=left style="background-color:#{{teal_2}}; padding-left:4px" | Basic Effect
|-
|-
|  
| colspan=3 style="padding-left:4px; padding-right:4px" | {{{b_effect|}}}
{|cellpadding=0 cellspacing=0 style="border-left: 5px solid #CCFFFF; background-color:#CCFFFF; width: 150px; font-size: 90%"
|-
| colspan=9 | '''Basic effect:''' {{{b_effect|}}}
| colspan=3 | {{-}}
|}
|-
! colspan=3 align=left style="background-color:#{{teal_2}}; padding-left:4px" | Advanced Effect
|-
| colspan=3 style="padding-left:4px; padding-right:4px" | {{{a_effect|}}}
|-
| colspan=3 | {{-}}
|-
! colspan=3 align=left style="background-color:#{{teal_2}}; padding-left:4px" | Expert Effect
|-
| colspan=3 style="padding-left:4px; padding-right:4px" | {{{e_effect|}}}
|-
| colspan=3 | {{-}}
|-
! colspan=3 align=left style="background-color:#{{teal_2}}; padding-left:4px" | Probability of occurrence (%):
|-
| colspan=2 style="padding-left:4px" | {{Town|Castle}} || {{{1|}}}
|-
| colspan=2 style="padding-left:4px" | {{Town|Rampart}} || {{{2|}}}
|-
| colspan=2 style="padding-left:4px" | {{Town|Tower}} || {{{3|}}} (''{{{4|}}}*'')
|-
| colspan=2 style="padding-left:4px" | {{Town|Inferno}} || {{{5|}}}
|-
| colspan=2 style="padding-left:4px" | {{Town|Necropolis}} || {{{6|}}}
|-
| colspan=2 style="padding-left:4px" | {{Town|Dungeon}} || {{{7|}}}
|-
| colspan=2 style="padding-left:4px" | {{Town|Stronghold}} || {{{8|}}}
|-
| colspan=2 style="padding-left:4px" | {{Town|Fortress}} || {{{9|}}}  
|-
|-
| colspan=9 |
| colspan=2 style="padding-left:4px" | {{Town|Conflux}} || {{{10|}}}
{|cellpadding=0 cellspacing=0 style="border-left: 5px solid #CCFFFF; background-color:#CCFFFF; width: 150px; font-size: 90%"
|- class='onlyhota'
| colspan=9 | '''Advanced effect:''' {{{a_effect|}}}
| colspan=2 style="padding-left:4px" | {{Town|Cove}}{{-wh}} || {{{11|}}}
|}
|- class='onlyhota'
| colspan=2 style="padding-left:4px" | {{Town|Factory}}{{-wh}} || {{{12|}}}
|-
|-
| colspan=9 |
| colspan=3 style="padding-left:4px" | * Without [[Library]]
{|cellpadding=0 cellspacing=0 style="border-left: 5px solid #CCFFFF; background-color:#CCFFFF; width: 150px; font-size: 90%"
|}</includeonly><noinclude>
| colspan=9 | '''Expert effect:''' {{{e_effect|}}}
|}
|}<noinclude>
 
== How to use ==
== How to use ==
Copy the code at the beginning of the spell article, and fill in the missing information. Notice, that the factors below are case sensitive meaning, that "school" is not the same as "school". Additionally, note that the school should be written with small first letters (e.g. earth magic).  
Copy the code at the beginning of the spell article, and fill in the missing information. Notice, that the factors below are case sensitive meaning, that "school" is not the same as "School".  


{| style="background: transparent;"  
{| style="background: transparent;"  
| <pre>{{Spell
| <pre>{{Spell
| name        = (defaults to PAGENAME)
| image      = (defaults to PAGENAME.png)
| custom_text = (defaults to "in the school of {{{school}}}")
  | school      =  
  | school      =  
  | level      =  
  | level      =  
Line 51: Line 78:
|}
|}


You can also replace the "in the school of X magic" text with a custom text by adding a custom_text variable row:
==Example==
{| style="background: transparent;"
{{Spell |0|0|0|0|10|10|20|0|0|0|0|0
| <pre>
| name        = Armageddon
  | custom_text = </pre>
| image      = Armageddon.png
|}
| school      = Fire Magic
 
| level      = 4th
[[Category:Help templates|{{PAGENAME}}]]</noinclude>
  | cost        = 24/20
| duration    = instant
| b_effect    = All troops take (30 + (power &times; 50)) points of damage.
| a_effect    = All troops take (60 + (power &times; 50)) points of damage.
| e_effect    = All troops take (120 + (power &times; 50)) points of damage.
}}
[[Category: Spell templates|{{PAGENAME}}]]</noinclude>

Revision as of 12:05, 6 April 2025

How to use

Copy the code at the beginning of the spell article, and fill in the missing information. Notice, that the factors below are case sensitive meaning, that "school" is not the same as "School".

{{Spell
 | name        = (defaults to PAGENAME)
 | image       = (defaults to PAGENAME.png)
 | custom_text = (defaults to "in the school of {{{school}}}")
 | school      = 
 | level       = 
 | cost        = 
 | duration    = 
 | b_effect    = 
 | a_effect    = 
 | e_effect    = 
}}

Example

Armageddon
School: Fire Magic
Level: 4th
Cost: 24/20
Duration: instant
Basic Effect
All troops take (30 + (power × 50)) points of damage.
 
Advanced Effect
All troops take (60 + (power × 50)) points of damage.
 
Expert Effect
All troops take (120 + (power × 50)) points of damage.
 
Probability of occurrence (%):
Castle 0
Rampart 0
Tower 0 (0*)
Inferno 10
Necropolis 10
Dungeon 20
Stronghold 0
Fortress 0
Conflux 0
Cove Horn of the Abyss 0
Factory Horn of the Abyss 0
* Without Library