Loops - forargs

From Semantic MediaWiki - Sandbox

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.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.