Difference between revisions of "Template:RequireList"
From A Wiki in the Desert
Line 1: | Line 1: | ||
− | {{#ask: [[requires::{{trim | + | {{#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 | + | }}{{#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 | + | }}{{#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 | + | }}{{#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=-}} | ||
}} | }} |