Difference between revisions of "Template:TentativeLOOPString10"
From Space Engineers Wiki
(128 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{# | + | {{#vardefine:X0|{{#explode:{{{userparam}}}|;|0}}}}<!-- |
− | {{#vardefine:X1|0}} | + | -->{{#vardefine:X1|0}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:BASN|{{#sub:{{#show:{{{1}}}|?Component0|?Component1|?Component2|?Component3|?Component4|?Component5|?Component6|?Component7|?Component8|?Component9|format=list|link=none}}|1|-1}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:BASC|{{#sub:{{#show:{{{1}}}|?Component0Amount|?Component1Amount|?Component2Amount|?Component3Amount|?Component4Amount|?Component5Amount|?Component6Amount|?Component7Amount|?Component8Amount|?Component9Amount|format=list|link=none}}|1|-1}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:A1|{{#explode:{{#var:BASN}}|,|0}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:A2|{{#explode:{{#var:BASN}}|,|1}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:A3|{{#explode:{{#var:BASN}}|,|2}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:A4|{{#explode:{{#var:BASN}}|,|3}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:A5|{{#explode:{{#var:BASN}}|,|4}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:A6|{{#explode:{{#var:BASN}}|,|5}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:A7|{{#explode:{{#var:BASN}}|,|6}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:A8|{{#explode:{{#var:BASN}}|,|7}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:A9|{{#explode:{{#var:BASN}}|,|8}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:B1|{{#explode:{{#var:BASC}}|,|0}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:B2|{{#explode:{{#var:BASC}}|,|1}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:B3|{{#explode:{{#var:BASC}}|,|2}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:B4|{{#explode:{{#var:BASC}}|,|3}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:B5|{{#explode:{{#var:BASC}}|,|4}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:B6|{{#explode:{{#var:BASC}}|,|5}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:B7|{{#explode:{{#var:BASC}}|,|6}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:B8|{{#explode:{{#var:BASC}}|,|7}}}}<!-- |
− | {{#vardefine: | + | -->{{#vardefine:B9|{{#explode:{{#var:BASC}}|,|8}}}}<!-- |
− | {{#ifeq:{{#var:A1}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:X1+B1}}}}}} | + | -->{{#ifeq:{{#var:A1}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B1}}}} }} }}<!-- |
− | {{#ifeq:{{#var:A2}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:X1+B2}}}}}} | + | -->{{#ifeq:{{#var:A2}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B2}}}} }} }}<!-- |
− | {{#ifeq:{{#var:A3}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:X1+B3}}}}}} | + | -->{{#ifeq:{{#var:A3}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B3}}}} }} }}<!-- |
− | {{#ifeq:{{#var:A4}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:X1+B4}}}}}} | + | -->{{#ifeq:{{#var:A4}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B4}}}} }} }}<!-- |
− | {{#ifeq:{{#var:A5}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:X1+B5}}}}}} | + | -->{{#ifeq:{{#var:A5}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B5}}}} }} }}<!-- |
− | {{#ifeq:{{#var:A6}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:X1+B6}}}}}} | + | -->{{#ifeq:{{#var:A6}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B6}}}} }} }}<!-- |
− | {{#ifeq:{{#var:A7}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:X1+B7}}}}}} | + | -->{{#ifeq:{{#var:A7}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B7}}}} }} }}<!-- |
− | {{#ifeq:{{#var:A8}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:X1+B8}}}}}} | + | -->{{#ifeq:{{#var:A8}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B8}}}} }} }}<!-- |
− | {{#ifeq:{{#var:A9}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:X1+B9}}}}}} | + | -->{{#ifeq:{{#var:A9}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B9}}}} }} }}<!-- |
− | {{# | + | --><includeonly>{{#ifexpr:{{#var:X1}}>0| |
− | {{#var:X1}}< | + | {{!}}- |
+ | {{!}}{{Itemlink-li| {{{1}}} }} | ||
+ | {{!}}{{#var:X1}} | ||
+ | {{!}}- | ||
+ | }}</includeonly><noinclude> | ||
+ | 统计单一某种材料的用量,适用于从 ask 询问的数据源 和 一个 userparam 传递的 材料 参数 | ||
+ | Count a kind of source from any component or block.. | ||
+ | </noinclude> |
Latest revision as of 03:56, 13 December 2020
统计单一某种材料的用量,适用于从 ask 询问的数据源 和 一个 userparam 传递的 材料 参数 Count a kind of source from any component or block..