Ad placeholder

Template:Weapon action page: Difference between revisions

Jump to navigation Jump to search
the "name" parameter does not have to be explicitly defined anymore for the query to function
mNo edit summary
(the "name" parameter does not have to be explicitly defined anymore for the query to function)
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#lvardef: name | {{{name | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} }}}}}{{#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|}}}
<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
| #default = {{PageSeo
Line 8: Line 8:
__NOTOC__
__NOTOC__
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> {{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right]] }}
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> {{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right]] }}
{{{summary|'''{{#lvar:name}}''' is a [[Weapon Actions|weapon action]] {{#if: {{{weapons|}}}
{{{summary|'''{{{name | {{#titleparts: {{PAGENAME}} }} }}}''' is a [[Weapon actions|weapon action]] {{#if: {{{weapons|}}}
| granted by {{#invoke: ParseList | main | {{{weapons}}} | useTemplate = RarityItem }}.
| granted by {{#invoke: ParseList | main | {{{weapons}}} | useTemplate = RarityItem }}.
| available to characters [[proficient]] in and wielding a {{#invoke: ParseList | main | {{{weapon types}}} | makeLinks = yes | makeSingular = yes | makeLowercase = yes | textLastDelim = <nowiki>, or </nowiki> }} in their main hand.
| available to characters [[proficient]] in and wielding a {{#invoke: ParseList | main | {{{weapon types}}} | makeLinks = yes | makeSingular = yes | makeLowercase = yes | textLastDelim = <nowiki>, or </nowiki> }} in their main hand.
Line 15: Line 15:
<h2>Description</h2>
<h2>Description</h2>


{{{description}}} {{#if: {{{warning|}}} |
{{{description}}} {{#if: {{{extra description|}}} | {{blank}}
<p>{{Colour|white|{{{warning}}}}}</p> }}
 
{{{extra description}}}
 
}}{{#if: {{{warning|}}} | {{blank}}
 
<p>{{Colour|white|{{{warning}}}}}</p>  
 
}}


<h2>Properties</h2>
<h2>Properties</h2>


<dl class="bg3wiki-property-list">
<div class="bg3wiki-property-list">
{{#if: {{{cost|}}} |
{{#if: {{{cost|}}} |
<dt> Cost:</dt>
; Cost:
<dd> {{InfoBlob|{{ResourceList|{{{cost}}}}}}} </dd>
: {{InfoBlob|{{ResourceList|{{{cost}}}}}}}
}} {{#if: {{{hit cost|}}} |
}} {{#if: {{{hit cost|}}} |
<dt> Cost on hit:</dt>
; Cost on hit:
<dd> {{InfoBlob|{{ResourceList|{{{hit cost}}}}}}} </dd>
: {{InfoBlob|{{ResourceList|{{{hit cost}}}}}}}
}} {{#if: {{{damage|}}} |
}} {{#if: {{{damage|}}} |
<dt> Damage:</dt>
; Damage:
<dd> {{DamageInfo | {{{damage}}} | {{{damage type}}} | modifier = {{{damage modifier|}}} }} </dd>
: {{DamageInfo | {{{damage}}} | {{{damage type}}} | modifier = {{{damage modifier|}}} }}
}} {{#if: {{{extra damage|}}} |
}} {{#if: {{{extra damage|}}} |
<dd> + {{DamageInfo | {{{extra damage}}} | {{{extra damage type}}} | con = {{{extra damage con|}}} }} </dd>
: + {{DamageInfo | {{{extra damage}}} | {{{extra damage type}}} | con = {{{extra damage con|}}} }}
}} {{#if: {{{extra damage 2|}}} |
}} {{#if: {{{extra damage 2|}}} |
<dd> + {{DamageInfo | {{{extra damage 2}}} | {{{extra damage type 2}}} | con = {{{extra damage con 2|}}} }} </dd>
: + {{DamageInfo | {{{extra damage 2}}} | {{{extra damage type 2}}} | con = {{{extra damage con 2|}}} }}
}} {{#if: {{{attack roll|}}} {{{range m|}}} {{{range ft|}}} {{{range|}}} {{{aoe|}}} {{{duration|}}} {{{recharge|}}} |
}} {{#if: {{{attack roll|}}} {{{range m|}}} {{{range ft|}}} {{{range|}}} {{{aoe|}}} {{{area|}}} {{{duration|}}} {{{recharge|}}} |
<dt> Details:</dt> <!-- If you add any more details below, remember to expand the list above too. -->
; Details: <!-- If you add any more details below, remember to expand the list above too. -->
{{#if: {{{attack roll|}}} |
{{#if: {{{attack roll|}}} |
<dd> {{Attack roll|{{{attack roll|}}}}} {{#if: {{{on miss|}}} | (On Miss: {{{on miss}}}) }}</dd>
: {{Attack roll|{{{attack roll|}}}}} {{#if: {{{on miss|}}} | (On Miss: {{{on miss}}}) }}
}} {{#if: {{{save|}}} |
}} {{#if: {{{save|}}} |
<dd> {{Save | {{{save}}} | dc = {{{save dc|}}} }} {{#if: {{{on save|}}} | (On Save: {{{on save}}}) }}</dd>
: {{Save | {{{save}}} | dc = {{{save dc|}}} }} {{#if: {{{on save|}}} | (On Save: {{{on save}}}) }}
}} {{#if: {{{range m|}}} {{{range ft|}}} |
}} {{#if: {{{range m|}}} {{{range ft|}}} |
<dd> {{Range | m = {{{range m}}} | ft = {{{range ft}}} }} </dd>
: {{Range | m = {{{range m}}} | ft = {{{range ft}}} }}
}} {{#if: {{{range|}}} |
}} {{#if: {{{range|}}} |
<dd> {{Range | {{{range | {{{range}}} }}} }} </dd>
: {{Range | {{{range | {{{range}}} }}} }}
}} {{#if: {{{aoe|}}} |
}} {{#if: {{{aoe|}}} |
<dd> {{AOE | {{{aoe}}} | m = {{{aoe m}}} | ft = {{{aoe ft}}} }} </dd>
: {{AOE | {{{aoe}}} | m = {{{aoe m}}} | ft = {{{aoe ft}}} }}
}} {{#if: {{{area|}}} |
: {{SmallIcon | Aoe Icon.png }} Creates Area: {{{area}}}
}} {{#if: {{{duration|}}} |
}} {{#if: {{{duration|}}} |
<dd> {{Duration | {{{duration}}} }} </dd>
: {{Duration | {{{duration}}} }}
}} {{#if: {{{recharge|}}} |
}} {{#if: {{{recharge|}}} |
<dd> {{Recharge | {{{recharge}}} }} </dd>
: {{Recharge | {{{recharge}}} }}
}}
}}
}}
}}
</dl>
</div>


{{clear}}
{{clear}}
Line 58: Line 67:
</div>  
</div>  
{{#if: {{{variants|}}} |
{{#if: {{{variants|}}} |
== Variants ==
<h2> Variants </h2>


<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
Line 66: Line 75:
}}{{#if: {{{condition|}}} |
}}{{#if: {{{condition|}}} |


== Condition: {{{condition}}} ==
<h2> Condition: {{{condition}}} </h2>


<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
Line 74: Line 83:
| duration = {{{condition duration|}}}
| duration = {{{condition duration|}}}
}}
}}
{{main namespace only|{{Inflicts|{{{condition}}}|sai}}}}
{{main namespace only|{{Inflicts|{{{condition}}}|sai|type=spell|save={{{condition save|}}}|dc={{{condition dc|}}}|duration={{{condition duration|}}}}}}}
</div>
</div>
{{#if: {{{condition2|}}} |
}}{{#if: {{{condition2|}}} |


== Condition: {{{condition2}}} ==
<h2> Condition: {{{condition2}}} </h2>


<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
Line 86: Line 95:
| duration = {{{condition2 duration|}}}
| duration = {{{condition2 duration|}}}
}}
}}
{{main namespace only|{{Inflicts|{{{condition2}}}|sai}}}}
{{main namespace only|{{Inflicts|{{{condition2}}}|sai|type=spell|save={{{condition2 save|}}}|dc={{{condition2 dc|}}}|duration={{{condition2 duration|}}}}}}}
</div>
</div>


  }}
}}{{#if: {{{area|}}} | {{blank}}
 
<h2> Area: {{{area}}} </h2>
 
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Area full|{{{area}}}|duration={{{area duration|}}}|shape={{{area shape|}}}|range m={{{area range m|}}}|range ft={{{area range ft|}}}}}
</div>
}}
}}
<h2> How to learn </h2>
<h2> How to learn </h2>
Line 96: Line 111:
     {{#loop: level | 1 | 20 |
     {{#loop: level | 1 | 20 |
       {{#if: {{{ class learns at level {{#var:level}} |}}} | {{#lvardef:hasclasslearn|1}}{{blank}}
       {{#if: {{{ class learns at level {{#var:level}} |}}} | {{#lvardef:hasclasslearn|1}}{{blank}}
* Class level {{#var:level}}: {{#invoke: ParseList | main | {{{ class learns at level {{#var:level}} }}} | useTemplate = Class }}
* Class level {{#var:level}}: {{#invoke: ParseList | main | {{{ class learns at level {{#var:level}} }}} | makeLinks = yes }}
       }}
       }}
     }}
     }}
Line 107: Line 122:
Granted by feats:
Granted by feats:
{{#invoke: ParseList | main | {{{granted by feats}}} | makeLinks = yes }}
{{#invoke: ParseList | main | {{{granted by feats}}} | makeLinks = yes }}
   }}{{#cargo_query:
   }}{{#cargo_query: tables = weapons
tables=weapons
| fields = _pageName = page, name, legacy
|fields= _pageName = page, name, legacy
| where = special_weapon_actions HOLDS "{{{name|{{#titleparts: {{PAGENAME}} }}}}}"
|where=special_weapon_actions HOLDS "{{PAGENAME}}"
| order by = weapons._pageName
|order by=weapons._pageName
| more results text =
|more results text=
| intro = Granted by the weapons: <ul style="list-style: none;">
|intro=Granted by the weapons:<ul style="list-style: none;">
| outro = </ul>
|outre=</ul>
| default =
|default=
| format = template
|format=template
| named args = yes
|named args = yes
| template = Passive sources/format
|template=Passive sources/format
}}{{#if: {{{used by creatures|}}} | {{blank}}
}}{{#if: {{{used by creatures|}}} | {{blank}}


Line 127: Line 141:
This action is a variation of:<br>
This action is a variation of:<br>
{{SAI|{{{variant of}}}|w=40}}
{{SAI|{{{variant of}}}|w=40}}
  }}{{#if: {{{weapon types|}}} | {{blank}}
Granted by wielding the following weapon types with [[proficiency]]:
{{#invoke: ParseList | main | {{{weapon types}}} | type = htmlList | useTemplate = WeaponType }}
   }}{{#if:{{{other ways to learn|}}} | {{blank}}
   }}{{#if:{{{other ways to learn|}}} | {{blank}}
Other ways to learn:
Other ways to learn:
Line 153: Line 171:
[[Category:Weapon actions]] {{#cargo_store:  
[[Category:Weapon actions]] {{#cargo_store:  
_table = spells
_table = spells
| name = {{#lvar:name}}
| name = {{{name | {{#titleparts: {{PAGENAME}} }} }}}
| image = {{{image|}}}
| image = {{{image|}}}
| controller_icon = {{#lvar:controllericon}}
| controller_icon = {{#lvar:controllericon}}
Line 162: Line 180:
| aoe_size = {{#if:{{{aoe|}}}|{{{aoe m|}}}/{{{aoe ft|}}} }}
| aoe_size = {{#if:{{{aoe|}}}|{{{aoe m|}}}/{{{aoe ft|}}} }}
| has_attack_roll = {{#if:{{{attack roll|}}}|yes}}
| has_attack_roll = {{#if:{{{attack roll|}}}|yes}}
| description = {{{description|}}}
| brief = {{{brief|}}}
| extra_description = {{{extra description|}}}
| action_type = {{#if:{{#pos:{{{cost|}}}|reaction}}|reaction|{{#if:{{#pos:{{{cost|}}}|bonus}}|bonus|{{#if:{{#pos:{{{cost|}}}|action}}|action|{{#if:{{#pos:{{{cost|}}}|movement}}|movement|}}}}}}}}
| 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|}}} }}
| spell_range = {{#if:{{{range m|}}}{{{range ft|}}}|{{{range m|}}}/{{{range ft|}}}|{{{range|}}} }}
Line 167: Line 188:
| damage = {{{damage|}}}
| damage = {{{damage|}}}
| damage_type = {{{damage type|}}}
| damage_type = {{{damage type|}}}
| damage_modifier = {{{damage modifier|}}}
| extra_damage = {{{extra damage|}}}
| extra_damage = {{{extra damage|}}}
| extra_damage_type = {{{extra damage type|}}}
| extra_damage_type = {{{extra damage type|}}}
| extra_damage_modifier = {{{extra damage modifier|}}}
| extra_damage_2 = {{{extra damage 2|}}}
| extra_damage_type_2 = {{{extra damage type 2|}}}
| extra_damage_modifier_2 = {{{extra damage modifier 2|}}}
| extra_damage_3 = {{{extra damage 3|}}}
| extra_damage_type_3 = {{{extra damage type 3|}}}
| extra_damage_modifier_3 = {{{extra damage modifier 3|}}}
| damage_save = {{{damage save|{{{condition save|}}} }}}
| damage_save = {{{damage save|{{{condition save|}}} }}}
| condition_duration = {{{condition duration|}}}
| condition_duration = {{{condition duration|}}}

Navigation menu