Ad placeholder

Template:Spell page: Difference between revisions

Jump to navigation Jump to search
Added new fields to cargo table to support weapon actions and class actions, as well as a controller icon field and more damage fields
(Cargo store and categorize on the main namespace only)
(Added new fields to cargo table to support weapon actions and class actions, as well as a controller icon field and more damage fields)
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 266: Line 266:
| 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 282: Line 285:
| 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:
Line 291: Line 298:
| 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 306: Line 316:
| 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