Difference between revisions of "Template:LabTechnology"
From A Wiki in the Desert
Line 5: | Line 5: | ||
| {{#arraysize: reqs}} | | {{#arraysize: reqs}} | ||
| <nowiki/> | | <nowiki/> | ||
− | {{#vardefine:current|{{#explode:{{#arrayindex: reqs| {{#var:i}}}}| |0}}}} | + | {{#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}} }} |
− | {{#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}}}} | {{#ifexpr: {{#len:{{#var:item}}}} > 0|* {{#var:current}}/{{#var:needed}} - {{#var:item}}}} | ||
}} | }} |
Revision as of 17:29, 2 June 2021
- {{{technology}}}