A Wiki in the Desert
Log in

Difference between revisions of "Template:SkillPrerequisiteList"

From A Wiki in the Desert
m
m
 
(7 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
   | 0
 
   | 0
 
   | {{#arraysize: requires}}
 
   | {{#arraysize: requires}}
   | {{#vardefine:req|{{#arrayindex:requires|{{#var:x}}}}}}{{#if: {{#pos:{{FULLPAGENAME}}|{{#explode:{{#var:req}}|/|1}}}}|* [[{{#var:req}}]]|* Skill: [[{{#var:req}}|{{#replace:{{#replace:{{#var:req}}|Skill/|}}|/|&nbsp;}}]]<br />}}
+
   | {{#vardefine:req|{{#arrayindex:requires|{{#var:x}}}}}}{{#if: {{#pos:{{FULLPAGENAME}}|{{#explode:{{#var:req}}|/|1}}}}|* [[{{#var:req}}]]|* Skill: [[{{#var:req}}|{{#replace:{{#replace:{{#var:req}}|Skill/|}}|/|&nbsp;}}]]}}
 
}}<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>

Latest revision as of 17:19, 30 April 2023


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.

Template parameters

ParameterDescriptionTypeStatus
skill1

The skill to generate the list for

Example
Skill/Knapping/1
Pagerequired