A Wiki in the Desert
Log in

Difference between revisions of "Template:RequireList"

From A Wiki in the Desert
 
(7 intermediate revisions by the same user not shown)
Line 35: 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