Thread:Jens Ingels/@comment-24416108-20141128155015/@comment-24416108-20141129002751

Sure, small explanation: Units are called by template, so that would for example be to generate a unit table drawn from it's template. ( This Shows that result). However, They can be given variables, like Experience rank, and in some cases, race and beside that are things Called Mystical City Upgrades, which basically add some stats. For example, Template Call for a Cavalry could be, which would display the 2nd unit table behind the same link. When this is done, the Template uses a series of functions to calculate the right values for it's numerical stats, and I use some #ifex logic to hide or show additional abilities.

The ones I had an eye on adding input when reading would be (experience) rank(values 0,1,2,3,4), race(7 races, soon to be 8)(There are some class units that can be build of every race, but the racial different use the same template) and the mystical upgrades(around 9 options, but not all can be used, though a max of 3 per unit would be sufficient right now. Preferably able to select multiple, but that can be done with more drop down menu's, since I'm already using 3 parameters for that.)

One major difference with the LoL wikia would be that I want to use multiple of the same on the same page(max around 20), if possible. Is that possible, or should I forget that right now?(else said, will the variables interfere with other of the same kind, when used on the same page but inside a different template)

Check http://age-of-wonders-3.wikia.com/wiki/Template:Human_Cavalry?action=edit for what's going on behind - I've tried making it a bit more readable anyway - i'm pretty new to Wikia, and until recently wasn't really good at writing readable pages.

Aside from the logical funtions, the information is used by the HealthCalc, DefenseCalc, ResistanceCalc and DamageCalc functions/templates to determine the right values.

If you want a look, go:
 * 
 * 
 * 
 * 

Gloweye (talk) 00:27, November 29, 2014 (UTC)