68,798
editsAd placeholder
Template:Weapon action page: Difference between revisions
Jump to navigation
Jump to search
Updated for image/icon support
HiddenDragon (talk | contribs) (Added condition dc for fixed DC support) |
HiddenDragon (talk | contribs) (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. | #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: | | image = {{#lvar:image}} | ||
| description = {{{seo description|{{{description|}}}}}} | | description = {{{seo description|{{{description|}}}}}} | ||
}} | }} | ||
}} | }} | ||
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> {{#if: {{#lvar: | <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}}} |