A Wiki in the Desert
Log in

Difference between revisions of "Template:RequireList"

From A Wiki in the Desert
Line 3: Line 3:
 
}}{{#ask: [[requires::{{trim|{{{1}}}}}]] [[Category:Buildings]] |format=array|name=buildingrequires}}{{#loop: j | 0 | {{#arraysize:buildingrequires}} | <nowiki/>
 
}}{{#ask: [[requires::{{trim|{{{1}}}}}]] [[Category:Buildings]] |format=array|name=buildingrequires}}{{#loop: j | 0 | {{#arraysize:buildingrequires}} | <nowiki/>
 
* Required to build [[{{#arrayindex:buildingrequires|{{#var:j}}}}]]
 
* Required to build [[{{#arrayindex:buildingrequires|{{#var:j}}}}]]
 +
}}{{#ask: [[requires::{{trim|{{{1}}}}}]] [[Category:Resources]] |format=array|name=resourcerequires}}{{#loop: j | 0 | {{#arraysize:resourcerequires}} | <nowiki/>
 +
* Required to gather [[{{#arrayindex:resourcerequires|{{#var:j}}}}]]
 
}}{{#ask: [[requires::{{trim|{{{1}}}}}]] [[Category:Items]] |format=array|name=itemrequires}}{{#loop: j | 0 | {{#arraysize:itemrequires}} | <nowiki/>
 
}}{{#ask: [[requires::{{trim|{{{1}}}}}]] [[Category:Items]] |format=array|name=itemrequires}}{{#loop: j | 0 | {{#arraysize:itemrequires}} | <nowiki/>
 
* Required to produce [[{{#arrayindex:itemrequires|{{#var:j}}}}]]
 
* Required to produce [[{{#arrayindex:itemrequires|{{#var:j}}}}]]

Revision as of 16:57, 23 May 2021