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: | + | {{#vardefine:sum|0}}{{#vardefine:tech|{{trim|{{{1|Technology/Marble Mechanics/1}}}}}}}{{#loop: i |
− | {{# | + | | 1 |
− | {{#arraysearch: | + | | {{#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