Difference between revisions of "Template:TentativeLOOPString10"

From Space Engineers Wiki
Jump to: navigation, search
 
(34 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefineecho:X0|{{#explode:{{{userparam}}}|;|0}}}}<!--
+
{{#vardefine:X0|{{#explode:{{{userparam}}}|;|0}}}}<!--
 
-->{{#vardefine:X1|0}}<!--
 
-->{{#vardefine:X1|0}}<!--
 
-->{{#vardefine:BASN|{{#sub:{{#show:{{{1}}}|?Component0|?Component1|?Component2|?Component3|?Component4|?Component5|?Component6|?Component7|?Component8|?Component9|format=list|link=none}}|1|-1}}}}<!--
 
-->{{#vardefine:BASN|{{#sub:{{#show:{{{1}}}|?Component0|?Component1|?Component2|?Component3|?Component4|?Component5|?Component6|?Component7|?Component8|?Component9|format=list|link=none}}|1|-1}}}}<!--
Line 30: Line 30:
 
-->{{#ifeq:{{#var:A8}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B8}}}} }} }}<!--
 
-->{{#ifeq:{{#var:A8}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B8}}}} }} }}<!--
 
-->{{#ifeq:{{#var:A9}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B9}}}} }} }}<!--
 
-->{{#ifeq:{{#var:A9}}|{{#var:X0}}|{{#vardefine:X1|{{#expr:{{#var:X1}}+{{#var:B9}}}} }} }}<!--
--><includeonly>|1={{{1}}}|X1={{#var:X1}}<br/></includeonly>
+
--><includeonly>{{#ifexpr:{{#var:X1}}>0|
 +
{{!}}-
 +
{{!}}{{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..