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

Jump to navigation Jump to search
m Reordered and added description
mNo edit summary
Line 32: Line 32:
},
},
"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 60:
"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 87:
"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"