Template:COUNTA: Difference between revisions

Template page
m (→‎top: Hygiene, replaced: {{documentation}} → {{/doc}})
 
m (1 revision imported: New Files)
 
(No difference)

Latest revision as of 11:54, 24 March 2024

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:COUNTA/doc. Changes can be proposed in the talk 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.

🍪 We use cookies to keep session information to provide you a better experience.