Help:Sandbox/debug

From Issuepedia
< Help:Sandbox
Revision as of 21:08, 24 July 2008 by Woozle (talk | contribs) (removed point which might be confusing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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$]}}