Difference between revisions of "Sandbox"
Jump to navigation
Jump to search
(Test with variables -- doesn't seem to work) |
(Test of defining vars from vars. Fortunately, this does work (and I hope it does also work with template params)) |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
. | . | ||
− | {{#vardefine: | + | |
− | {{#var: | + | *{{#vardefineecho:meta_entity|1}} |
− | {{#vardefine: | + | *{{#vardefineecho:meta_entity|{{#expr:{{#var:meta_entity}}+1}}}} |
− | {{#var: | + | *{{#vardefineecho:meta_entity|{{#expr:{{#var:meta_entity}}+1}}}} |
− | {{#vardefineecho: | + | *{{#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}}}} |