Editing Template:AbilitySection/doc

Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 5: Line 5:
On narrow viewports the two columns stack vertically via CSS flex-wrap. Styles are loaded from [[Template:AbilitySection/styles.css]] via TemplateStyles.
On narrow viewports the two columns stack vertically via CSS flex-wrap. Styles are loaded from [[Template:AbilitySection/styles.css]] via TemplateStyles.


An interaction-hint rail is generated automatically between the card and the details panel: small item icons showing how the ability interacts with items, driven by [[Module:AbilityHints]].
Intended to replace [[Template:Ability tabs]] on hero pages. Editors place four of these blocks in sequence, one per ability, each under its own <code>=== Ability Name ===</code> heading directly on the hero page.


Tab visibility rules:
Tab visibility rules:
* Only tabs with content are shown.
* Only tabs with content are shown.
* A <code>Show All</code> tab is appended automatically if two or more tabs have content.
* A <code>Show All</code> tab is appended automatically if two or more tabs have content.
* If no content parameters are provided, no details panel is rendered at all — only the ability card (and its hint rail, if any).
* If no content parameters are provided, no details panel is rendered at all — only the ability card.


=== Parameters ===
=== Parameters ===
Line 32: Line 32:
"description": "Wikitext for the Notes tab.",
"description": "Wikitext for the Notes tab.",
"example": "* Can be detonated by [[Melee Attack|melee attacks]].",
"example": "* Can be detonated by [[Melee Attack|melee attacks]].",
"type": "string",
"required": false
},
"interactions": {
"description": "Wikitext for the Interactions tab.",
"example": "* Cast range is not affected by [[Ability Range]] increases.",
"type": "string",
"type": "string",
"required": false
"required": false
Line 38: Line 44:
"description": "Wikitext for the Tips tab.",
"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",
"required": false
},
"interactions": {
"description": "Wikitext for the Interactions tab. Use {{AbilityInteraction}} blocks.",
"example": "{{AbilityInteraction | interaction = stun | text = ... }}",
"type": "string",
"type": "string",
"required": false
"required": false
Line 52: Line 52:
"ability_num",
"ability_num",
"notes",
"notes",
"tips",
"interactions",
"interactions"
"tips"
],
]
"description": "Generates ability cards in hero pages. Uses Ability card v2/Card"
}
}
</templatedata>
</templatedata>
Line 62: Line 61:


<pre>
<pre>
=== Call Bell ===
{{AbilitySection
{{AbilitySection
| hero_name  = The Doorman
| hero_name  = The Doorman
Line 67: Line 68:
| notes      =
| notes      =
* Bells can be detonated by [[Melee Attack|melee attacks]].
* Bells can be detonated by [[Melee Attack|melee attacks]].
| 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.
| interactions =
{{AbilityInteraction
| interaction = debuff resist
| text      = Debuff Resist shortens duration of [[Movement Slow|move slow]] and accuracy debuff.
}}
}}
}}
</pre>
</pre>
=== Call Bell ===


{{AbilitySection
{{AbilitySection
Line 82: Line 82:
| notes      =
| notes      =
* Bells can be detonated by [[Melee Attack|melee attacks]].
* Bells can be detonated by [[Melee Attack|melee attacks]].
| 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.
| interactions =
{{AbilityInteraction
| interaction = debuff resist
| text        = Debuff Resist shortens duration of [[Movement Slow|move slow]] and accuracy debuff.
}}
}}
}}


Line 94: Line 91:


* [[Module:AbilitySection]] — Lua backend
* [[Module:AbilitySection]] — Lua backend
* [[Module:AbilityHints]] — interaction-hint icons rendered beside the card
* [[Template:AbilitySection/styles.css]] — CSS
* [[Template:AbilitySection/styles.css]] — CSS
<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Deadlock:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template

Pages included on this page:

This page is a member of a hidden category: