Template:Spell page: Difference between revisions

Jump to navigation Jump to search
m
Re-added this is an example check
No edit summary
m (Re-added this is an example check)
(2 intermediate revisions by the same user 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 262: Line 262:
}}
}}


{{#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 284: Line 287:
| 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 308: Line 318:
| 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