Template:COUNTA/doc

Template page
Revision as of 22:03, 17 March 2020 by imported>Alistar Bot (→‎top: Hygiene)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template counts if the number of existing parameters in a template.

{{COUNTA|1|2|3|4}} gives: 4

In a template, you can use this template to count if the variable exists, for example:

If only Tapir and Bagel have value in its parameters,

{{COUNTA|{{{Tapir|}}}|{{{Bagel|}}}|{{{Dount|}}}|{{{Noodles|}}}}} gives 2.