Template:Weapon action: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(add tdata)
(Trying to solve quoting issue when Template:Condition sources leads to here.)
Line 1: Line 1:
<includeonly>{{#cargo_query: tables = weapon_actions
<includeonly>{{#cargo_query: tables = weapon_actions
| fields = _pageName = link, name, icon, action_type, description, CONCAT({{{2|40}}})=size
| fields = _pageName = link, name, icon, action_type, description, CONCAT({{{2|40}}})=size
| where = name = '{{#replace: {{{1}}} | ' | '' }}'
| where = name = '{{#replace: {{{1}}} | ' | \' }}'
| format = template
| format = template
| template = WeaponAction/Format
| template = WeaponAction/Format
Line 21: Line 21:


{{WeaponAction | Tenacity }}
{{WeaponAction | Tenacity }}
----
Usage:
<pre>
{{WeaponAction | Tiger's Bloodlust }}
</pre>
Result:
{{WeaponAction | Tiger's Bloodlust }}


[[Category:Templates]]
[[Category:Templates]]

Revision as of 02:32, 6 November 2023

Use this to display a weapon action. Examples follow.

This template just runs the Cargo query; see Template:WeaponAction/Format for the formatting.


Usage:

{{WeaponAction | Tenacity }}

Result:

Error: Table weapon_actions not found.

Usage:

{{WeaponAction | Tiger's Bloodlust }}

Result:

Error: Table weapon_actions not found.

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
name1

The name of the weapon action, without (Weapon Action)

Stringrequired
size2

The size of the icon.

Default
40
Numberoptional