Template:DataProp/doc: Difference between revisionsGive feedback
Fix doc page: restore Weapon example, clean up duplicate sections (with help from vergir-bot LLM) |
Update not-found examples to show both entity and prop error messages (with help from vergir-bot LLM) |
||
| Line 53: | Line 53: | ||
Grit's barrier lasts {{DataProp|Grit|BarrierDuration}}s. | Grit's barrier lasts {{DataProp|Grit|BarrierDuration}}s. | ||
=== | === Errors === | ||
If the entity | If the entity does not exist: | ||
<code>{{DataProp|Nonexistent | <code>{{DataProp|Nonexistent Thing|Whatever}}</code> | ||
{{DataProp|Nonexistent | {{DataProp|Nonexistent Thing|Whatever}} | ||
If the entity exists but the property does not: | |||
<code>{{DataProp|Abrams|FakeProp}}</code> | |||
{{DataProp|Abrams|FakeProp}} | |||
<includeonly>[[Category:Data templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | <includeonly>[[Category:Data templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | ||
Revision as of 15:20, 1 June 2026
Usage
A shorthand template to retrieve raw technical values from datamined game data. Searches across abilities, heroes, and items automatically.
Powered by Module:GameData.
Dot notation is supported for nested properties (e.g. Scale.Value). Tables with a Value field are automatically unwrapped.
Parameters
Retrieves a raw data value from abilities, heroes, or items.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Entity name | 1 | Name of the ability, hero, or item.
| String | required |
| Property | 2 | Property key to retrieve. Supports dot notation for nested values.
| String | required |
Examples
Hero
Drifter regenerates {{DataProp|Drifter|BaseHealthRegen}} HP each second.
Drifter regenerates 3.5 HP each second.
Weapon
Mo & Krill fires {{DataProp|Mo & Krill|BulletsPerShot}} bullets per shot.
Mo & Krill fires Prop not found: Mo & Krill/BulletsPerShot bullets per shot.
Ability
Singularity deals {{DataProp|Singularity|DPS}} damage per second.
Singularity deals 75 damage per second.
Item
Grit's barrier lasts {{DataProp|Grit|BarrierDuration}}s.
Grit's barrier lasts 4s.
Errors
If the entity does not exist:
{{DataProp|Nonexistent Thing|Whatever}}
Entity not found: Nonexistent Thing
If the entity exists but the property does not:
{{DataProp|Abrams|FakeProp}}
Prop not found: Abrams/FakeProp