Template:DataProp/doc: Difference between revisionsGive feedback
Restructure documentation: params above examples, contextual examples, add not-found case (with help from vergir-bot LLM) |
m minor doc fixes |
||
| Line 4: | Line 4: | ||
Powered by [[Module:GameData|Module:GameData]]. | Powered by [[Module:GameData|Module:GameData]]. | ||
For nested properties use dot notation e.g. <code>LevelScaling.TechPower</code>. It also automatically unwraps things like <code>DPS.Value</code>. | |||
== Parameters == | == Parameters == | ||
| Line 34: | Line 34: | ||
=== Hero === | === Hero === | ||
<code>Drifter regenerates {{DataProp|Drifter|BaseHealthRegen}} HP each second.</code> | <code>Drifter regenerates {{DataProp|Drifter|BaseHealthRegen}}HP each second.</code> | ||
Drifter regenerates {{DataProp|Drifter|BaseHealthRegen}} HP each second. | Drifter regenerates {{DataProp|Drifter|BaseHealthRegen}}HP each second. | ||
=== Weapon === | === Weapon === | ||
Revision as of 12:35, 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.
For nested properties use dot notation e.g. LevelScaling.TechPower. It also automatically unwraps things like DPS.Value.
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.5HP 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.
Not found
If the entity or property does not exist, the template returns an empty string.
{{DataProp|Nonexistent Item|FakeProperty}}
Result: "Entity not found: Nonexistent Item"