Difference between revisions of "Template:SkillPrerequisiteList"
From A Wiki in the Desert
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{#ask: [[{{trim|{{{1}}}}}]] |?Requires experience#=|mainlabel=-|format=array|name=experience}}<nowiki/> |
− | {{#ask: [[{{trim|{{{1}}}}}]] |?Requires experience#=|mainlabel=-|format=array|name=experience}}<nowiki/> | ||
{{#loop: x | {{#loop: x | ||
| 0 | | 0 | ||
| {{#arraysize: experience}} | | {{#arraysize: experience}} | ||
− | | | + | | {{#if: {{#arrayindex:experience|{{#var:x}}}}|* Experience: {{#arrayindex:experience|{{#var:x}}}}}} |
− | {{#if: {{#arrayindex:experience|{{#var:x}}}}|* Experience: {{#arrayindex:experience|{{#var:x}}}}}} | ||
}}<nowiki/> | }}<nowiki/> | ||
{{#arraydefine:requires|{{#ask: [[{{trim|{{{1}}}}}]]|?requires#=|mainlabel=-|format=plainlist}}}}<nowiki/> | {{#arraydefine:requires|{{#ask: [[{{trim|{{{1}}}}}]]|?requires#=|mainlabel=-|format=plainlist}}}}<nowiki/> | ||
Line 11: | Line 9: | ||
| 0 | | 0 | ||
| {{#arraysize: requires}} | | {{#arraysize: requires}} | ||
− | | | + | | {{#vardefine:req|{{#arrayindex:requires|{{#var:x}}}}}}{{#if: {{#pos:{{FULLPAGENAME}}|{{#explode:{{#var:req}}|/|1}}}}||* Skill: [[{{#var:req}}|{{#replace:{{#replace:{{#var:req}}|Skill/|}}|/| }}]]}} |
− | {{#if: {{#pos:{{FULLPAGENAME}}|{{#explode:{{#var:req}}|/|1}}}}||* Skill: [[{{#var:req}}|{{#replace:{{#replace:{{#var:req}}|Skill/|}}|/| }}]]}} | + | }}<nowiki/>{{#ask: [[-Has subobject::{{trim|{{{1}}}}}]]|?Count#=|?Requires#=|mainlabel=-|headers=hide|format=template|template=RequireTableItem}}</includeonly> |
− | }}<nowiki/> | ||
− | {{#ask: [[-Has subobject::{{trim|{{{1}}}}}]]|?Count#=|?Requires#=|mainlabel=-|headers=hide|format=template|template=RequireTableItem}} | ||
− | </includeonly> | ||
<noinclude> | <noinclude> | ||
− | {{ | + | <templatedata> |
+ | { | ||
+ | "params": { | ||
+ | "1": { | ||
+ | "label": "skill", | ||
+ | "example": "Skill/Knapping/1", | ||
+ | "type": "wiki-page-name", | ||
+ | "required": true, | ||
+ | "description": "The skill to generate the list for" | ||
+ | } | ||
+ | }, | ||
+ | "description": "This template generates a bulleted list of requirements to unlock a skill. The values include other skills (that are not of this skill type), items and experience required." | ||
+ | } | ||
+ | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 17:55, 25 May 2021
This template generates a bulleted list of requirements to unlock a skill. The values include other skills (that are not of this skill type), items and experience required.
Parameter | Description | Type | Status | |
---|---|---|---|---|
skill | 1 | The skill to generate the list for
| Page | required |