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}}<nowiki/> | {{#ask: [[requires::{{trim|{{{1}}}}}]] [[Category:Specialization]] |format=array|name=specrequires}}<nowiki/> | ||
{{#loop: i | {{#loop: i | ||
Line 42: | Line 35: | ||
* 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=-}} | ||
+ | }}<nowiki/> | ||
+ | {{#ask: [[{{trim|{{{1}}}}}]]|?Has benefit|mainlabel=-|format=array|name=benefitrequires}}<nowiki/> | ||
+ | {{#loop: i | ||
+ | | 0 | ||
+ | | {{#arraysize:benefitrequires}} | ||
+ | | <nowiki/> | ||
+ | {{#if: {{#arrayindex:benefitrequires|{{#var:i}}}}|* {{#arrayindex:benefitrequires|{{#var:i}}}}}} | ||
}}<nowiki/> | }}<nowiki/> |
Latest revision as of 21:32, 24 May 2021