Template:Weapon action page: Difference between revisions

Jump to navigation Jump to search
Updated area template name
No edit summary
(Updated area template name)
(98 intermediate revisions by 8 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|}}}
{{#vardefine:name| {{{name | {{#titleparts: {{PAGENAME}} }} }}} }}
| yes =
{{#vardefine:icon| {{{icon | {{#var:name}} Icon.png }}} }}
| #default = {{PageSeo
  | image = {{#lvar:controllericon}}
  | description = {{{seo description|{{{description|}}}}}}
  }}
}}
__NOTOC__
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> {{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right]] }}
{{{summary|'''{{{name|{{#titleparts: {{PAGENAME}} }} }}}''' is a [[Weapon Actions|weapon action]] {{#if: {{{weapons|}}}
| 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.
}} }}}
 
<h2>Description</h2>
 
{{{description}}} {{#if: {{{extra description|}}} | {{blank}}


[[File:{{#var:icon}}|right]]
{{{extra description}}}


'''{{#var:name}}''' is a [[Weapon Actions|weapon action]] available to characters [[proficient]] in and wielding a {{#invoke: ParseList | main | {{{weapon types}}} | makeLinks = yes | makeSingular = yes | joinWord = or }} in their main hand.
}}{{#if: {{{warning|}}} | {{blank}}


== Description ==
<p>{{Colour|white|{{{warning}}}}}</p>


{{{description}}}
}}


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


{{InfoBlob|{{#switch: {{{action type|}}}
<div class="bg3wiki-property-list">
| movement = {{action|movement| ft = {{{movement ft}}} | m = {{{movement m}}} }}
{{#if: {{{cost|}}} |
| #default = {{action|{{{action type|}}}}}
; Cost:
}}}}
: {{InfoBlob|{{ResourceList|{{{cost}}}}}}}
* Damage: {{#if: {{{damage|}}}
}} {{#if: {{{hit cost|}}} |
| {{DamageInfo|{{{damage}}}|{{{damage type}}}}}
; Cost on hit:
| {{InfoBlob|Normal Weapon Damage}}
: {{InfoBlob|{{ResourceList|{{{hit cost}}}}}}}
}}{{#if: {{{attack roll|}}} |
}} {{#if: {{{damage|}}} |
* {{Attack Roll}}
; Damage:
: {{DamageInfo | {{{damage}}} | {{{damage type}}} | modifier = {{{damage modifier|}}} }}
}} {{#if: {{{extra damage|}}} |
: + {{DamageInfo | {{{extra damage}}} | {{{extra damage type}}} | con = {{{extra damage con|}}} }}
}} {{#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|}}} {{{area|}}} {{{duration|}}} {{{recharge|}}} |
; Details: <!-- If you add any more details below, remember to expand the list above too. -->
{{#if: {{{attack roll|}}} |
: {{Attack roll|{{{attack roll|}}}}} {{#if: {{{on miss|}}} | (On Miss: {{{on miss}}}) }}
}} {{#if: {{{save|}}} |
: {{Save | {{{save}}} | dc = {{{save dc|}}} }} {{#if: {{{on save|}}} | (On Save: {{{on save}}}) }}
}} {{#if: {{{range m|}}} {{{range ft|}}} |
: {{Range | m = {{{range m}}} | ft = {{{range ft}}} }}
}} {{#if: {{{range|}}} |
: {{Range | {{{range | {{{range}}} }}} }}
}} {{#if: {{{aoe|}}} |
: {{AOE | {{{aoe}}} | m = {{{aoe m}}} | ft = {{{aoe ft}}} }}
}} {{#if: {{{area|}}} |
: {{SmallIcon | Aoe Icon.png }} Creates Area: {{{area}}}
}} {{#if: {{{duration|}}} |
: {{Duration | {{{duration}}} }}
}} {{#if: {{{recharge|}}} |
: {{Recharge | {{{recharge}}} }}
}}
}}
* {{#if: {{{range m|}}}{{{range ft|}}}
| {{Range | m = {{{range m}}} | ft = {{{range ft}}} }}
| {{Range | {{{range|weapon}}} }}
}}
}}
</div>
{{clear}}
</div>
{{#if: {{{variants|}}} |
== Variants ==
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{#invoke: ParseList | main | {{{variants}}} | type = htmlListNoBullets | useTemplate = SAI/fixed }}
</div>
}}{{#if: {{{condition|}}} |
== Condition: {{{condition}}} ==


{{#switch: {{{this is an example|}}}
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
| yes =  
{{Condition | {{{condition}}}
| #default = [[Category:Weapon Actions]]
| save = {{{condition save|}}}
}}</includeonly><noinclude>
| dc = {{{condition dc|}}}
Examples follow.
| duration = {{{condition duration|}}}
}}
{{main namespace only|{{Inflicts|{{{condition}}}|sai}}}}
</div>
}} {{#if: {{{condition2|}}} |


= Piercing Strike =
== Condition: {{{condition2}}} ==


{{WeaponActionPage
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
| name = Piercing Strike
{{Condition | {{{condition2}}}
| weapon types = daggers, pikes
| save = {{{condition2 save|}}}
| description = Blah blah blah blah
| dc = {{{condition2 dc|}}}
| attack roll = yes
| duration = {{{condition2 duration|}}}
| this is an example = yes
}}
}}
{{main namespace only|{{Inflicts|{{{condition2}}}|sai}}}}
</div>


{{clear}}
}} {{#if: {{{area|}}} |


= Pommel Strike =
<h2> Area: {{{area}}} </h2>


{{WeaponActionPage
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
| name = Pommel Strike
{{Area full|{{{area}}}|duration={{{area duration|}}}|shape={{{area shape|}}}|range m={{{area range m|}}}|range ft={{{area range ft|}}}}}
| action type = bonus
</div>
| weapon types = longswords
}} <!-- / area -->
| description = Blah blah blah blah
| this is an example = yes
}}


{{clear}}
<h2> How to learn </h2>
{{#lvardef: how-to-learn-content |
  {{#lvardef: classes-learn-list |
    {{#loop: level | 1 | 20 |
      {{#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 }}
      }}
    }}
  }}{{#if: {{#lvar:classes-learn-list}} |


= Brace (Melee) =
Classes:
{{#lvar:classes-learn-list}}
  }}{{#if: {{{granted by feats|}}} | {{blank}}


{{WeaponActionPage
Granted by feats:
| name = Brace (Melee)
{{#invoke: ParseList | main | {{{granted by feats}}} | makeLinks = yes }}
| action type = movement
  }}{{#cargo_query:
| movement ft = 20
tables=weapons
| movement m = 6
|fields= _pageName = page, name, legacy
| weapon types = halberds, pikes
|where=special_weapon_actions HOLDS "{{PAGENAME}}"
| description = Blah blah blah blah
|order by=weapons._pageName
| this is an example = yes
|more results text=
}}
|intro=Granted by the weapons:<ul style="list-style: none;">
|outre=</ul>
|default=
|format=template
|named args = yes
|template=Passive sources/format
}}{{#if: {{{used by creatures|}}} | {{blank}}


{{clear}}
Used by creatures:
{{#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:{{{other ways to learn|}}} | {{blank}}
Other ways to learn:


= Tenacity =
{{{other ways to learn}}} }}
}}<div class="bg3wiki-tooltip-box">
{{#lvar: how-to-learn-content | ''(Information not yet added.)'' }}
</div>
{{#if: {{{notes|}}} | {{blank}}


{{WeaponActionPage
<h2>Notes</h2>
| name = Tenacity
| action type = reaction
| weapon types = maces, mauls
| description = Blah blah blah blah
| this is an example = yes
}}


{{clear}}
<div class="bg3wiki-tooltip-box">
{{{notes}}}
</div>


----
}} {{#if: {{{bugs|}}} |


[[Category:Weapon Action Templates]]
<h2> Bugs </h2>


{{#cargo_declare: _table = weapon_actions
<div class="bg3wiki-tooltip-box">
| name = String (unique, mandatory)
{{{bugs}}}
| icon = File
{{Main namespace only|[[Category:Bugs]]}}
| action_type = String
</div>
| description = Wikitext
}} {{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}}
| 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|}}}
| 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|}}}
| extra_damage = {{{extra damage|}}}
| extra_damage_type = {{{extra damage type|}}}
| damage_save = {{{damage save|{{{condition save|}}} }}}
| condition_duration = {{{condition duration|}}}
| recharge = {{{recharge|}}}
}}
}}
</noinclude><includeonly>{{#switch: {{{this is an example|}}}
}}</includeonly><noinclude>
| yes =
{{documentation}}{{#cargo_attach:
| #default = {{#cargo_store: _table = weapon_types
_table = spells
| name = {{{name| {{titleparts: {{PAGENAME}} }} }}}
| icon = {{{name| {{titleparts: {{PAGENAME}} }} }}} Icon.png
| action_type = {{{type|action}}}
| description = {{{2|}}}
}}
}}
}}</includeonly>
</noinclude>

Navigation menu