Difference between revisions of "Template:RequireList"
From A Wiki in the Desert
Line 36: | Line 36: | ||
** {{#ask:[[{{#arrayindex:buildingupgrade|{{#var:i}}}}]]|?Has benefit#=|mainlabel=-}} | ** {{#ask:[[{{#arrayindex:buildingupgrade|{{#var:i}}}}]]|?Has benefit#=|mainlabel=-}} | ||
}}<nowiki/> | }}<nowiki/> | ||
+ | {{#ask: [[requires::{{trim|{{{1}}}}}]] [[Category:Skill]] |mainlabel=-|format=array|name=benefitrequires}}<nowiki/> | ||
+ | {{#loop: i | ||
+ | | 0 | ||
+ | | {{#arraysize:benefitrequires}} | ||
+ | | <nowiki/> | ||
+ | {{#if: {{#arrayindex:benefitrequires|{{#var:i}}}}|* Required to unlock skill {{#arrayindex:benefitrequires|{{#var:i}}}}}} | ||
+ | }}<nowiki/> | ||
+ | |||
{{#ask: [[{{trim|{{{1}}}}}]]|?Has benefit|mainlabel=-|format=array|name=benefitrequires}}<nowiki/> | {{#ask: [[{{trim|{{{1}}}}}]]|?Has benefit|mainlabel=-|format=array|name=benefitrequires}}<nowiki/> | ||
{{#loop: i | {{#loop: i |
Revision as of 21:02, 26 May 2021