Difference between revisions of "Template:ComponentsUsedIn"

From Space Engineers Wiki
Jump to: navigation, search
(+creating universial template for ores/components)
 
m (+fixing it again)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ask: [[Category:{{FULLPAGENAME}}]]
+
{{#vardefine:total|{{#ask: [[Category:{{FULLPAGENAME}}]]
 +
| ?lcomponent1
 +
| ?lcomponent1amt
 +
| ?lcomponent2
 +
| ?lcomponent2amt
 +
| ?lcomponent3
 +
| ?lcomponent3amt
 +
| ?lcomponent4
 +
| ?lcomponent4amt
 +
| ?lcomponent5
 +
| ?lcomponent5amt
 +
| ?lcomponent6
 +
| ?lcomponent6amt
 +
| ?lcomponent7
 +
| ?lcomponent7amt
 +
| ?lcomponent8
 +
| ?lcomponent8amt
 +
| ?lcomponent9
 +
| ?lcomponent9amt
 +
| ?lcomponentstructure
 +
| ?scomponent1
 +
| ?scomponent1amt
 +
| ?scomponent2
 +
| ?scomponent2amt
 +
| ?scomponent3
 +
| ?scomponent3amt
 +
| ?scomponent4
 +
| ?scomponent4amt
 +
| ?scomponent5
 +
| ?scomponent5amt
 +
| ?scomponent6
 +
| ?scomponent6amt
 +
| ?scomponent7
 +
| ?scomponent7amt
 +
| ?scomponent8
 +
| ?scomponent8amt
 +
| ?scomponent9
 +
| ?scomponent9amt
 +
| ?scomponentstructure
 +
| format=count
 +
| link=none
 +
| limit=500
 +
}}}}{{#ifexpr:{{#var:total}}<10|{{#vardefine:iconsize|small}}|}}
 +
{| class="wikitable"
 +
| {{#ask: [[Category:{{FULLPAGENAME}}]]
 
| ?lcomponent1
 
| ?lcomponent1
 
| ?lcomponent1amt
 
| ?lcomponent1amt
Line 44: Line 88:
 
| introtemplate=Itemlink/intro
 
| introtemplate=Itemlink/intro
 
}}
 
}}
 +
|}
 
<noinclude>[[Category:Templates]]</noinclude>
 
<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 00:34, 22 March 2017