A Wiki in the Desert
Log in

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:itemwithoutresource |itemrequires |resourcerequires }}<nowiki/>
+
{{#arraydiff:itemswithoutresources |itemrequires |resourcerequires }}<nowiki/>
 
{{#loop: i  
 
{{#loop: i  
 
   | 0  
 
   | 0  
   | {{#arraysize:itemwithoutresource}}  
+
   | {{#arraysize:itemswithoutresources}}  
 
   | <nowiki/>
 
   | <nowiki/>
* Required to produce [[{{#arrayindex:itemwithoutresource|{{#var:i}}}}]]
+
* 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