Thread:Jens Ingels/@comment-24416108-20141128155015/@comment-3271569-20141129144800

You can't recall the template parameters because they done by php (serverside). Local JavaScript only works on the client side.

Whe actualy don't really need the recruit variable since whe can just take a if statement. It will all depends on the formule itself how whe do it. I checked the 3 formules and I came with this functions as result. I currently didn't add the upgrade calculations to it yet.

I don't really have the feeling you have a good js knowledge. I can try to explane you some part but I think a example would be a lot more comprehensible for you. You keep reffering to wiki template code. But javascript is a whole different language and almost has no interaction with wikia coding.

Actualy the thing wikia coding does is communication with the php & transfer this to the html.

If a event apears with the onchange command the content automaticly if the function is called correctly.