Forum:Use of Template Parameters with Expr function

Hi there ComCentral, I've got a little bit of a dilemma here. I'm wanting to get the #expr function to read from a value elsewhere in the template, but I can't seem to get it to accept the value as a parameter. This won't do, as it has to be an input value.

The specific thing I'm trying to do is detailed below:

I'm wanting to check the values of a single number, say 2152734, and convert that to four different values. The values would be categorised as below.

I hope you get what I'm saying here, if anyone can help me out, I'd be extremely grateful. This is purely to solve the problem of templates within templates on my favorite wiki. Not everyone prefers to edit using source mode. ^ᴗ^


 * Do you have a start? If so, a link would help determine what issue you're having. Rappy 09:34, March 21, 2012 (UTC)


 * Sorry for the slow reply, yup I've just finished up on my draft of the maths here.


 * See if that works for you.  Rappy 10:21, March 21, 2012 (UTC)