« Loops - forargs » : différence entre les versions
De Semantic MediaWiki - Sandbox
(chg) |
m (typo) |
||
Ligne 16 : | Ligne 16 : | ||
|argument=value | |argument=value | ||
}} | }} | ||
<pre> | </pre> | ||
; Result | ; Result | ||
{{LoopsForargs | {{LoopsForargs |
Version du 4 septembre 2018 à 09:51
- 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.