A Wiki in the Desert
Log in

Difference between revisions of "Template:LabTechnology"

From A Wiki in the Desert
Line 4: Line 4:
 
| 0  
 
| 0  
 
| {{#arraysize: reqs}}  
 
| {{#arraysize: reqs}}  
| <nowiki/>{{#vardefine:count|{{#explode:{{#arrayindex: reqs| {{#var:i}}}}| |0}}}}{{#vardefine:item|{{#replace:{{#arrayindex: reqs| {{#var:i}}}}|{{#var:count}} |}}}}
+
| <nowiki/>
{{#ifexpr: {{#len:{{#var:item}}}} > 0|* {{#var:count}} - {{#var:item}}}}
+
{{#vardefine:current|{{#explode:{{#arrayindex: reqs| {{#var:i}}}}| |0}}}}
 +
{{#vardefine:needed|{{#explode:{{#arrayindex: reqs| {{#var:i}}}}| |1}}}}
 +
 
 +
{{#vardefine:item|{{#replace:{{#replace:{{#arrayindex: reqs| {{#var:i}}}}|{{#var:current}} |}}}}|{{#var:needed}} }}
 +
{{#ifexpr: {{#len:{{#var:item}}}} > 0|* {{#var:current}}/{{#var:needed}} - {{#var:item}}}}
 
}}
 
}}

Revision as of 17:29, 2 June 2021

  • {{{technology}}}