Mobile app version of vmapp.org
Login or Join
Caterina187

: What is the function of a self-closing tag in Mediawiki? The #loop parser function from the Loops extension contains a <nowiki/> tag in a code example: {{#loop: varname | 4 | 4

@Caterina187

Posted in: #Mediawiki #Tags

The #loop parser function from the Loops extension contains a <nowiki/> tag in a code example:

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


What does the <nowiki/> tag do?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Caterina187

1 Comments

Sorted by latest first Latest Oldest Best

 

@Goswami781

It stops the parser from eating whitespace at the beginning of the template parameter. The * needs to be at the beginning of the line (ie. preceded by a newline) to be turned into a list.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme