Thread:Mhommer/@comment-5153939-20160123004341/@comment-15636815-20160125063413

Bent and Terrier are correct. It looks to me like they're missing some details, though, which could cause confusion. Just in case, please allow me to fill in the details.

Your goal, if I understand correctly, is to call a template, giving it parameters A, B, and C, and nothing else. You then wish the template to display A, B, C, and two calculations using A, B, and C.

This is definitely doable. In fact, it's exactly the type of thing that templates were built to do. Your input could be as simple as:

The simplest way to display the results is with no formatting at all. |- {

In other words, you do not need to supply the formulae when you call the template because the formulae are built into the template itself.

Parser function  is designed to display numbers in the format appropriate to the language of the site. In our case, that's US English.

Template decimals displays numbers with trailing decimals (such as ). This template will accept a raw number, a parameter, or an expression without the which makes things much easier.

Template formdec is a shortcut I created to combine the effects of  and. The input goes first to decimals, which means your input may be an expression, if you wish. The output from  then goes to , which then returns the desired output.

Template fd is a shortcut I created for formdec because, when you're calling the same template over and over on one page, two characters are better than seven. ;-)