Loops - loop

De Semantic MediaWiki - Sandbox

Syntax
{{#loop: varname
 | 4
 | 4
 | <nowiki />
* This is round {{#var: varname }} and we have {{#expr: 7 - {{#var: varname }} }} more to go
}}
Result

  • This is round 4 and we have 3 more to go
  • This is round 5 and we have 2 more to go
  • This is round 6 and we have 1 more to go
  • This is round 7 and we have 0 more to go


This example makes use of the "ParserFunctions" extension and the "Variables" extension.
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.