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

m Reordered and added description
No edit summary
 
(4 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 80: Line 91:
"description": "Display element for a main ability attribute, of which heroes usually have between 1 and 3 in their ability cards",
"description": "Display element for a main ability attribute, of which heroes usually have between 1 and 3 in their ability cards",
"paramOrder": [
"paramOrder": [
"value",
"key",
"key",
"value",
"label",
"type",
"type",
"scale_type",
"scale_type",
"scale_value",
"scale_value",
"label",
"title",
"title",
"icon_color",
"icon",
"icon",
"icon_color",
"icon_size",
"icon_size",
"icon_link"
"icon_link"