Template:Spell page: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
m (Remove newline)
mNo edit summary
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#lvardef: icon | {{#if: {{{icon|}}} | {{{icon}}} | {{#replace:{{#replace:{{#replace:{{#replace:{{#titleparts: {{PAGENAME}} }}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}} Icon.webp }} }}{{#switch: {{{this is an example}}}
<includeonly>{{#lvardef: filename | {{#replace:{{#replace:{{#replace:{{#replace:{{#titleparts: {{PAGENAME}} }}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}}}}{{#lvardef: icon | {{#if: {{{icon|}}} | {{{icon}}} | {{#lvar: filename}} Unfaded Icon.webp }} }}{{#lvardef: controllericon | {{#if: {{{controller icon|}}} | {{{controller icon}}} | {{#lvar: filename}} Icon.webp }} }}{{#switch: {{{this is an example}}}
| yes =
| yes =
| #default = {{PageSeo|image = {{#lvar: icon}}|description = {{{seo description|{{{name|{{PAGENAME}} }}} is a {{#ifeq:{{{level}}}
| #default = {{PageSeo|image = {{#lvar: controllericon}}|description = {{{seo description|{{{name|{{PAGENAME}} }}} is a {{#ifeq:{{{level}}}
| cantrip
| cantrip
| Cantrip ({{{school}}})
| Cantrip ({{{school}}})
Line 7: Line 7:
   }}
   }}
}}
}}
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> __NOTOC__
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> __NOTOC__  
[[File:{{{image}}}|frameless|right]]
{{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right]] }}


'''{{{name|{{PAGENAME}} }}}''' is a [[Spells|{{#ifeq: {{{level}}} | cantrip | cantrip {{#if: {{{school|}}} | ({{{school}}}) }} | level {{{level}}} {{#if: {{{school|}}} | {{lc:{{{school}}}}} }} spell }}]]. {{{summary}}} {{#if:{{{npc only| }}}|It cannot be learned by players and is only used by NPCs.}}
'''{{{name|{{PAGENAME}} }}}''' is a [[Spells|{{#ifeq: {{{level}}} | cantrip | cantrip {{#if: {{{school|}}} | ({{{school}}}) }} | level {{{level}}} {{#if: {{{school|}}} | {{lc:{{{school}}}}} }} spell }}]]. {{{summary}}} {{#if:{{{npc only| }}}|It cannot be learned by players and is only used by NPCs.}}
Line 14: Line 14:
<h2> Description </h2>
<h2> Description </h2>


{{{description}}} {{#if: {{{warning|}}} |
{{{description}}} {{#if: {{{extra description|}}} | {{blank}}
<p>{{Colour|white|{{{warning}}}}}</p> }}
 
{{{extra description}}}
 
}}{{#if: {{{warning|}}} | {{blank}}
 
<p>{{Colour|white|{{{warning}}}}}</p>
 
}}


<h2> Properties </h2>
<h2> Properties </h2>


<dl class="bg3wiki-property-list">
<div class="bg3wiki-property-list">
{{#if: {{{cost|}}} |
{{#if: {{{cost|}}} |
<dt> Cost:</dt>
; Cost
<dd> {{InfoBlob|{{ResourceList|{{{cost}}}}}}}</dd>
: {{InfoBlob|{{ResourceList|{{{cost}}}}}}}
}} {{#if: {{{hit cost|}}} |
}} {{#if: {{{hit cost|}}} |
<dt> Cost on hit:</dt>
; Cost on hit
<dd> {{InfoBlob|{{ResourceList|{{{hit cost}}}}}}}</dd>
: {{InfoBlob|{{ResourceList|{{{hit cost}}}}}}}
}} {{#if: {{{damage|}}} |
}} {{#if: {{{damage|}}} |
<dt> {{#ifeq: {{{damage type|}}} | Healing | Healing: | Damage:}}</dt>
; {{#ifeq: {{{damage type|}}} | Healing | Healing | Damage }}
<dd> {{DamageInfo
: {{DamageInfo
    | {{{damage}}}
  | {{{damage}}}
    | {{{damage type}}}
  | {{{damage type}}}
    | modifier = {{{damage modifier|}}}
  | modifier = {{{damage modifier|}}}
    | save = {{{damage save|}}}
  | save = {{{damage save|}}}
    | save effect = {{{damage save effect|}}}
  | save effect = {{{damage save effect|}}}
    | save dc = {{{damage save dc|}}}
  | save dc = {{{damage save dc|}}}
    | con = {{{damage con|}}}
  | con = {{{damage con|}}}
    | per = {{{damage per|}}}
  | per = {{{damage per|}}}
    }}</dd>
  }}
}} {{#if: {{{extra damage|}}} |
}} {{#if: {{{extra damage|}}} |
<dd> + {{DamageInfo
: + {{DamageInfo
    | {{{extra damage}}}
    | {{{extra damage}}}
    | {{{extra damage type}}}
    | {{{extra damage type}}}
    | modifier = {{{extra damage modifier|}}}
    | modifier = {{{extra damage modifier|}}}
    | save = {{{extra damage save|}}}
    | save = {{{extra damage save|}}}
    | save effect = {{{extra damage save effect|}}}
    | save effect = {{{extra damage save effect|}}}
    | save dc = {{{extra damage save dc|}}}
    | save dc = {{{extra damage save dc|}}}
    | con = {{{extra damage con|}}}
    | con = {{{extra damage con|}}}
    | per = {{{extra damage per|}}}
    | per = {{{extra damage per|}}}
    }}</dd>
    }}
}} {{#if: {{{extra damage 2|}}} |
}} {{#if: {{{extra damage 2|}}} |
<dd> + {{DamageInfo
: + {{DamageInfo
    | {{{extra damage 2}}}
    | {{{extra damage 2}}}
    | {{{extra damage type 2}}}
    | {{{extra damage type 2}}}
    | modifier = {{{extra damage modifier 2|}}}
    | modifier = {{{extra damage modifier 2|}}}
    | save = {{{extra damage save 2|}}}
    | save = {{{extra damage save 2|}}}
    | save effect = {{{extra damage save effect 2|}}}
    | save effect = {{{extra damage save effect 2|}}}
    | save dc = {{{extra damage save dc 2|}}}
    | save dc = {{{extra damage save dc 2|}}}
    | con = {{{extra damage con 2|}}}
    | con = {{{extra damage con 2|}}}
    | per = {{{extra damage per 2|}}}
    | per = {{{extra damage per 2|}}}
    }}</dd>
    }}
}} {{#if: {{{extra damage 3|}}} |
}} {{#if: {{{extra damage 3|}}} |
<dd> + {{DamageInfo
: + {{DamageInfo
    | {{{extra damage 3}}}
    | {{{extra damage 3}}}
    | {{{extra damage type 3}}}
    | {{{extra damage type 3}}}
    | modifier = {{{extra damage modifier 3|}}}
    | modifier = {{{extra damage modifier 3|}}}
    | save = {{{extra damage save 3|}}}
    | save = {{{extra damage save 3|}}}
    | save effect = {{{extra damage save effect 3|}}}
    | save effect = {{{extra damage save effect 3|}}}
    | save dc = {{{extra damage save dc 3|}}}
    | save dc = {{{extra damage save dc 3|}}}
    | con = {{{extra damage con 3|}}}
    | con = {{{extra damage con 3|}}}
    | per = {{{extra damage per 3|}}}
    | per = {{{extra damage per 3|}}}
    }}</dd>
    }}
}} {{#if: {{{healing|}}} |
}} {{#if: {{{healing|}}} |
<dt> Healing:</dt>
; Healing
<dd> {{HealingInfo
: {{HealingInfo
    | {{{healing}}}
  | {{{healing}}}
    | modifier = {{{healing modifier|}}}
  | modifier = {{{healing modifier|}}}
    | per = {{{healing per|}}}
  | per = {{{healing per|}}}
    }}</dd>
  }}
}}</dl>{{#if: {{{attack roll|}}} {{{ritual|}}} {{{range|}}} {{{range m|}}} {{{range ft|}}} {{{aoe|}}} {{{concentration|}}} {{{area|}}} {{{recharge|}}}|
}} {{#if: {{{attack roll|}}} {{{save|}}} {{{range|}}} {{{range m|}}} {{{range ft|}}} {{{aoe|}}} {{{area|}}} {{{ritual|}}} {{{recharge|}}} {{{concentration|}}} |
<dl class="bg3wiki-property-list"><dt> Details:</dt> <!-- If you add any further detail fields below, make sure to extend the list above as well. -->
; Details <!-- If you add any further detail fields below, make sure to extend the list above as well. -->
{{#if: {{{attack roll|}}} |
}} {{#if: {{{attack roll|}}} |
<dd> {{Attack Roll|{{{attack roll|}}}}} {{#if: {{{on miss|}}} | (On Miss: {{{on miss}}}) }}</dd>
: {{Attack Roll|{{{attack roll|}}}}} {{#if: {{{on miss|}}} | (On Miss: {{{on miss}}}) }}
}} {{#if: {{{save|}}} |
}} {{#if: {{{save|}}} |
<dd> {{Save | {{{save}}} | dc = {{{save dc|}}} }} {{#if: {{{on save|}}} | (On Save: {{{on save}}}) }}</dd>
: {{Save | {{{save}}} | dc = {{{save dc|}}} }} {{#if: {{{on save|}}} | (On Save: {{{on save}}}) }}
}}{{#if: {{{range m|}}} {{{range ft|}}}
}} {{#if: {{{range m|}}} {{{range ft|}}}
| <dd> {{Range | {{{range|}}} | m = {{{range m}}} | ft = {{{range ft}}} }} </dd>
| : {{Range | {{{range|}}} | m = {{{range m}}} | ft = {{{range ft}}} }}
| {{#if: {{{range|}}}
| {{#if: {{{range|}}}
   | <dd> {{Range | {{{range}}} }} </dd>
   | : {{Range | {{{range}}} }}
   }}
   }}
}} {{#if: {{{aoe|}}} |
}} {{#if: {{{aoe|}}} |
<dd> {{AOE | {{{aoe}}} | m = {{{aoe m}}} | ft = {{{aoe ft}}} }} </dd>
: {{AOE | {{{aoe}}} | m = {{{aoe m}}} | ft = {{{aoe ft}}} }}
}} {{#if: {{{area|}}} |
}} {{#if: {{{area|}}} |
<dd> {{SmallIcon|Aoe Icon.png}} Creates Area: {{{area}}} </dd>
: {{SmallIcon | Aoe Icon.png }} Creates Area: {{{area}}}
}} {{#if: {{{ritual|}}} |
}} {{#if: {{{ritual|}}} |
<dd> {{Ritual Spell}} </dd>
: {{Ritual Spell}}
}} {{#if: {{{recharge|}}} |
}} {{#if: {{{recharge|}}} |
<dd> {{Recharge|{{{recharge}}} }} </dd>
: {{Recharge | {{{recharge}}} }}
}} {{#if: {{{concentration|}}} |
}} {{#if: {{{concentration|}}} |
<dd> {{Concentration}} </dd>
: {{Concentration}}
}}
}} <!-- If you add any further detail fields above, make sure to extend the #if above it to display the "Details" header as well. -->
}} <!-- end details -->
</div>
</dl>
<h2> At higher levels </h2>
<h2> At higher levels </h2>
{{#if: {{{higher levels|}}}
{{#if: {{{higher levels|}}} | {{main namespace only|[[Category:Spells that gain benefits at higher levels]]}}
| <p>{{{higher levels}}}{{main namespace only|[[Category:Spells that gain benefits at higher levels]]}}</p>
{{{higher levels}}}
| <p>Casting this spell at a higher level grants no additional benefit. </p>
| <p>Casting this spell at a higher level grants no additional benefit. </p>
}} {{clear}}</div> {{#if: {{{variants|}}} |
}} {{clear}}</div> {{#if: {{{variants|}}} |
Line 158: Line 164:


<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
The spell creates {{#switch: {{{area category}}}
{{Area full|{{{area}}}|duration={{{area duration|}}}|shape={{{area shape|}}}|range m={{{area range m|}}}|range ft={{{area range ft|}}}}}
| cloud = a cloud
| surface = a surface
| #default = an area
}} with the following properties.
 
* {{AOE | {{{area shape}}} | m = {{{area range m}}} | ft = {{{area range ft}}} }}
* {{Duration | {{{area duration}}} }} {{#if: {{{area turn start damage|}}} | {{blank}}
 
Creatures starting their turn in the area suffer:
{{DamageInfo
| {{{area turn start damage}}}
| {{{area turn start damage type}}}
| save = {{{area turn start damage save|}}}
| save effect = {{{area turn start damage save effect|}}}
}}
}} <!-- / area turn start damage --> {{#if: {{{area turn end damage|}}} | {{blank}}
 
Creatures ending their turn in the area suffer:
{{DamageInfo
| {{{area turn end damage}}}
| {{{area turn end damage type}}}
| save = {{{area turn end damage save|no}}}
| save effect = {{{area turn end damage save effect|}}}
}}
}} <!-- / area turn end damage --> {{#if: {{{area condition|}}} | {{blank}}
 
Creatures within the area are affected by the following conditions:
 
{{Condition | {{{area condition}}} }}{{Main namespace only|{{Inflicts|{{{area condition|}}}|sai }} }}
{{#if: {{{area condition 2|}}} | {{blank}}
{{Condition | {{{area condition 2}}} }}{{Main namespace only|{{Inflicts|{{{area condition 2|}}}|sai }} }}
}} {{#if: {{{area condition 3|}}} | {{blank}}
{{Condition | {{{area condition 3}}} }}{{Main namespace only|{{Inflicts|{{{area condition 3|}}}|sai }} }}
}} {{#if: {{{area condition 4|}}} | {{blank}}
{{Condition | {{{area condition 4}}} }}{{Main namespace only|{{Inflicts|{{{area condition 4|}}}|sai }} }}
}}
}} <!-- / area condition -->
</div>
</div>
}} <!-- / area -->
}} <!-- / area -->
Line 254: Line 223:
{{{notes}}}
{{{notes}}}
</div>
</div>
}}{{#if: {{{video|}}} |
}} {{#if: {{{bugs|}}} |
 
<h2> Bugs </h2>
 
<div class="bg3wiki-tooltip-box">
{{{bugs}}}
{{Main namespace only|[[Category:Bugs]]}}
</div>
}} {{#if: {{{video|}}} |


<h2> Visuals </h2>
<h2> Visuals </h2>
Line 261: Line 238:


}}
}}
 
{{#if: {{{area category|}}}{{{area turn start damage|}}}{{{area turn end damage|}}}{{{area condition|}}}{{{area condition 2|}}}{{{area condition 3|}}}{{{area condition 4|}}} | {{Main namespace only|[[Category:Pages using deprecated parameters]]}} }}
{{#switch: {{{this is an example|}}}
{{#switch: {{{this is an example}}}
| yes =
| yes =
| #default = [[Category:Spells]] {{#ifeq: {{{level}}} | cantrip | [[Category:Cantrips]] | [[Category:Level {{{level}}} Spells]] }} {{#if: {{{school|}}} | [[Category:{{{school|}}} spells]]}}{{#if: {{{ritual|}}} | [[Category:Ritual spells]]}} {{#cargo_store:
| #default = {{Main namespace only|[[Category:Spells]] {{#ifeq: {{{level}}} | cantrip | [[Category:Cantrips]] | [[Category:Level {{{level}}} Spells]] }} {{#if: {{{school|}}} | [[Category:{{{school|}}} spells]]}}{{#if: {{{ritual|}}} | [[Category:Ritual spells]]}} {{#cargo_store:
_table = spells
_table = spells
| name = {{{name|{{#titleparts: {{PAGENAME}} }} }}}
| name = {{{name|{{#titleparts: {{PAGENAME}} }} }}}
| image = {{{image|}}}
| image = {{{image|}}}
| controller_icon = {{#lvar:controllericon}}
| icon = {{#lvar:icon}}
| icon = {{#lvar:icon}}
| spell_level = {{#ifeq:{{{level|}}}|cantrip|0|{{{level|}}} }}
| spell_level = {{#ifeq:{{{level|}}}|cantrip|0|{{{level|}}} }}
| spell_school = {{{school}}}
| spell_school = {{{school|}}}
| is_concentration = {{#if:{{{concentration|}}}|yes}}
| is_concentration = {{#if:{{{concentration|}}}|yes}}
| is_ritual = {{#if:{{{ritual|}}}|yes}}
| is_ritual = {{#if:{{{ritual|}}}|yes}}
| is_spell = yes
| is_weapon_action = no
| aoe = {{{aoe|}}}
| aoe = {{{aoe|}}}
| aoe_size = {{#if:{{{aoe|}}}|{{{aoe m|}}}/{{{aoe ft|}}} }}
| aoe_size = {{#if:{{{aoe|}}}|{{{aoe m|}}}/{{{aoe ft|}}} }}
Line 279: Line 259:
| has_attack_roll = {{#if:{{{attack roll|}}}|yes}}
| has_attack_roll = {{#if:{{{attack roll|}}}|yes}}
| description = {{{description|}}}
| description = {{{description|}}}
| extra_description = {{{extra description|}}}
| action_type = {{#if:{{#pos:{{{cost|}}}|reaction}}|reaction|{{#if:{{#pos:{{{cost|}}}|bonus}}|bonus|{{#if:{{#pos:{{{cost|}}}|action}}|action|{{#if:{{#pos:{{{cost|}}}|movement}}|movement|}}}}}}}}
| action_type = {{#if:{{#pos:{{{cost|}}}|reaction}}|reaction|{{#if:{{#pos:{{{cost|}}}|bonus}}|bonus|{{#if:{{#pos:{{{cost|}}}|action}}|action|{{#if:{{#pos:{{{cost|}}}|movement}}|movement|}}}}}}}}
| spell_range = {{#if:{{{range m|}}}{{{range ft|}}}|{{{range m|}}}/{{{range ft|}}}|{{{range|}}} }}
| spell_range = {{#if:{{{range m|}}}{{{range ft|}}}|{{{range m|}}}/{{{range ft|}}}|{{{range|}}} }}
Line 284: Line 265:
| classes = {{{classes|}}}
| classes = {{{classes|}}}
| save = {{{save|}}}
| save = {{{save|}}}
| damage = {{{damage|}}}
| damage_type = {{{damage type|}}}
| damage_type = {{{damage type|}}}
| extra_damage = {{{extra damage|}}}
| extra_damage_type = {{{extra damage type|}}}
| damage_save = {{{damage save|{{{condition save|}}} }}}
| damage_save = {{{damage save|{{{condition save|}}} }}}
| is_healing = {{#if:{{{healing|}}}|yes}}
| is_healing = {{#if:{{{healing|}}}|yes}}
| condition_duration = {{{condition duration|}}}
| condition_duration = {{{condition duration|}}}
| recharge = {{{recharge|}}}
}}
}}
}}</includeonly><noinclude>{{documentation}}{{#cargo_declare:
}} }}</includeonly><noinclude>{{documentation}}{{#cargo_declare:
_table = spells
_table = spells
| name = String
| name = String
| image = File
| image = File
| controller_icon = File
| icon = File
| icon = File
| spell_level = String
| spell_level = String
| spell_school = String
| spell_school = String
| is_spell = Boolean
| is_weapon_action = Boolean
| is_concentration = Boolean
| is_concentration = Boolean
| is_ritual = Boolean
| is_ritual = Boolean
Line 304: Line 292:
| has_attack_roll = Boolean
| has_attack_roll = Boolean
| description = Wikitext
| description = Wikitext
| extra_description = Wikitext
| action_type = String
| action_type = String
| spell_range = String
| spell_range = String
| classes = List (,) of String
| classes = List (,) of String
| save = String
| save = String
| damage = String
| damage_type = String
| damage_type = String
| extra_damage = String
| extra_damage_type = String
| damage_save = String
| damage_save = String
| is_healing = String
| is_healing = String
| condition_duration = String
| condition_duration = String
| recharge = String
}}</noinclude>
}}</noinclude>

Navigation menu