Template:Paramsum

This template adds 1 to a total for each defined parameter it is given, and then returns that total. This provides an easy way to find the number of defined parameters a template is given, which can be used for various purposes. Example of use within another template's code:. Note that it is not necessary to use the extra pipe to check for definition of parameters passed to this template because they are already checked here. Currently up to 100 parameters can be used, but it would be very easy to add support for more.