(Page créée avec « <includeonly>{{#expr:{{#if:{{{1|}}}|1|0}}+{{#if:{{{2|}}}|1|0}}+{{#if:{{{3|}}}|1|0}}+{{#if:{{{4|}}}|1|0}}+{{#if:{{{5|}}}|1|0}}+{{#if:{{{6|}}}|1|0}}+{{#if:{{{7|}}}|1|0}}+{{#if:{{{9|}}}|1|0}}+{{#if:{{{9|}}}|1|0}}+{{#if:{{{10|}}}|1|0}}+{{#if:{{{11|}}}|1|0}}+{{#if:{{{12|}}}|1|0}}}}</includeonly><noinclude>{{/doc}}</noinclude> ») |
(Aucune différence)
|
Version actuelle datée du 1 mai 2023 à 10:11
This documentation is transcluded from Modèle: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.