Difference between revisions of "Template:LabTechnology"
From A Wiki in the Desert
(79 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{#arraydefine:reqs|{{{1|Boards,0,1;Bricks,0,1}}}|; }} | |
− | {{#arraydefine:reqs|{{{ | ||
{{#loop: i | {{#loop: i | ||
| 0 | | 0 | ||
| {{#arraysize: reqs}} | | {{#arraysize: reqs}} | ||
− | | <nowiki/> | + | | <nowiki/>{{#ifexpr: {{#len:{{#explode:{{#arrayindex:reqs|{{#var:i}}}}|,|0}}}} > 0 |
− | * {{#arrayindex: reqs| {{#var:i}}}} | + | |{{#ifexpr:{{#explode:{{#arrayindex:reqs|{{#var:i}}}}|,|1}} < {{#explode:{{#arrayindex:reqs|{{#var:i}}}}|,|2}}|{{#subobject: |
+ | |Requires={{#explode:{{#arrayindex:reqs|{{#var:i}}}}|,|0}} | ||
+ | |Has donated={{#explode:{{#arrayindex:reqs|{{#var:i}}}}|,|1}} | ||
+ | |Total required={{#explode:{{#arrayindex:reqs|{{#var:i}}}}|,|2}} | ||
+ | |For technology={{#ask:[[Category:Technologies]] [[~Technology/{{{technology|Beekeeping}}}/*]] [[Is progressing::true]] |? |link=none |format=plainlist}} | ||
+ | |Should ignore={{{ignore|false}}} | ||
+ | |Should prefer={{{preferred|false}}} | ||
+ | |Pledged by={{#arraydefine:pledge|{{#explode:{{#arrayindex:reqs|{{#var:i}}}}|,|3}}|\}}{{#arrayprint:pledge}} | ||
+ | |Has parent={{FULLPAGENAME}} | ||
+ | }}}}}}}}{{#set: Working on={{#ask:[[Category:Technologies]] [[~Technology/{{{technology|Beekeeping}}}/*]] [[Is progressing::true]] |? |link=none |format=plainlist}}}} | ||
+ | {{ResTechnology|{{{technology|Beekeeping}}}|state=collapsed | ||
+ | |{{{time|}}}{{#arrayprint:reqs|<br/>|@@@@|{{#ifexpr:{{#len:{{#explode:@@@@|,|0}}}} > 0|<nowiki/> | ||
+ | {{ResResource|{{trim|{{#explode:@@@@|,|0}}}}|{{trim|{{#explode:@@@@|,|1}}}}|{{trim|{{#explode:@@@@|,|2}}}}}} | ||
+ | }} | ||
+ | }} | ||
}} | }} |