Template:Weapon action page: Difference between revisions

Jump to navigation Jump to search
Updated for image/icon support
(Added condition dc for fixed DC support)
(Updated for image/icon support)
Line 2: Line 2:
#lvardef: name | {{{name | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} }}}
#lvardef: name | {{{name | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} }}}
}}{{
}}{{
#lvardef: icon | {{{icon | {{#lvar:name}} Icon.png }}}
#lvardef: image | {{{image | {{#lvar:name}}.webp }}}
}}{{
#lvardef: icon | {{{icon | {{#lvar:name}} Icon.webp }}}
}}{{#switch: {{{this is an example|}}}
}}{{#switch: {{{this is an example|}}}
| yes =
| yes =
| #default = {{PageSeo
| #default = {{PageSeo
   | image = {{#lvar:icon}}
   | image = {{#lvar:image}}
   | description = {{{seo description|{{{description|}}}}}}
   | description = {{{seo description|{{{description|}}}}}}
   }}
   }}
}}
}}
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> {{#if: {{#lvar:icon}} | [[File:{{#lvar:icon}}|300px|right]] }}
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> {{#if: {{#lvar:image}} | [[File:{{#lvar:image}}|300px|right]] }}
{{{summary|'''{{#lvar:name}}''' is a [[Weapon Actions|weapon action]] {{#if: {{{weapons|}}}
{{{summary|'''{{#lvar:name}}''' is a [[Weapon Actions|weapon action]] {{#if: {{{weapons|}}}
| granted by {{#invoke: ParseList | main | {{{weapons}}} | useTemplate = RarityItem }}.
| granted by {{#invoke: ParseList | main | {{{weapons}}} | useTemplate = RarityItem }}.
Line 181: Line 183:
{{#cargo_declare: _table = weapon_actions
{{#cargo_declare: _table = weapon_actions
| name = String (unique, mandatory)
| name = String (unique, mandatory)
| image = File
| icon = File
| icon = File
| action_type = String
| action_type = String
Line 205: Line 208:
| #default = {{#cargo_store: _table = weapon_actions
| #default = {{#cargo_store: _table = weapon_actions
| name = {{#lvar:name}}
| name = {{#lvar:name}}
| image = {{#lvar:image}}
| icon = {{#lvar:icon}}
| icon = {{#lvar:icon}}
| action_type = {{{action type|action}}}
| action_type = {{{action type|action}}}

Navigation menu