Editing Template:Ability card v2/Card/MainBox/doc

Jump to navigation Jump to search
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 8: Line 8:
},
},
"scale_type": {
"scale_type": {
"description": "Type of attribute scaling",
"description": "Type of attribute scaling (other scalings exist, but only \"spirit\" is currently supported)",
"example": "spirit",
"example": "spirit",
"type": "string",
"type": "string",
"suggestedvalues": [
"suggestedvalues": [
"spirit",
"spirit"
                "melee",
                "power_increase",
                "weapon_damage_increase",
                "weapon_power"
]
]
},
},
Line 36: Line 32:
},
},
"type": {
"type": {
"description": "Attribute type - used to automatically retrieve the icon's image, link, size (but not color)",
"description": "Attribute type - used to automatically retrieve the icon's image, link, size, and color",
"example": "damage",
"example": "damage",
"type": "string",
"type": "string",
Line 64: Line 60:
"type": "string"
"type": "string"
},
},
"icon_size": {
"icon_size": {},
"description": "Icon's size. Overridden by size retrieved via \"type\" parameter",
"icon_link": {},
"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 69:
},
},
"key": {
"key": {
"description": "Will retrieve the attribute label from localization data based on the current selected language using \"<key>_label\"",
"label": "Attribute key",
"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 88: Line 78:
"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>
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