Difference between revisions of "Template:RequireList"
From A Wiki in the Desert
Line 1: | Line 1: | ||
− | {{#ask: [[requires::{{trim|{{{1}}}}}]] [[Category:Specialization]] |format=array|name=specrequires}}{{#loop: j | 0 | {{#arraysize:specrequires}} | <nowiki/> | + | {{#ask: [[requires::{{trim|{{{1}}}}}]] [[Category:Specialization]] |format=array|name=specrequires}} |
+ | {{#loop: j | 0 | {{#arraysize:specrequires}} | <nowiki/> | ||
* Required to unlock the [[{{#arrayindex:specrequires|{{#var:j}}}}]] specialization. | * Required to unlock the [[{{#arrayindex:specrequires|{{#var:j}}}}]] specialization. | ||
− | }}{{#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/> | + | }} |
+ | {{#ask: [[requires::{{trim|{{{1}}}}}]] [[Category:Resources]] |format=array|name=resourcerequires}} | ||
+ | {{#loop: j | 0 | {{#arraysize:resourcerequires}} | <nowiki/> | ||
* Required to gather [[{{#arrayindex:resourcerequires|{{#var:j}}}}]] | * 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}}}}]] | ||
− | }}{{#ask: [[requires::{{trim|{{{1}}}}}]] [[Is upgrade::True]]|format=array|name=buildingupgrade}}{{#loop: i | 0 | {{#arraysize:buildingupgrade}} | <nowiki/> | + | }} |
+ | {{#ask: [[requires::{{trim|{{{1}}}}}]] [[Is upgrade::True]]|format=array|name=buildingupgrade}} | ||
+ | {{#loop: i | 0 | {{#arraysize:buildingupgrade}} | <nowiki/> | ||
* Required to upgrade [[{{#ask:[[{{#arrayindex:buildingupgrade|{{#var:i}}}}]]|?Has parent#=|mainlabel=-}}]] | * Required to upgrade [[{{#ask:[[{{#arrayindex:buildingupgrade|{{#var:i}}}}]]|?Has parent#=|mainlabel=-}}]] | ||
** {{#ask:[[{{#arrayindex:buildingupgrade|{{#var:i}}}}]]|?Has benefit#=|mainlabel=-}} | ** {{#ask:[[{{#arrayindex:buildingupgrade|{{#var:i}}}}]]|?Has benefit#=|mainlabel=-}} | ||
}} | }} |
Revision as of 16:58, 23 May 2021