Difference between revisions of "Sandbox"
Jump to navigation
Jump to search
(Created page with "File:Example.jpg") |
(Test of defining vars from vars. Fortunately, this does work (and I hope it does also work with template params)) |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
[[File:Example.jpg]] | [[File:Example.jpg]] | ||
+ | . | ||
+ | |||
+ | |||
+ | *{{#vardefineecho:meta_entity|1}} | ||
+ | *{{#vardefineecho:meta_entity|{{#expr:{{#var:meta_entity}}+1}}}} | ||
+ | *{{#vardefineecho:meta_entity|{{#expr:{{#var:meta_entity}}+1}}}} | ||
+ | *{{#vardefineecho:meta_entity|{{#expr:{{#var:meta_entity}}+1}}}} | ||
+ | |||
+ | {{#vardefine:prev|entity}}{{#vardefine:current|living}} <!-- would be template params --> | ||
+ | |||
+ | *{{#vardefineecho:meta_{{#var:current}}|{{#expr:{{#var:meta_{{#var:prev}}}}+1}}}} | ||
+ | *{{#vardefineecho:meta_{{#var:current}}|{{#expr:{{#var:meta_{{#var:current}}}}+1}}}} | ||
+ | |||
+ | {{#vardefine:prev|entity}}{{#vardefine:current|fireworks}} <!-- would be template params --> | ||
+ | |||
+ | *{{#vardefineecho:meta_{{#var:current}}|{{#expr:{{#var:meta_{{#var:prev}}}}+1}}}} | ||
+ | *{{#vardefineecho:meta_{{#var:current}}|{{#expr:{{#var:meta_{{#var:current}}}}+1}}}} | ||
+ | *{{#vardefineecho:meta_{{#var:current}}|{{#expr:{{#var:meta_{{#var:current}}}}+1}}}} |