Template:Ability card v2/Card/AltBox/doc: Difference between revisionsGive feedback
Jump to navigation
Jump to search
32s
m Added some examples |
Gammaton32 (talk | contribs) No edit summary |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
== Overview == | |||
Display element for an alternate ability, similar to main box attributes. Can be any number of these on an ability card | Display element for an alternate ability attribute, similar to main box attributes. Can be any number of these on an ability card | ||
=== Examples === | === Examples === | ||
==== Multiple Alt boxes in a container ==== | ==== Multiple Alt boxes in a container ==== | ||
<pre><nowiki> | |||
<div ...> | |||
<div ...> | |||
{{Ability card v2/Card/AltBox | |||
| value=15 | |||
| key=TechResist | |||
| type=tech_armor_up | |||
}} | |||
{{Ability card v2/Card/AltBox | |||
| value=50 | |||
| key=DPS | |||
| type=bullet_damage | |||
| icon_color=Brown | |||
}} | |||
</div> | |||
</div></nowiki> | |||
</pre> | |||
<div style="font-size: 0.9rem; line-height: 1.4; font-family: 'Retail Demo Regular', 'PT Serif', serif; color: #FFEFD7; display:flex; flex-direction:column; background-color: #2A2A2A; align-items: center; width: 100%; max-width: 500px;"> | <div style="font-size: 0.9rem; line-height: 1.4; font-family: 'Retail Demo Regular', 'PT Serif', serif; color: #FFEFD7; display:flex; flex-direction:column; background-color: #2A2A2A; align-items: center; width: 100%; max-width: 500px;"> | ||
<div style="display:flex; flex-direction:row; flex-wrap: wrap; justify-content: center; align-items: center; background-color: #2A2A2A; width: calc(97% - 19px); min-width: 267px; padding: 0 4px 0 4px; column-gap: 15px"> | <div style="display:flex; flex-direction:row; flex-wrap: wrap; justify-content: center; align-items: center; background-color: #2A2A2A; width: calc(97% - 19px); min-width: 267px; padding: 0 4px 0 4px; column-gap: 15px"> | ||
| Line 21: | Line 38: | ||
==== In an Ability Card ==== | ==== In an Ability Card ==== | ||
{{ | <pre><nowiki>{{Ability card v2 | ||
| hero_name=Vindicta | |||
| ability_num=3 | |||
}}</nowiki></pre> | |||
{{Ability card v2 | |||
| hero_name=Vindicta | |||
| ability_num=3 | |||
}} | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"scale_type": { | "scale_type": { | ||
"description": "Type of attribute scaling | "description": "Type of attribute scaling", | ||
"example": "spirit", | "example": "spirit", | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"spirit" | "spirit", | ||
"weapon_power" | |||
] | ] | ||
}, | }, | ||
Latest revision as of 23:26, 4 July 2025
Overview
[edit source]Display element for an alternate ability attribute, similar to main box attributes. Can be any number of these on an ability card
Examples
[edit source]Multiple Alt boxes in a container
[edit source]<div ...>
<div ...>
{{Ability card v2/Card/AltBox
| value=15
| key=TechResist
| type=tech_armor_up
}}
{{Ability card v2/Card/AltBox
| value=50
| key=DPS
| type=bullet_damage
| icon_color=Brown
}}
</div>
</div>
In an Ability Card
[edit source]{{Ability card v2
| hero_name=Vindicta
| ability_num=3
}}
Crow Familiar
Your crow familiar deals impact damage, reduces their bullet resist and applies a bleed that deals damage based on the target's current health.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| value | value | Display value of the attribute
| Number | required |
| key | key | Will retrieve the attribute label from localization data based on the current selected language using "<key>_label" | String | suggested |
| label | label | Display label for attribute. Will override the use of "key" argument | String | optional |
| type | type | Attribute type - used to automatically retrieve the icon's image, link, size (but not color)
| String | suggested |
| scale_type | scale_type | Type of attribute scaling
| String | optional |
| scale_value | scale_value | Multiplier for the scaling
| Number | optional |
| icon_color | icon_color | Color of the attribute icon
| String | optional |
| icon | icon | Icon's image name. Overridden by image found via "type" parameter
| String | optional |
| icon_link | icon_link | Icon's hyperlink. Overridden by link retrieved via "type" parameter | String | optional |