« Loops - forargs » : différence entre les versions
De Semantic MediaWiki - Sandbox
m (typo) |
(add) |
||
Ligne 24 : | Ligne 24 : | ||
|argument=value | |argument=value | ||
}} | }} | ||
{{Callout | {{Callout | ||
Ligne 29 : | Ligne 30 : | ||
|info | |info | ||
}} | }} | ||
{{Keywords|Keywords=loops;variables;forargs}} | |||
[[Category:Loops examples]] | [[Category:Loops examples]] |
Dernière version du 4 septembre 2018 à 09:59
- Syntax of template "LoopsForargs"
{{#forargs: arg | key | value | <nowiki /> * {{#var: key }} = {{#var: value }} }}
- Syntax of template usage on a page
{{LoopsForargs |arg1=val1 |spam=spammity |arg5=val5 |argument=value }}
- Result
- 1 = val1
- 5 = val5
- ument = value
This example makes use of the "Variables" extension.