Difference between revisions of "Sandbox"
Jump to navigation
Jump to search
(Test of defining vars from vars. Fortunately, this does work (and I hope it does also work with template params)) |
|||
(2 intermediate revisions by the same user 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}}}} |