Editing Template:DataProp/docGive feedback
Jump to navigation
Jump to search
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 1: | Line 1: | ||
== Usage == | == Usage == | ||
A shorthand template to retrieve raw technical values from datamined game data. Searches across abilities, heroes, and items automatically | A shorthand template to retrieve raw technical values from datamined game data. Searches across abilities, heroes, and items automatically. | ||
Powered by [[Module:GameData|Module:GameData]]. | Powered by [[Module:GameData|Module:GameData]]. | ||
== Examples == | |||
<pre style="width:50%"> | |||
{{DataProp|Drifter|BaseHealthRegen}} | |||
{{DataProp|Mo & Krill|BulletsPerShot}} | |||
{{DataProp|Singularity|DPS}} | |||
{{DataProp|Grit|BarrierDuration}} | |||
</pre> | |||
;Hero property (base health regen for Drifter) | |||
: {{DataProp|Drifter|BaseHealthRegen}} | |||
;Weapon property (bullets per shot for Mo & Krill) | |||
: {{DataProp|Mo & Krill|BulletsPerShot}} | |||
;Ability property (DPS for Singularity) | |||
: {{DataProp|Singularity|DPS}} | |||
;Item property (barrier duration for Grit) | |||
: {{DataProp|Grit|BarrierDuration}} | |||
Dot notation is supported for nested properties (e.g. <code>Scale.Value</code>). Tables with a <code>Value</code> field are automatically unwrapped. | Dot notation is supported for nested properties (e.g. <code>Scale.Value</code>). Tables with a <code>Value</code> field are automatically unwrapped. | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| Line 14: | Line 31: | ||
"1": { | "1": { | ||
"label": "Entity name", | "label": "Entity name", | ||
"description": "Name of the ability, hero, or item | "description": "Name of the ability, hero, or item.", | ||
"type": "string", | "type": "string", | ||
"required": true, | "required": true, | ||
"example": "Singularity, Drifter, Grit | "example": "Singularity, Drifter, Grit" | ||
}, | }, | ||
"2": { | "2": { | ||
"label": "Property", | "label": "Property", | ||
"description": "Property key to retrieve. Supports dot notation for nested values | "description": "Property key to retrieve. Supports dot notation for nested values.", | ||
"type": "string", | "type": "string", | ||
"required": true, | "required": true, | ||
"example": "DPS, BaseHealthRegen, | "example": "DPS, BaseHealthRegen, BarrierDuration" | ||
} | } | ||
}, | }, | ||
"format": "inline", | "format": "inline", | ||
"paramOrder": ["1", "2 | "paramOrder": ["1", "2"], | ||
"description": "Retrieves a raw data value from abilities, heroes, items | "description": "Retrieves a raw data value from abilities, heroes, or items." | ||
} | } | ||
</templatedata> | </templatedata><includeonly>[[Category:Data templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | ||
<includeonly>[[Category:Data templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | |||