Difference between revisions of "Template:TentativeLOOPString10"

From Space Engineers Wiki
Jump to: navigation, search
Line 3: Line 3:
 
{{#vardefine:X1|0}}++++---<br/>
 
{{#vardefine:X1|0}}++++---<br/>
  
{{#vardefine:BASE|{{#show:{{{1}}}|?Component0|?Component1|?Component2|?Component3|?Component4|?Component5|?Component6|?Component7|?Component8|?Component9|?Component0Amount|?Component1Amount|?Component2Amount|?Component3Amount|?Component4Amount|?Component5Amount|?Component6Amount|?Component7Amount|?Component8Amount|?Component9Amount|format=list|sep=;}}}}==BASE===<br/>
+
{{#vardefine:BASE|{{#show:{{{1}}}|?Component0|?Component1|?Component2|?Component3|?Component4|?Component5|?Component6|?Component7|?Component8|?Component9|format=list}}}}
--CONTENT--SHOW1-<br/>
+
{{#vardefine:BASC|{{#show:{{{1}}}|?Component0Amount|?Component1Amount|?Component2Amount|?Component3Amount|?Component4Amount|?Component5Amount|?Component6Amount|?Component7Amount|?Component8Amount|?Component9Amount|format=list}}}}
{{#var:BASE}}
+
<br/>-=-=-=-<br/>
--CONTENT--SHOW1END-<br/>
+
{{#vardefineecho:A2|{{#explode:{{{BASE}}}|,|2}}}}
--LEN--:{{#len:{{#var:BASE}}}}<br/>
+
{{#vardefineecho:B2|{{#explode:{{{BASE}}}|,|2}}}}
{{#vardefine:BASE|{{#sub:{{#var:BASE}}|1|-1}}}}======RESET<br/>
+
<br/>-=-=-=-<br/>
--CONTENT--SHOW1-<br/>
+
 
{{#var:BASE}}
 
{{#sub:{{#var:BASE}}|0|0}}
 
--CONTENT--SHOW1END-<br/>
 
--LEN--:{{#len:{{#var:BASE}}}}<br/>
 
{{#vardefineecho:A2|{{#explode:{{{#var:BASE}}}|;|3}}}}
 
-=-=-=-
 
{{#vardefineecho:A3|{{#explode:{{{userparam}}}|;|3}}}}
 
{{#vardefineecho:A4|{{#explode:{{{userparam}}}|;|4}}}}
 
{{#vardefineecho:A5|{{#explode:{{{userparam}}}|;|5}}}}
 
{{#vardefineecho:A6|{{#explode:{{{userparam}}}|;|6}}}}
 
{{#vardefineecho:A7|{{#explode:{{{userparam}}}|;|7}}}}
 
{{#vardefineecho:A8|{{#explode:{{{userparam}}}|;|8}}}}
 
{{#vardefineecho:A9|{{#explode:{{{userparam}}}|;|9}}}}
 
{{#vardefineecho:AA|{{#explode:{{{userparam}}}|;|10}}}}
 
{{#vardefineecho:B1|{{#explode:{{{userparam}}}|;|11}}}}
 
{{#vardefineecho:B2|{{#explode:{{{userparam}}}|;|12}}}}
 
{{#vardefineecho:B3|{{#explode:{{{userparam}}}|;|13}}}}
 
{{#vardefineecho:B4|{{#explode:{{{userparam}}}|;|14}}}}
 
{{#vardefineecho:B5|{{#explode:{{{userparam}}}|;|15}}}}
 
{{#vardefineecho:B6|{{#explode:{{{userparam}}}|;|16}}}}
 
{{#vardefineecho:B7|{{#explode:{{{userparam}}}|;|17}}}}
 
{{#vardefineecho:B8|{{#explode:{{{userparam}}}|;|18}}}}
 
{{#vardefineecho:B9|{{#explode:{{{userparam}}}|;|19}}}}
 
{{#vardefineecho:BA|{{#explode:{{{userparam}}}|;|20}}}}
 
 
{{#ifeq:{{#var:A1}}|{{#var:X0}}|{{#vardefineecho:X1|{{#expr:X1+B1}}}}}}
 
{{#ifeq:{{#var:A1}}|{{#var:X0}}|{{#vardefineecho:X1|{{#expr:X1+B1}}}}}}
 
{{#ifeq:{{#var:A2}}|{{#var:X0}}|{{#vardefineecho:X1|{{#expr:X1+B2}}}}}}
 
{{#ifeq:{{#var:A2}}|{{#var:X0}}|{{#vardefineecho:X1|{{#expr:X1+B2}}}}}}

Revision as of 03:15, 9 December 2020