Difference between revisions of "Template:ProducesTable"
From A Wiki in the Desert
Line 1: | Line 1: | ||
{{#arraydefine:produces|{{#ask: | {{#arraydefine:produces|{{#ask: | ||
− | [[Has subobject::<q>[[producer:: | + | [[Has subobject::<q>[[producer::Flax Comb]]</q>]] | link=none |
}}}}{{#loop: i | }}}}{{#loop: i | ||
| 0 | | 0 | ||
| {{ #arraysize:produces }} | | {{ #arraysize:produces }} | ||
− | | <nowiki />{{#vardefine:count_produced|{{#ask: [[-Has subobject::{{ #arrayindex: produces | {{ #var:i }} }}]] [[producer:: | + | | <nowiki />{{#vardefine:count_produced|{{#ask: [[-Has subobject::{{ #arrayindex: produces | {{ #var:i }} }}]] [[producer::Flax Comb]] |?count#= |mainlabel=- }}}}{{#vardefine:time|{{#ask: [[-Has subobject::{{ #arrayindex: produces | {{ #var:i }} }}]] [[producer::Flax Comb]] |?time#= |mainlabel=- }}}} |
+ | {{#vardefine:should_exclude|{{#ask:[[-Has subobject::{{ #arrayindex: produces | {{ #var:i }} }}]] [[producer::Flax Comb]] |?exclude#= |mainlabel=-}}}}{{#if: {{#var:should_exclude}}|{{#arraydefine:excludes{{#var:i}}|{{#var:should_exclude}}}}}} | ||
* {{#var:count_produced}} - {{ #arrayindex: produces | {{ #var:i }} }} - {{#var:time}}s{{#arraydefine:requirements|{{#ask: | * {{#var:count_produced}} - {{ #arrayindex: produces | {{ #var:i }} }} - {{#var:time}}s{{#arraydefine:requirements|{{#ask: | ||
− | [[-Has subobject::{{ #arrayindex: produces | {{ #var:i }} }}]] [[requires::+]]| link=none | + | [[-Has subobject::{{ #arrayindex: produces | {{ #var:i }} }}]] {{#if: {{#arraysize:excludes{{#var:i}}}} |{{#arrayprint:excludes{{#var:i}}||@|[[requires::!@]]}}|[[requires::+]]}} | link=none |
− | }}}}{{#loop: j | + | }} |
+ | }}{{#loop: j | ||
| 0 | | 0 | ||
| {{ #arraysize:requirements }} | | {{ #arraysize:requirements }} |
Revision as of 18:08, 10 May 2021
- 10 - Lint - 60s
- 10 - Rotten Flax
- 10 - Straw - 60s
- 10 - Rotten Flax
- 10 - Tow - 60s
- 10 - Rotten Flax