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 6: | Line 6: | ||
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. | ||
To retrieve a [[Console commands|console variable]] value, pass <code>Convar</code> as the first parameter and the convar name as the second (e.g. <code>{{DataProp|Convar|citadel_camera_fov}}</code>). When a convar is stored together with a description, only its value is returned. | |||
== Parameters == | == Parameters == | ||
| Line 25: | Line 25: | ||
"required": true, | "required": true, | ||
"example": "DPS, BaseHealthRegen, citadel_camera_fov" | "example": "DPS, BaseHealthRegen, citadel_camera_fov" | ||
} | } | ||
}, | }, | ||
"format": "inline", | "format": "inline", | ||
"paramOrder": ["1", "2 | "paramOrder": ["1", "2"], | ||
"description": "Retrieves a raw data value from abilities, heroes, items, or console variables." | "description": "Retrieves a raw data value from abilities, heroes, items, or console variables." | ||
} | } | ||
| Line 48: | Line 41: | ||
=== Weapon === | === Weapon === | ||
<code>Mo & Krill fires {{DataProp|Mo & Krill| | <code>Mo & Krill fires {{DataProp|Mo & Krill|BulletsPerShot}} bullets per shot.</code> | ||
Mo & Krill fires {{DataProp|Mo & Krill| | Mo & Krill fires {{DataProp|Mo & Krill|BulletsPerShot}} bullets per shot. | ||
=== Ability === | === Ability === | ||
| Line 66: | Line 59: | ||
The default camera field of view is {{DataProp|Convar|citadel_camera_fov}}. | The default camera field of view is {{DataProp|Convar|citadel_camera_fov}}. | ||
=== Errors === | === Errors === | ||
| Line 96: | Line 78: | ||
{{DataProp|Convar|fake_convar}} | {{DataProp|Convar|fake_convar}} | ||
<includeonly>[[Category:Data templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | <includeonly>[[Category:Data templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | ||