Board Thread:General Discussion/@comment-667748-20130515090233/@comment-6003396-20130729091845

I've finished what I described above, with the DB within ArmorSetBox: User:Daifukkatsu/Sandbox/Test2. Note that the code has yet to be moved to the template itself.

Results: User:Daifukkatsu/Sandbox/Test/Testing

Although I tried to make the code as efficient as possible, I still may not have implemented things in the "best" way - there might be superfluous code. If this is the case, do not hesitate to alter things.

Since there is currently only one armor piece that has the DB code in place, you will have to use your imagination for the examples. Input is currently the following: To get the standard non-upgraded version:
 * head = Paladin Helm
 * chest = Paladin Helm
 * hands = Paladin Helm
 * legs = Paladin Helm

Upgraded:
 * head = Paladin Helm | headlvl  = 5
 * chest = Paladin Helm | chestlvl = 5
 * hands = Paladin Helm | handslvl = 5
 * legs = Paladin Helm | legslvl  = 5

Set with no hands armor (e.g. Hollow Warrior Set) (any piece row can be omitted with "none")
 * head = Paladin Helm
 * chest = Paladin Helm
 * hands = none
 * legs = Paladin Helm

Having a particular piece blank, e.g. "head =", or just the template itself with no input whatsoever, will be interpreted as the piece or pieces having missing data, and so it will just display for each stat entry of the piece(s).

For something like a user custom armor comparison, you can also have a particular piece or pieces be "unequipped", which will display each stat as " 0.0 ".

Thinking even further along these lines, there could also be a way to show the endurance or total equip load needed for a fast/medium roll, with a way to enter the weight of all equipped weapons. Although for something like this, I might just eventually create an entirely new template.