Difference between revisions of "Sandbox"

From wiki.vg
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:
 
.
 
.
  
{{#vardefine:test|1}}
+
 
{{#var:test}}
+
*{{#vardefineecho:meta_entity|1}}
{{#vardefine:test|{{#expr:{{#var:test}}+1}}}}
+
*{{#vardefineecho:meta_entity|{{#expr:{{#var:meta_entity}}+1}}}}
{{#var:test}}
+
*{{#vardefineecho:meta_entity|{{#expr:{{#var:meta_entity}}+1}}}}
{{#vardefineecho:test|{{#expr:{{#var:test}}+1}}}}
+
*{{#vardefineecho:meta_entity|{{#expr:{{#var:meta_entity}}+1}}}}
{{#var:test}}
+
 
 +
{{#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}}}}

Latest revision as of 01:00, 27 April 2019

Example.jpg .


  • 1
  • 2
  • 3
  • 4


  • 5
  • 6


  • 5
  • 6
  • 7