A Wiki in the Desert
Log in

Difference between revisions of "Template:TechnologyPipsInProgress"

From A Wiki in the Desert
(Created page with "{{#arraydefine:techs4|{{#ask: Laboratory/4 |?Working on#= |mainlabel=- |format=plainlist}}}} {{#arrayprint:techs4}} {{#arraysearch:techs4|Technology/Marble Mechanics/1|0|T...")
 
 
Line 1: Line 1:
{{#arraydefine:techs4|{{#ask: [[Laboratory/4]] |?Working on#= |mainlabel=- |format=plainlist}}}}
+
{{#vardefine:sum|0}}{{#vardefine:tech|{{trim|{{{1|Technology/Marble Mechanics/1}}}}}}}{{#loop: i
{{#arrayprint:techs4}}
+
  | 1
{{#arraysearch:techs4|Technology/Marble Mechanics/1|0|TRUE|FALSE}}
+
  | {{#ask: [[Category:Laboratories]] |format=count}}
 +
  | {{#arraydefine:techs|{{#ask: [[Laboratory/{{#var:i}}]] |?Working on#= |mainlabel=- |format=plainlist}}}}{{#ifexpr: {{#ask: [[For technology::{{#var:tech}}]] [[Has parent::Laboratory/{{#var:i}}]] |format=count}} > 0||{{#if:{{#arraysearch:techs|{{#var:tech}}}}|{{#vardefine:sum|{{#expr:{{#var:sum}}+{{#ask: [[Laboratory/{{#var:i}}]] |?Has level#= |mainlabel=- |format=plainlist}}}}}}}}}}}}{{formatnum:{{#var:sum}}|R}}

Latest revision as of 03:38, 23 September 2021

0