FANDOM


{{#vardefine:count16|0}}{{#vardefine:count15|0}}{{#vardefine:count13|0}}{{#vardefine:count12|0}}{{#vardefine:count11|0}}{{#vardefine:count106|0}}{{#vardefine:count9|0}}{{#vardefine:count8|0}}{{#vardefine:count7|0}}{{#vardefine:count6|0}}{{#vardefine:count5|0}}{{#vardefine:count4|0}}{{#vardefine:count3|0}}{{#vardefine:count2|0}}{{#vardefine:count1|0}}{{#vardefine:count|Expression error: Unrecognised punctuation character "{".}}{{#var:count}}

Purpose

This template counts the number of parameters used in it. This is intended to be used to give a variable for other templates to use which need to know how many parameters are being used in them in order to have the correct coding.

Usage

To use this template, type: {{#vardefine:parameters|{{#vardefine:count16|0}}{{#vardefine:count15|0}}{{#vardefine:count13|0}}{{#vardefine:count12|0}}{{#vardefine:count11|0}}{{#vardefine:count106|0}}{{#vardefine:count9|0}}{{#vardefine:count8|0}}{{#vardefine:count7|0}}{{#vardefine:count6|0}}{{#vardefine:count5|0}}{{#vardefine:count4|0}}{{#vardefine:count3|0}}{{#vardefine:count2|0}}{{#vardefine:count1|1}}{{#vardefine:count|Expression error: Unrecognised punctuation character "{".}}{{#var:count}}}}{{#vardefine:content| }}    {{TempCounter{{#var:content}}}}

Where in place of Parameters you list all the parameters that you need to count in another template. This template currently supports up to 16 parameters. Any further parameters result in an inaccurate number.

Community content is available under CC-BY-SA unless otherwise noted.