Template:WData: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
(Added parameter 3 default value)
No edit summary
Line 12: Line 12:
</onlyinclude>
</onlyinclude>
==Purpose==
==Purpose==
WData is a template for pages regarding weapons, specifically those in ''[[Cadence of Hyrule]]''. It is mainly used to keep weapon data tables uniform across pages.
WData is a template for pages regarding weapons, specifically those in ''[[Cadence of Hyrule]]''. It is mainly used to keep weapon data tables uniform across pages through [https://en.wikipedia.org/wiki/Abstraction_(computer_science) abstraction].


==Usage==
==Usage==
Line 19: Line 19:
{{Usage|range|power}}
{{Usage|range|power}}


WData also has a third parameter. <code>Ability</code> describes any special properties pertaining to the weapon. Ability defaults to None if it is not used.
WData also has a third parameter. <code>Ability</code> describes any special properties pertaining to the weapon '''not mentioned in range or power'''. Ability defaults to None if it is not used.


{{Usage|range|power|ability}}
{{Usage|range|power|ability}}


{{Cat|Formatting Templates}}
{{Cat|Formatting Templates}}

Revision as of 13:45, April 4, 2021

Property Value
Range {{{1}}}
Power {{{2}}}
Ability None

Purpose

WData is a template for pages regarding weapons, specifically those in Cadence of Hyrule. It is mainly used to keep weapon data tables uniform across pages through abstraction.

Usage

WData should always have at least two parameters: range describes the reach of the weapon, and power describes the base weapon strength.

{{WData| range | power }}

WData also has a third parameter. Ability describes any special properties pertaining to the weapon not mentioned in range or power. Ability defaults to None if it is not used.

{{WData| range | power | ability }}