« Loops - fornumargs » : différence entre les versions
De Semantic MediaWiki - Sandbox
(chg) |
(add) |
||
Ligne 28 : | Ligne 28 : | ||
|info | |info | ||
}} | }} | ||
{{Keywords|Keywords=loops;variables;fornumargs}} | |||
[[Category:Loops examples]] | [[Category:Loops examples]] |
Dernière version du 4 septembre 2018 à 09:59
- Syntax of template "LoopsFornumargs"
{{#fornumargs: number | value | <nowiki /> * {{#var: number }} = {{#var: value }} }}
- Syntax of template usage on a page
{{LoopsFornumargs |Apricot |B=Bolognese |Caramel slice |5=Eclair }}
- Result
- 1 = Apricot
- 2 = Caramel slice
- 5 = Eclair
This example makes use of the "Variables" extension.