Difference between revisions of "Template:LabTechnology"
From A Wiki in the Desert
Line 4: | Line 4: | ||
| 0 | | 0 | ||
| {{#arraysize: reqs}} | | {{#arraysize: reqs}} | ||
− | | <nowiki/>{{#vardefine: | + | | <nowiki/> |
− | {{#ifexpr: {{#len:{{#var:item}}}} > 0|* {{#var: | + | {{#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}}}