Template:DataProp/doc: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
Vergir (talk | contribs)
m minor doc fixes
Vergir (talk | contribs)
Update not-found example to show error message (with help from vergir-bot LLM)
Line 38: Line 38:
Drifter regenerates {{DataProp|Drifter|BaseHealthRegen}}HP each second.
Drifter regenerates {{DataProp|Drifter|BaseHealthRegen}}HP each second.


=== Weapon ===
=== Not found ===
<code>Mo &amp; Krill fires &#123;&#123;DataProp|Mo & Krill|BulletsPerShot&#125;&#125; bullets per shot.</code>
If the entity or property does not exist, the template returns a visible error message.


Mo & Krill fires {{DataProp|Mo & Krill|BulletsPerShot}} bullets per shot.
<code>&#123;&#123;DataProp|Nonexistent Item|FakeProperty&#125;&#125;</code>
 
{{DataProp|Nonexistent Item|FakeProperty}}
 
<includeonly>[[Category:Data templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>


=== Ability ===
=== Ability ===

Revision as of 12:38, 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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Entity name1

Name of the ability, hero, or item.

Example
Singularity, Drifter, Grit
Stringrequired
Property2

Property key to retrieve. Supports dot notation for nested values.

Example
DPS, BaseHealthRegen, BarrierDuration
Stringrequired

Examples

Hero

Drifter regenerates {{DataProp|Drifter|BaseHealthRegen}}HP each second.

Drifter regenerates 3.5HP each second.

Not found

If the entity or property does not exist, the template returns a visible error message.

{{DataProp|Nonexistent Item|FakeProperty}}

Entity not found: Nonexistent Item

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"