Template:Action page: Difference between revisions

Jump to navigation Jump to search
Attach and store onto the spells table, also add support for controller icon/icon stuff
m (Remove extraneous whitespace.)
(Attach and store onto the spells table, also add support for controller icon/icon stuff)
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{PageSeo
<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 =
| #default = {{PageSeo
| description = {{{plain summary|{{{summary}}}}}}
| description = {{{plain summary|{{{summary}}}}}}
| image = {{#if: {{{image|}}} | {{{image|}}} | NoImage Icon.webp}}
| image = {{#lvar: controllericon}}
}}
}} }}
__NOTOC__
__NOTOC__
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">[[File:{{#if: {{{image|}}} | {{{image|}}} | NoImage Icon.webp}}|frameless|right]]
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">[[File:{{#if: {{{image|}}} | {{{image|}}} | NoImage Icon.webp}}|frameless|right]]
Line 272: Line 274:
{{{other ways to learn}}} }}
{{{other ways to learn}}} }}
}}<div class="bg3wiki-tooltip-box">
}}<div class="bg3wiki-tooltip-box">
{{#lvar: how-to-learn-content | ''(Information not yet added.)'' }}}}
{{#lvar: how-to-learn-content | ''(Information not yet added.)'' }}
</div>{{clear}}
}}{{#if: {{{notes|}}} |
<h2> Notes </h2>
<div class="bg3wiki-tooltip-box bg3wiki-tooltip">
{{{notes}}}
</div>
</div>
{{clear}}
}}{{#if: {{{video|}}} |
{{#if: {{{notes|}}} | == Notes == }}
{{trim|{{#if: {{{notes|}}} | <div class="bg3wiki-tooltip-box bg3wiki-tooltip">
{{{notes}}}
</div>}}}}{{#if: {{{video|}}} |
 
<h2> Visuals </h2>
<h2> Visuals </h2>
[[File:{{{video}}}]]
[[File:{{{video}}}]]
 
}}{{#switch: {{{this is an example}}}
}}{{#ifeq: {{{this is an example|}}} | | <!-- CATEGORIES -->
| yes =
{{#ifeq: {{#lvar: hasclasslearn}} | 1 | [[Category:Class features]]}}
| #default = {{Main namespace only|{{#ifeq: {{#lvar: hasclasslearn}} | 1 | [[Category:Class features]]}}{{#ifeq: {{#lvar: hasracelearn}} | 1 | [[Category:Racial features]]}}{{#if: {{{cost|}}} | | [[Category:Free actions]]}}{{#ifeq: {{{common|}}}|yes|[[Category:Common actions]]}}[[Category:Class actions]]{{#if: {{{cost amount|}}}{{{cost2|}}}{{{cost2 amount|}}}{{{cost3|}}}{{{cost3 amount|}}}{{{hit cost amount|}}}{{{hit cost2|}}}{{{hit cost2 amount|}}}{{{higherlevels|}}} | [[Category:Pages using deprecated parameters]]}}{{#cargo_store:
{{#ifeq: {{#lvar: hasracelearn}} | 1 | [[Category:Racial features]]}}
_table = spells
{{#if: {{{cost|}}} | | [[Category:Free actions]]}}
| name = {{{name|{{#titleparts: {{PAGENAME}} }} }}}
{{#ifeq: {{{common|}}}|yes|[[Category:Common actions]]}}
| image = {{{image|}}}
[[Category:Class actions]]
| controller_icon = {{#lvar:controllericon}}
{{#if: {{{cost amount|}}}{{{cost2|}}}{{{cost2 amount|}}}{{{cost3|}}}{{{cost3 amount|}}}{{{hit cost amount|}}}{{{hit cost2|}}}{{{hit cost2 amount|}}}{{{higherlevels|}}} | [[Category:Pages using deprecated parameters]]}}
| icon = {{#lvar:icon}}
}}<!-- End if type is not none --></includeonly><noinclude>
| is_spell = no
{{documentation}}
| is_weapon_action = no
| aoe = {{{aoe|}}}
| aoe_size = {{#if:{{{aoe|}}}|{{{aoe m|}}}/{{{aoe ft|}}} }}
| is_npc = {{#if:{{{npc only|}}}|yes}}
| can_upcast = {{#if:{{{higher levels|}}}|yes}}
| has_attack_roll = {{#if:{{{attack roll|}}}|yes}}
| description = {{{description|}}}
| 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|}}} }}
<!-- A little logic to try to make sure the list of classes only contains unique values. -->
| save = {{{save|}}}
| damage = {{{damage|}}}
| damage_type = {{{damage type|}}}
| extra_damage = {{{extra damage|}}}
| extra_damage_type = {{{extra damage type|}}}
| damage_save = {{{damage save|{{{condition save|}}} }}}
| condition_duration = {{{condition duration|}}}
| recharge = {{{recharge|}}}
}}
}} }}<!-- End if type is not none --></includeonly><noinclude>
{{documentation}}{{#cargo_attach:
_table = spells
}}
</noinclude>
</noinclude>

Navigation menu