Want to contribute? Join the Discord and ask for the editor role.
Template:COUNTA/doc: Difference between revisions
Template page
RTGame>Alistar Bot m (→top: Hygiene) |
m (1 revision imported) |
Latest revision as of 16:52, 2 May 2021
This is a documentation subpage for Template:COUNTA.It contains usage information, categories, and other content that is not part of the original template page.
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.