65
editsAd 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
HiddenDragon (talk | contribs) mNo edit summary |
(the "name" parameter does not have to be explicitly defined anymore for the query to function) |
||
(37 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{ | <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|}}} | ||
#lvardef: | |||
}}{{ | |||
#lvardef: icon | {{{icon | {{ | |||
}}{{#switch: {{{this is an example|}}} | |||
| yes = | | yes = | ||
| #default = {{PageSeo | | #default = {{PageSeo | ||
| image = {{#lvar: | | image = {{#lvar:controllericon}} | ||
| description = {{{seo description|{{{description|}}}}}} | | description = {{{seo description|{{{description|}}}}}} | ||
}} | }} | ||
}} | }} | ||
__NOTOC__ | __NOTOC__ | ||
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> {{#if: {{ | <div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> {{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right]] }} | ||
{{{summary|'''{{# | {{{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 21: | 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> | ||
< | <div class="bg3wiki-property-list"> | ||
{{#if: {{{cost|}}} | | {{#if: {{{cost|}}} | | ||
; Cost: | |||
: {{InfoBlob|{{ResourceList|{{{cost}}}}}}} | |||
}} {{#if: {{{hit cost|}}} | | }} {{#if: {{{hit cost|}}} | | ||
; Cost on hit: | |||
: {{InfoBlob|{{ResourceList|{{{hit cost}}}}}}} | |||
}} {{#if: {{{damage|}}} | | }} {{#if: {{{damage|}}} | | ||
; Damage: | |||
: {{DamageInfo | {{{damage}}} | {{{damage type}}} | modifier = {{{damage modifier|}}} }} | |||
}} {{#if: {{{extra damage|}}} | | }} {{#if: {{{extra damage|}}} | | ||
: + {{DamageInfo | {{{extra damage}}} | {{{extra damage type}}} | con = {{{extra damage con|}}} }} | |||
}} {{#if: {{{extra damage 2|}}} | | }} {{#if: {{{extra damage 2|}}} | | ||
: + {{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|}}} | | ||
; Details: <!-- If you add any more details below, remember to expand the list above too. --> | |||
{{#if: {{{attack roll|}}} | | {{#if: {{{attack roll|}}} | | ||
: {{Attack roll|{{{attack roll|}}}}} {{#if: {{{on miss|}}} | (On Miss: {{{on miss}}}) }} | |||
}} {{#if: {{{save|}}} | | }} {{#if: {{{save|}}} | | ||
: {{Save | {{{save}}} | dc = {{{save dc|}}} }} {{#if: {{{on save|}}} | (On Save: {{{on save}}}) }} | |||
}} {{#if: {{{range m|}}} {{{range ft|}}} | | }} {{#if: {{{range m|}}} {{{range ft|}}} | | ||
: {{Range | m = {{{range m}}} | ft = {{{range ft}}} }} | |||
}} {{#if: {{{range|}}} | | }} {{#if: {{{range|}}} | | ||
: {{Range | {{{range | {{{range}}} }}} }} | |||
}} {{#if: {{{aoe|}}} | | }} {{#if: {{{aoe|}}} | | ||
: {{AOE | {{{aoe}}} | m = {{{aoe m}}} | ft = {{{aoe ft}}} }} | |||
}} {{#if: {{{area|}}} | | |||
: {{SmallIcon | Aoe Icon.png }} Creates Area: {{{area}}} | |||
}} {{#if: {{{duration|}}} | | }} {{#if: {{{duration|}}} | | ||
: {{Duration | {{{duration}}} }} | |||
}} {{#if: {{{recharge|}}} | | }} {{#if: {{{recharge|}}} | | ||
: {{Recharge | {{{recharge}}} }} | |||
}} | }} | ||
}} | }} | ||
</ | </div> | ||
{{clear}} | {{clear}} | ||
</div> | </div> | ||
{{#if: {{{condition|}}} | | {{#if: {{{variants|}}} | | ||
<h2> Variants </h2> | |||
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> | |||
{{#invoke: ParseList | main | {{{variants}}} | type = htmlListNoBullets | useTemplate = SAI/fixed }} | |||
</div> | |||
}}{{#if: {{{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|}}} | | ||
<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}} }}} | | * Class level {{#var:level}}: {{#invoke: ParseList | main | {{{ class learns at level {{#var:level}} }}} | makeLinks = yes }} | ||
}} | }} | ||
}} | }} | ||
Line 106: | Line 121: | ||
Granted by feats: | Granted by feats: | ||
{{#invoke: ParseList | main | {{{granted by feats}}} | | {{#invoke: ParseList | main | {{{granted by feats}}} | makeLinks = yes }} | ||
}}{{# | }}{{#cargo_query: tables = weapons | ||
| fields = _pageName = page, name, legacy | |||
Granted by the | | where = special_weapon_actions HOLDS "{{{name|{{#titleparts: {{PAGENAME}} }}}}}" | ||
| order by = weapons._pageName | |||
| more results text = | |||
| intro = Granted by the weapons: <ul style="list-style: none;"> | |||
| outro = </ul> | |||
| default = | |||
| format = template | |||
| named args = yes | |||
| template = Passive sources/format | |||
}}{{#if: {{{used by creatures|}}} | {{blank}} | |||
Used by creatures: | Used by creatures: | ||
{{#invoke: ParseList | main | {{{used by creatures}}} | makeLinks = yes }} | {{#invoke: ParseList | main | {{{used by creatures}}} | makeLinks = yes }} | ||
}}{{#if: {{{variant of|}}} | {{blank}} | |||
This action is a variation of:<br> | |||
{{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 130: | Line 160: | ||
</div> | </div> | ||
}} {{# | }} {{#if: {{{bugs|}}} | | ||
| | |||
| | <h2> Bugs </h2> | ||
[[Category:Weapon actions]] {{#cargo_store: _table = | |||
| name = {{# | <div class="bg3wiki-tooltip-box"> | ||
| image = {{#lvar: | {{{bugs}}} | ||
{{Main namespace only|[[Category:Bugs]]}} | |||
</div> | |||
}} {{Main namespace only|{{#if: {{{cost|}}} | | [[Category:Free actions]]}} | |||
[[Category:Weapon actions]] {{#cargo_store: | |||
_table = spells | |||
| name = {{{name | {{#titleparts: {{PAGENAME}} }} }}} | |||
| image = {{{image|}}} | |||
| controller_icon = {{#lvar:controllericon}} | |||
| icon = {{#lvar:icon}} | | icon = {{#lvar:icon}} | ||
| | | is_spell = no | ||
| | | is_weapon_action = yes | ||
| | | aoe = {{{aoe|}}} | ||
| | | aoe_size = {{#if:{{{aoe|}}}|{{{aoe m|}}}/{{{aoe ft|}}} }} | ||
| | | has_attack_roll = {{#if:{{{attack roll|}}}|yes}} | ||
| | | description = {{{description|}}} | ||
| condition_duration = {{{condition duration| | | 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|}}}}}}}} | |||
| spell_range = {{#if:{{{range m|}}}{{{range ft|}}}|{{{range m|}}}/{{{range ft|}}}|{{{range|}}} }} | |||
| save = {{{save|}}} | |||
| damage = {{{damage|}}} | |||
| damage_type = {{{damage type|}}} | |||
| damage_modifier = {{{damage modifier|}}} | |||
| extra_damage = {{{extra damage|}}} | |||
| 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|}}} }}} | |||
| condition_duration = {{{condition duration|}}} | |||
| recharge = {{{recharge|}}} | |||
}} | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{documentation}}{{#cargo_attach: | |||
_table = spells | |||
{{ | |||
}} | |||
{{ | |||
}} | }} | ||
</noinclude> | </noinclude> |