Template:Weapon action page: Difference between revisions

Jump to navigation Jump to search
Updated area template name
No edit summary
(Updated area template name)
(95 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 =
}}{{
| #default = {{PageSeo
#vardefine: icon | {{{icon | {{#var:name}} Icon.png }}}
  | image = {{#lvar:controllericon}}
  | description = {{{seo description|{{{description|}}}}}}
  }}
}}
}}
[[File:{{#var:icon}}|frameless|right]]
__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}}
 
{{{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}}}}}}}
{{#switch: {{{damage|}}}
}} {{#if: {{{hit cost|}}} |
| =
; Cost on hit:
| weapon =
: {{InfoBlob|{{ResourceList|{{{hit cost}}}}}}}
Damage:
}} {{#if: {{{damage|}}} |
{{InfoBlob | Normal Weapon Damage }}
; Damage:
| #default =
: {{DamageInfo | {{{damage}}} | {{{damage type}}} | modifier = {{{damage modifier|}}} }}
Damage:
}} {{#if: {{{extra damage|}}} |
{{DamageInfo | {{{damage}}} | {{{damage type}}} | modifier = {{{damage modifier|}}} }}
: + {{DamageInfo | {{{extra damage}}} | {{{extra damage type}}} | con = {{{extra damage con|}}} }}
}} {{#if: {{{attack roll|}}} |
}} {{#if: {{{extra damage 2|}}} |
* {{Attack Roll}}
: + {{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|}}} |
}} {{#if: {{{range m|}}} {{{range ft|}}} |
* {{Range | m = {{{range m}}} | ft = {{{range ft}}} }}
: {{Range | m = {{{range m}}} | ft = {{{range ft}}} }}
}} {{#if: {{{range|}}} |
}} {{#if: {{{range|}}} |
* {{Range | {{{range | {{{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|}}} |
}} {{#if: {{{recharge|}}} |
* {{Recharge | {{{recharge}}} }}
: {{Recharge | {{{recharge}}} }}
}} {{#if: {{{condition|}}} | {{blank}}
}}
}}
</div>
 
{{clear}}
 
</div>
{{#if: {{{variants|}}} |
== Variants ==


== Conditions ==
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{#invoke: ParseList | main | {{{variants}}} | type = htmlListNoBullets | useTemplate = SAI/fixed }}
</div>


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


}} {{#switch: {{{this is an example|}}}
== Condition: {{{condition2}}} ==
| yes =  
| #default = [[Category:Actions]] [[Category:Weapon Actions]]
}}</includeonly><noinclude>
Examples follow.


= Piercing Strike =
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
 
{{Condition | {{{condition2}}}
{{WeaponActionPage
| save = {{{condition2 save|}}}
| name = Piercing Strike
| dc = {{{condition2 dc|}}}
| weapon types = daggers, pikes, rapiers, shortswords, tridents
| duration = {{{condition2 duration|}}}
| description = Stab an enemy and possibly inflict [[Gaping Wounds (Condition)|Gaping Wounds]]. [[List_of_Creature_Types#Undead|Undead]] and [[List_of_Creature_Types#Construct|Constructs]] can't suffer '''Gaping Wounds'''.
| damage = weapon
| range = weapon
| attack roll = yes
| recharge = Short Rest
| condition = Gaping Wounds
| condition save = CON
| condition duration = 2
| 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
| damage = 1d4
| damage type = Bludgeoning
| damage modifier = Strength
| attack roll = yes
| range = melee
| 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