Help:Sandbox/debug

From Issuepedia
Jump to navigation Jump to search

{{#vardefine:keylist|\test1\test2}} {{#vardefine:test1|something}} {{#vardefine:test2|anotherthing and {{#var:test1}}}} {{#vardefine:$s$|this is bad}}

Old method, worked for <1.12 parser: {{#xploop:{{#var:keylist}}|\n* $s$: "\o#var:$s$\c" should be: [#var:$s$]}}

Another attempt - this technique causes the variable "$s$" to be replaced instead of the *value* of $s$, because the parser gets to it before #xploop does: {{#xploop:{{#var:keylist}}|\n* $s$: "{{#var:$s$}}" should be: [#var:$s$]}}