Loops - forargs

De 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.
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.