Difference between revisions of "Template:TentativeLOOPString10"

From Space Engineers Wiki
Jump to: navigation, search
 
(98 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
{{#vardefine:X0|{{#explode:{{{userparam}}}|;|0}}}}<!--
{{#vardefineecho:X0|{{{userparam}}} }}
+
-->{{#vardefine:X1|0}}<!--
{{#vardefine:X1|0}}++++---<br/>
+
-->{{#vardefine:BASN|{{#sub:{{#show:{{{1}}}|?Component0|?Component1|?Component2|?Component3|?Component4|?Component5|?Component6|?Component7|?Component8|?Component9|format=list|link=none}}|1|-1}}}}<!--
{{#vardefine:BASE|{{#show:{{{1}}}|?Component0|?Component1|?Component2|?Component3|?Component4|?Component5|?Component6|?Component7|?Component8|?Component9|?Component0Amount|?Component1Amount|?Component2Amount|?Component3Amount|?Component4Amount|?Component5Amount|?Component6Amount|?Component7Amount|?Component8Amount|?Component9Amount}}}}=====<br/>
+
-->{{#vardefine:BASC|{{#sub:{{#show:{{{1}}}|?Component0Amount|?Component1Amount|?Component2Amount|?Component3Amount|?Component4Amount|?Component5Amount|?Component6Amount|?Component7Amount|?Component8Amount|?Component9Amount|format=list|link=none}}|1|-1}}}}<!--
{{#var:BASE}}-----<br/>
+
-->{{#vardefine:A1|{{#explode:{{#var:BASN}}|,|0}}}}<!--
{{#vardefineecho:LOOP3|{{#explode:{{{BASE}}}|</td>|11}}}}+++---+++<br/>
+
-->{{#vardefine:A2|{{#explode:{{#var:BASN}}|,|1}}}}<!--
{{#vardefine:LOOP1|{{#explode:{{#explode:{{#var:BASE}}|</td>|0}}|<td class="smwtype_wpg">|1}}}}++++++<br/>
+
-->{{#vardefine:A3|{{#explode:{{#var:BASN}}|,|2}}}}<!--
{{#vardefineecho:AX|[[{{{1}}}]]?Component1}}=====
+
-->{{#vardefine:A4|{{#explode:{{#var:BASN}}|,|3}}}}<!--
{{#vardefineecho:A1|{{Property:{{#explode:{{{userparam}}}|;|1}}}}}}
+
-->{{#vardefine:A5|{{#explode:{{#var:BASN}}|,|4}}}}<!--
{{#vardefineecho:A2|{{#explode:{{{userparam}}}|;|2}}}}
+
-->{{#vardefine:A6|{{#explode:{{#var:BASN}}|,|5}}}}<!--
{{#vardefineecho:A3|{{#explode:{{{userparam}}}|;|3}}}}
+
-->{{#vardefine:A7|{{#explode:{{#var:BASN}}|,|6}}}}<!--
{{#vardefineecho:A4|{{#explode:{{{userparam}}}|;|4}}}}
+
-->{{#vardefine:A8|{{#explode:{{#var:BASN}}|,|7}}}}<!--
{{#vardefineecho:A5|{{#explode:{{{userparam}}}|;|5}}}}
+
-->{{#vardefine:A9|{{#explode:{{#var:BASN}}|,|8}}}}<!--
{{#vardefineecho:A6|{{#explode:{{{userparam}}}|;|6}}}}
+
-->{{#vardefine:B1|{{#explode:{{#var:BASC}}|,|0}}}}<!--
{{#vardefineecho:A7|{{#explode:{{{userparam}}}|;|7}}}}
+
-->{{#vardefine:B2|{{#explode:{{#var:BASC}}|,|1}}}}<!--
{{#vardefineecho:A8|{{#explode:{{{userparam}}}|;|8}}}}
+
-->{{#vardefine:B3|{{#explode:{{#var:BASC}}|,|2}}}}<!--
{{#vardefineecho:A9|{{#explode:{{{userparam}}}|;|9}}}}
+
-->{{#vardefine:B4|{{#explode:{{#var:BASC}}|,|3}}}}<!--
{{#vardefineecho:AA|{{#explode:{{{userparam}}}|;|10}}}}
+
-->{{#vardefine:B5|{{#explode:{{#var:BASC}}|,|4}}}}<!--
{{#vardefineecho:B1|{{#explode:{{{userparam}}}|;|11}}}}
+
-->{{#vardefine:B6|{{#explode:{{#var:BASC}}|,|5}}}}<!--
{{#vardefineecho:B2|{{#explode:{{{userparam}}}|;|12}}}}
+
-->{{#vardefine:B7|{{#explode:{{#var:BASC}}|,|6}}}}<!--
{{#vardefineecho:B3|{{#explode:{{{userparam}}}|;|13}}}}
+
-->{{#vardefine:B8|{{#explode:{{#var:BASC}}|,|7}}}}<!--
{{#vardefineecho:B4|{{#explode:{{{userparam}}}|;|14}}}}
+
-->{{#vardefine:B9|{{#explode:{{#var:BASC}}|,|8}}}}<!--
{{#vardefineecho:B5|{{#explode:{{{userparam}}}|;|15}}}}
+
-->{{#ifeq:{{#var:A1}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B1}}}} }} }}<!--
{{#vardefineecho:B6|{{#explode:{{{userparam}}}|;|16}}}}
+
-->{{#ifeq:{{#var:A2}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B2}}}} }} }}<!--
{{#vardefineecho:B7|{{#explode:{{{userparam}}}|;|17}}}}
+
-->{{#ifeq:{{#var:A3}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B3}}}} }} }}<!--
{{#vardefineecho:B8|{{#explode:{{{userparam}}}|;|18}}}}
+
-->{{#ifeq:{{#var:A4}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B4}}}} }} }}<!--
{{#vardefineecho:B9|{{#explode:{{{userparam}}}|;|19}}}}
+
-->{{#ifeq:{{#var:A5}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B5}}}} }} }}<!--
{{#vardefineecho:BA|{{#explode:{{{userparam}}}|;|20}}}}
+
-->{{#ifeq:{{#var:A6}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B6}}}} }} }}<!--
{{#ifeq:{{#var:A1}}|{{#var:X0}}|{{#vardefineecho:X1|{{#expr:X1+B1}}}}}}
+
-->{{#ifeq:{{#var:A7}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B7}}}} }} }}<!--
{{#ifeq:{{#var:A2}}|{{#var:X0}}|{{#vardefineecho:X1|{{#expr:X1+B2}}}}}}
+
-->{{#ifeq:{{#var:A8}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B8}}}} }} }}<!--
{{#ifeq:{{#var:A3}}|{{#var:X0}}|{{#vardefineecho:X1|{{#expr:X1+B3}}}}}}
+
-->{{#ifeq:{{#var:A9}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B9}}}} }} }}<!--
{{#ifeq:{{#var:A4}}|{{#var:X0}}|{{#vardefineecho:X1|{{#expr:X1+B4}}}}}}
+
--><includeonly>{{#ifexpr:{{#var:X1}}>0|
{{#ifeq:{{#var:A5}}|{{#var:X0}}|{{#vardefineecho:X1|{{#expr:X1+B5}}}}}}
+
{{!}}-
{{#ifeq:{{#var:A6}}|{{#var:X0}}|{{#vardefineecho:X1|{{#expr:X1+B6}}}}}}
+
{{!}}{{Itemlink-li| {{{1}}} }}
{{#ifeq:{{#var:A7}}|{{#var:X0}}|{{#vardefineecho:X1|{{#expr:X1+B7}}}}}}
+
{{!}}{{#var:X1}}
{{#ifeq:{{#var:A8}}|{{#var:X0}}|{{#vardefineecho:X1|{{#expr:X1+B8}}}}}}
+
{{!}}-
{{#ifeq:{{#var:A9}}|{{#var:X0}}|{{#vardefineecho:X1|{{#expr:X1+B9}}}}}}
+
}}</includeonly><noinclude>
{{#ifeq:{{#var:AA}}|{{#var:X0}}|{{#vardefineecho:X1|{{#expr:X1+BA}}}}}}
+
统计单一某种材料的用量,适用于从 ask 询问的数据源 和 一个 userparam 传递的 材料 参数
X1={{#var:X1}}<br/>
+
Count a kind of source from any component or block..
1={{{1}}}<br/>----
+
</noinclude>
</includeonly>
 

Latest revision as of 03:56, 13 December 2020

统计单一某种材料的用量,适用于从 ask 询问的数据源 和 一个 userparam 传递的 材料 参数 Count a kind of source from any component or block..