Template:Ability card v2/Card/MainBox/doc: Difference between revisions

Created page with "<templatedata> { "params": { "title": { "description": "Title that appears above the container", "example": "On Hit:", "type": "string" }, "scale_type": { "description": "Type of attribute scaling (other scalings exist, but only \"spirit\" is currently supported)", "example": "spirit", "type": "string", "suggestedvalues": [ "spirit" ] }, "scale_value": { "description": "Multiplier for the scaling", "example": "0.5", "type":..."
 
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 8: Line 8:
},
},
"scale_type": {
"scale_type": {
"description": "Type of attribute scaling (other scalings exist, but only \"spirit\" is currently supported)",
"description": "Type of attribute scaling",
"example": "spirit",
"example": "spirit",
"type": "string",
"type": "string",
"suggestedvalues": [
"suggestedvalues": [
"spirit"
"spirit",
                "melee",
                "power_increase",
                "weapon_damage_increase",
                "weapon_power"
]
]
},
},
Line 32: Line 36:
},
},
"type": {
"type": {
"description": "Attribute type - used to automatically retrieve the icon's image, link, size, and color",
"description": "Attribute type - used to automatically retrieve the icon's image, link, size (but not color)",
"example": "damage",
"example": "damage",
"type": "string",
"type": "string",
Line 60: Line 64:
"type": "string"
"type": "string"
},
},
"icon_size": {},
"icon_size": {
"icon_link": {},
"description": "Icon's size. Overridden by size retrieved via \"type\" parameter",
"example": "12px",
"type": "string"
},
"icon_link": {
"description": "Icon's hyperlink. Overridden by link retrieved via \"type\" parameter",
"type": "string"
},
"value": {
"value": {
"description": "Display value of the attribute",
"description": "Display value of the attribute",
Line 69: Line 80:
},
},
"key": {
"key": {
"label": "Attribute key",
"description": "Will retrieve the attribute label from localization data based on the current selected language using \"<key>_label\"",
"description": "Will retrieve the label from localization data based on the current selected language using \"<key>_label\"",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
Line 78: Line 88:
"type": "string"
"type": "string"
}
}
}
},
"description": "Display element for a main ability attribute, of which heroes usually have between 1 and 3 in their ability cards",
"paramOrder": [
"value",
"key",
"label",
"type",
"scale_type",
"scale_value",
"title",
"icon_color",
"icon",
"icon_size",
"icon_link"
]
}
}
</templatedata>
</templatedata>
<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>