Template:Feature box: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Fixed order of link and name, and added image link replaced chara)
mNo edit summary
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{TooltipBox|{{SAI|{{{link|{{{name}}}}}}|{{{name}}}|w=40}}|image={{{image name|{{#replace:{{#replace:{{#replace:{{#replace:{{{link|{{{name}}}}}}|:|}}|/|}}|(|}}|)|}}.webp}}}|w=100|
<includeonly>{{#cargo_query: tables = spells
{{{1}}}
| fields = _pageName = link,
  name,
  image,
  controller_icon,
  action_type,
  damage,
  damage_type,
  damage_modifier,
  extra_damage,
  extra_damage_type,
  extra_damage_modifier,
  extra_damage_2,
  extra_damage_type_2,
  extra_damage_modifier_2,
  extra_damage_3,
  extra_damage_type_3,
  extra_damage_modifier_3,
  description,
  extra_description,
  save,
  spell_range = range,
  aoe,
  aoe_size = area,
  recharge,
  CONCAT("{{{item|}}}")=item
| where = _pageName = "{{#replace: {{{link|{{{name|{{{1}}}}}}}}} | " | \" }}"
| format = template
| template = Feature box/format
| named args = yes
| limit = 1
| order by = _ID
| more results text=
| default = [[{{{1}}}]][[Category:Pages with unknown abilities]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Creates a box to display enemy features such as special abilities and attacks. It is intended for use on creature pages, rather than being pages of their own. For player features, use [[Template:ActionPage]].
Creates a box to display a creature's special abilities, attacks, and spells. It is intended for use on creature pages, rather than being pages of their own.  


The icon uses the [[Template:SAI|SAI]] template. The version without integrated SAI is [[Template:TooltipBox]]. If no image name is provided, the template will attempt to use {{c|NAME.webp}} as the righthand-side image.
You can use it with any weapon action, spell, or class action.


If the link name contains {{InfoBlob|:}}, {{InfoBlob|/}}, {{InfoBlob|(}} or {{InfoBlob|)}}, they will be removed in the icon name.
== Examples ==


Copy-ready example:<pre>
{{Template demo
{{Feature box
| style = list
|name=
| caption 1 = Spell example.
|link=
| <nowiki>{{Feature box|Hypnotic Pattern}}</nowiki>
|image name=
| caption 2 = Class action example.
|
| <nowiki>{{Feature box|Multiattack (Spaw)}}</nowiki>
| caption 3 = Weapon action example.
| <nowiki>{{Feature box|Hellflame Cleave|item=Hellfire Greataxe}}</nowiki>
| caption 4 = Example with many damage parameters
| <nowiki>{{Feature box|Multiattack (Water Elemental)}}</nowiki>
}}
}}
</pre>


Example:
{{Feature box
|name=Strengthened Shillelagh
|image name=Strengthened Shillelagh.webp
|* The Dryad's [[Quarterstaff|staff]] or [[club]] deals {{DamageText|4d8|Bludgeoning}} damage, and uses your [[Ability Score Modifier|Spellcasting Ability]] for {{Attack Roll}}s.
}}
Example with alias link:
{{Feature box|name=Death Burst|link=Death Burst (Mud)
|{{DamageInfo|4d6|Bludgeoning}}
* Explode in a burst of sticky mud. It dries instantly on any nearby creatures not made of mud, {{Cond|Muddy|Restraining}} and hurting them for {{DamageText|4d6|Bludgeoning}} damage.
}}
==Template data==
==Template data==


Line 40: Line 63:
"type": "content",
"type": "content",
"required": true
"required": true
},
"name": {
"description": "The name of the ability. ",
"type": "string",
"required": true
},
"image name": {
"description": "An override for the image to use on the right-hand side.",
"default": "{{{name}}}.webp"
}
}
},
},
"paramOrder": [
"paramOrder": [
"name",
"image name",
"1"
"1"
]
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Revision as of 11:23, 17 January 2025

Creates a box to display a creature's special abilities, attacks, and spells. It is intended for use on creature pages, rather than being pages of their own.

You can use it with any weapon action, spell, or class action.

Examples

Spell example.

Markup
{{Feature box|Hypnotic Pattern}}
Renders as
Hypnotic Pattern.webp
Hypnotic Pattern Hypnotic Pattern

Hypnotise Hypnotise creatures that can see the pattern. They cannot attack you. They cannot move nor act.

This spell can be cast while you are Silenced Silenced.

WIS Save
 Range: 18 m / 60 ft
AoE: 9 m / 30 ft (Radius)

Class action example.

Markup
{{Feature box|Multiattack (Spaw)}}
Renders as
Multiattack Earth Elemental.webp
Multiattack Multiattack
Damage: 8~64 + modifiers

Aim multiple attacks at a target.

 Melee: 1.5 m / 5  ft

Weapon action example.

Markup
{{Feature box|Hellflame Cleave|item=Hellfire Greataxe}}
Renders as
Hellflame Cleave.webp
Hellflame Cleave Hellflame Cleave   –  Hellfire Greataxe
Damage: 6~32 + modifiers
D12 Slashing.pngD6 Fire.pngD6 Fire.png
+ 1d6Damage TypesFire
+ 2d6Damage TypesFire

Spew hellish flames and strike your foes.

DEX Save
AoE: 3 m / 10 ft (Cone)
Recharge: Short rest

Example with many damage parameters

Markup
{{Feature box|Multiattack (Water Elemental)}}
Renders as
Multiattack Water Elemental.webp
Multiattack Multiattack
Damage: 16~40
D4 Bludgeoning.pngD4 Cold.pngD4 Bludgeoning.pngD4 Cold.png
+ 2d4Damage TypesCold
+ 2d4 + 4Damage TypesBludgeoning
+ 2d4Damage TypesCold

Descend on a creature to buffet it with your hardy aqueous fists.

Chilled Chilled targets take double damage.

 Melee: 1.5 m / 5  ft
Recharge: Per turn

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
11

The content of the feature box.

Contentrequired