Difference between revisions of "Template:TentativeLOOPString10"

From Space Engineers Wiki
Jump to: navigation, search
Line 2: Line 2:
 
{{#vardefineecho:X0|{{{userparam}}} }}
 
{{#vardefineecho:X0|{{{userparam}}} }}
 
{{#vardefine:X1|0}}++++---<br/>
 
{{#vardefine:X1|0}}++++---<br/>
{{#vardefineecho:BASE|{{#show:{{{1}}}|?Component0|?Component1|?Component2|?Component3|?Component4|?Component5|?Component6|?Component7|?Component8|?Component9|format=list}}}}==GETNaME===<br/>
+
 
{{#vardefineecho:BASN|{{#show:{{{1}}}|?Component0Amount|?Component1Amount|?Component2Amount|?Component3Amount|?Component4Amount|?Component5Amount|?Component6Amount|?Component7Amount|?Component8Amount|?Component9Amount|format=list}}}}==GETNUM===<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}}}}==BASE===<br/>
{{#var:BASE}}--CONTENT---<br/>
+
--CONTENT--SHOW1-<br/>
{{#sub:{{#var:BASE}}|1|-1}}
+
{{#var:BASE}}
{{#len:{{#var:BASE}}}}--LEN---<br/>
+
--CONTENT--SHOW1END-<br/>
{{#vardefine:LOOP3|{{#explode:{{#var:BASE}}|&lt;/td&gt;|11}} }}+++---+++<br/>
+
--LEN--:{{#len:{{#var:BASE}}}}<br/>
{{#vardefineecho:LOOP1|{{#explode:{{#explode:{{#var:BASE}}|</td>|0}}|<td class="smwtype_wpg">|1}}}}++++++<br/>
+
{{#vardefine:BASE|{{#sub:{{#var:BASE}}|1|-1}}}}======RESET<br/>
{{#var:LOOP1}}$$$$$$$<br/>
+
--CONTENT--SHOW1-<br/>
 +
{{#var:BASE}}
 +
--CONTENT--SHOW1END-<br/>
 +
--LEN--:{{#len:{{#var:BASE}}}}<br/>
 
{{#vardefineecho:AX|[[{{{1}}}]]?Component1}}=====
 
{{#vardefineecho:AX|[[{{{1}}}]]?Component1}}=====
{{#vardefineecho:A2|{{#explode:{{{userparam}}}|;|2}}}}
+
{{#vardefineecho:A2|{{#explode:{{{#var:BASE}}}|;|2}}}}
 
{{#vardefineecho:A3|{{#explode:{{{userparam}}}|;|3}}}}
 
{{#vardefineecho:A3|{{#explode:{{{userparam}}}|;|3}}}}
 
{{#vardefineecho:A4|{{#explode:{{{userparam}}}|;|4}}}}
 
{{#vardefineecho:A4|{{#explode:{{{userparam}}}|;|4}}}}

Revision as of 02:32, 9 December 2020