Template:Properties/doc

This template needs optimizing. Function is as follows:

1) Calls for Template:Properties sort and provides Properties from the Weapon's page one by one. 2) Then checks the returned PropertygrpX values against all 10 Property groups. Empty Propertygrps are evaluated as empty strings and don't affect the result. 3) Only when matched, calls for Properties' Values from the Weapon's page and colors them white. 4) Also checks the name of the page where you used this Template. If the name is the Weapon's page (or a subpage of the Weapon's page, like Templar Sword/Tooltip), it applies float:right to all the values (since that's how the values are ingame in the tooltips - floated to the right). If the name is not the Weapon's page (like "Swords"), it doesn't apply float:right to the Values.

Only one parameter is used - Weapon's page name.

This template requires that the Weapon's page name has the weapon's data entered as parameters. Example using a switch:

This template is used within Template:Weapon, but can also be used to simply load Properties and their Values. For example, here's a simple div with border and we load the Properties of Templar Sword: