Template:DataProp/doc: Difference between revisions

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 ===