Template:Spell: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(36 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{{no_text|'''{{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}}; color:#{{Teal 1}}; border:1px solid; border-color:rgba(0,0,0,0); float:{{{float|right}}}; width:225px; margin: 0 0 0 1em"
{| cellpadding=0 cellspacing=0 style="background-color:#{{teal 3}}; border: 1px solid black; float:{{{float|right}}}; width:225px; margin: 0 0 0 1em"
| colspan=3 align=center bgcolor={{teal 1}} style="height: 25px; color:white;" | '''{{{name|{{PAGENAME}}}}}'''
| colspan=3 align=center bgcolor={{teal 1}} style="height: 25px;" | '''{{{name|{{PAGENAME}}}}}'''
|-
|-
| rowspan=5 align=center valign=top | [[File:{{{image|{{PAGENAME}}.png}}}]]
| rowspan=5 align=center valign=center style="margin-left: 5px;; margin-right: 5px;" | [[File:{{{image|{{PAGENAME}}.png}}}]]
|-
|-
| '''School:'''  
| '''School:'''  
| {{-}}{{{exception|[[School of {{{school|{{{1|}}}}}}]]}}}
| {{-}}{{{exception|[[School of {{{school}}}|{{{school|}}}]]}}}
|-
|-
| '''Level:'''
| '''Level:'''
| {{-}}{{{level|{{{4|}}}}}}
| {{-}}{{{level|}}}
|-  
|-  
| '''Basic cost:'''
| '''Cost:'''
| {{-}}{{{cost|{{{2}}}}}}
| {{-}}{{{cost|}}}
|-  
|-  
| '''Duration:'''
| '''Duration:'''
| {{-}}{{{duration|{{{3}}}}}}
| {{-}}{{{duration|}}}
|-
|-
| colspan=3 bgcolor={{teal_2}} | {{-}}'''Basic effect'''
| colspan=3 bgcolor={{teal_2}} | {{-}}'''Basic effect'''
Line 39: Line 38:
|}
|}


{{{appeareverywhere|{{!-}}
|-
{{!}} bgcolor={{teal 2}} colspan=3 {{!}} {{-}}'''Does not appear in mage guild(s) of:'''
| bgcolor={{teal 2}} colspan=3 | {{-}}'''Probability of occurrence (%):'''
{{!-}}
|-
{{!}}
| colspan=3 |
 
{{!T}} cellpadding=0 cellspacing=0 style="border-left: 5px solid #{{teal_3}}; background-color:#{{teal_3}}; font-size: 90%;"
{{!}} {{{no_appear|}}}
{{T!}} }}}
 
|}<noinclude>


{| cellpadding=0 cellspacing=0 style="background-color:#{{teal_3}};"
| {{Town|Castle}} || {{-}}{{-}}{{{1|}}}
|-
| {{Town|Rampart}} || {{-}}{{-}}{{{2|}}}
|-
| {{Town|Tower}} || {{-}}{{-}}{{{3|}}} (''{{{4|}}}*'')
|-
| {{Town|Inferno}} || {{-}}{{-}}{{{5|}}}
|-
| {{Town|Necropolis}} || {{-}}{{-}}{{{6|}}}
|-
| {{Town|Dungeon}} || {{-}}{{-}}{{{7|}}}
|-
| {{Town|Stronghold}} || {{-}}{{-}}{{{8|}}}
|-
| {{Town|Fortress}} || {{-}}{{-}}{{{9|}}}
|-
| {{Town|Conflux}} || {{-}}{{-}}{{{10|}}}
|- class='onlyhota'
| {{Town|Cove}}{{-}}{{withhota}} || {{-}}{{-}}{{{11|}}}
|- class='onlyhota'
| {{Town|Factory}}{{-}}{{withhota}} || {{-}}{{-}}{{{12|}}}
|-
| style="font-size: 90%;" | * Without [[Library]]
|}
|}{{{no_text|'''{{{name|{{PAGENAME}}}}}''' is a {{{level|}}} level [[spell]]{{{custom_text| in the [[School of {{{school|}}}]]}}}.}}}</includeonly><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 65: Line 87:
|}
|}


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
You can also use another image by including image variable row:
| cost        = 24/20
{| style="background: transparent;"
| duration    = instant
| <pre>
| b_effect    = All troops take (30 + (power &times; 50)) points of damage.
  | image      = </pre>
| 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: Misc templates|{{PAGENAME}}]]</noinclude>
}}
[[Category: Spell templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 13:01, 16 August 2024

How to use[edit | hide | hide all]

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[edit | hide]

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

Armageddon is a 4th level spell in the School of Fire Magic.