A Wiki in the Desert
Log in

Difference between revisions of "Template:TechnologyPipsCompleted"

From A Wiki in the Desert
Line 1: Line 1:
{{#vardefine:sum|0}}{{#loop: i | 1 | {{#ask: [[Category:Laboratories]] |format=count}} | {{#arraydefine:techs|{{#ask: [[Laboratory/{{#var:i}}]] |?Working on#= |mainlabel=- |format=plainlist}}}}{{#if: {{#arraysearch:techs|{{trim|{{{1|Technology/Blacksmithing/2}}}}}}}||{{#vardefine:sum|{{#expr:{{#var:sum}}+{{#ask: [[Laboratory/{{#var:i}}]] |?Has level#= |mainlabel=- |format=plainlist}}}}}}}}
+
{{#vardefine:sum|0}}{{#vardefine:tech|{{trim|{{{1|Technology/Blacksmithing/2}}}}}}}
}}{{trim|{{{1|Technology/Blacksmithing/2}}}}} {{#var:sum}}<noinclude>
+
{{#loop: i  
 +
  | 1  
 +
  | {{#ask: [[Category:Laboratories]] |format=count}}  
 +
  | {{#arraydefine:techs|{{#ask: [[Laboratory/{{#var:i}}]] |?Working on#= |mainlabel=- |format=plainlist}}}}
 +
{{#if: {{#arraysearch:techs|{{#var:tech}}}}
 +
|
 +
|{{#vardefine:sum|{{#expr:{{#var:sum}}+{{#ask: [[Laboratory/{{#var:i}}]] |?Has level#= |mainlabel=- |format=plainlist}}}}}}
 +
}}
 +
}}{{#var:tech}} {{#var:sum}}<noinclude>
 
<templatedata>
 
<templatedata>
 
{
 
{

Revision as of 21:17, 26 June 2021

Technology/Blacksmithing/2 50

No description.

Template parameters

ParameterDescriptionTypeStatus
Technology1

no description

Example
Technology/Blacksmithing/2
Unknownrequired