Difference between revisions of "Sandbox"
Jump to navigation
Jump to search
(brackets) |
(Test of defining vars from vars. Fortunately, this does work (and I hope it does also work with template params)) |
||
Line 2: | Line 2: | ||
. | . | ||
− | {{# | + | |
− | {{#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}}}} |
− | {{#var: | + | |
+ | {{#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}}}} |