Difference between revisions of "Help:Sandbox/debug"
Jump to navigation
Jump to search
(sample wikicode for TimStarling to look at) |
m (removed point which might be confusing) |
||
Line 1: | Line 1: | ||
{{#vardefine:keylist|\test1\test2}} | {{#vardefine:keylist|\test1\test2}} | ||
{{#vardefine:test1|something}} | {{#vardefine:test1|something}} | ||
− | {{#vardefine:test2|anotherthing and {{#var: | + | {{#vardefine:test2|anotherthing and {{#var:test1}}}} |
{{#vardefine:$s$|this is bad}} | {{#vardefine:$s$|this is bad}} | ||
Latest revision as of 21:08, 24 July 2008
{{#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$]}}