Difference between revisions of "Template:RequireList"
From A Wiki in the Desert
(7 intermediate revisions by the same user not shown) | |||
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: | + | {{#ask: [[requires::{{trim|{{{1}}}}}]] [[Category:Skills]]|format=array|name=skillrequires}}<nowiki/> |
{{#loop: i | {{#loop: i | ||
| 0 | | 0 | ||
− | | {{#arraysize: | + | | {{#arraysize:skillrequires}} |
| <nowiki/> | | <nowiki/> | ||
− | {{#if: {{#arrayindex: | + | {{#if: {{#pos:{{#arrayindex:skillrequires|{{#var:i}}}}|{{#explode:{{trim|{{{1}}}}}|/|1}}}}||<nowiki/> |
+ | * Required to unlock skill [[{{#arrayindex:skillrequires|{{#var:i}}}}|{{#replace:{{#replace:{{#arrayindex:skillrequires|{{#var:i}}}}|Skill/|}}|/| }}]] | ||
+ | }} | ||
}}<nowiki/> | }}<nowiki/> | ||
− | {{#ask: [[{{trim|{{{1}}}}}]]|?Has benefit|mainlabel=-|format=array|name=benefitrequires}}<nowiki/> | + | {{#ask: [[{{trim|{{{1}}}}}]]|?Has benefit|mainlabel=-|manysep=, |format=array|name=benefitrequires}}<nowiki/> |
{{#loop: i | {{#loop: i | ||
| 0 | | 0 |
Latest revision as of 21:33, 26 May 2021