Template:AbilitySection/doc: Difference between revisions

Vergir (talk | contribs)
Improve doc: add templatedata, type column, inline examples, live render (with help from vergir-bot LLM)
Vergir (talk | contribs)
m (ninjafix)
Line 20: Line 20:
"hero_name": {
"hero_name": {
"description": "Hero name, passed to Template:Ability card v2.",
"description": "Hero name, passed to Template:Ability card v2.",
"example": "Abrams",
"example": "Doorman",
"type": "string",
"type": "string",
"required": true
"required": true
Line 31: Line 31:
},
},
"notes": {
"notes": {
"description": "Wikitext for the Notes tab. Supports bullet points, links, and templates. If taller than the max-height in the stylesheet, the panel will scroll rather than expand.",
"description": "Wikitext for the Notes tab.",
"example": "* Bells can be detonated by [[Melee Attack|melee attacks]].\n* Can be shot to detonate early.",
"example": "* Can be detonated by [[Melee Attack|melee attacks]].",
"type": "string",
"type": "string",
"required": false
"required": false
},
},
"interactions": {
"interactions": {
"description": "Wikitext for the Interactions tab. Typically one or more {{AbilityInteraction}} calls.",
"description": "Wikitext for the Interactions tab.",
"example": "{{AbilityInteraction|type=counterspell|text=Counterspell blocks the slow debuff but not the damage.}}",
"example": "* Cast range is not affected by [[Ability Range]] increases.",
"type": "string",
"type": "string",
"required": false
"required": false
},
},
"tips": {
"tips": {
"description": "Wikitext for the Tips tab. Supports bullet points, links, and templates.",
"description": "Wikitext for the Tips tab.",
"example": "* T3 talent allows stacking several bells for high damage traps.",
"example": "* T3 talent allows stacking several bells for high damage traps.",
"type": "string",
"type": "string",
Line 82: Line 82:
| notes      =
| notes      =
* Bells can be detonated by [[Melee Attack|melee attacks]].
* Bells can be detonated by [[Melee Attack|melee attacks]].
* Can be shot to detonate early.
| interactions =
* Cast range is not affected by [[Ability Range]] increases
| tips        =
| tips        =
* T3 talent allows stacking several bells for high damage traps.
* T3 talent allows stacking several bells for high damage traps.