Difference between revisions of "Template:RequireList"
From A Wiki in the Desert
Line 21: | Line 21: | ||
}}<nowiki/> | }}<nowiki/> | ||
{{#ask: [[requires::{{trim|{{{1}}}}}]] [[Category:Items]] |format=array|name=itemrequires}}<nowiki/> | {{#ask: [[requires::{{trim|{{{1}}}}}]] [[Category:Items]] |format=array|name=itemrequires}}<nowiki/> | ||
− | {{#arraydiff: | + | {{#arraydiff:itemswithoutresources |itemrequires |resourcerequires }}<nowiki/> |
{{#loop: i | {{#loop: i | ||
| 0 | | 0 | ||
− | | {{#arraysize: | + | | {{#arraysize:itemswithoutresources}} |
| <nowiki/> | | <nowiki/> | ||
− | * Required to produce [[{{#arrayindex: | + | * Required to produce [[{{#arrayindex:itemswithoutresources|{{#var:i}}}}]] |
}}<nowiki/> | }}<nowiki/> | ||
{{#ask: [[requires::{{trim|{{{1}}}}}]] [[Is upgrade::True]]|format=array|name=buildingupgrade}}<nowiki/> | {{#ask: [[requires::{{trim|{{{1}}}}}]] [[Is upgrade::True]]|format=array|name=buildingupgrade}}<nowiki/> |
Revision as of 17:02, 23 May 2021