A Wiki in the Desert
Log in

Difference between revisions of "Template:SkillPrerequisiteList"

From A Wiki in the Desert
m
m
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}}]]|* [[{{#var:req}}|{{#replace:{{#replace:{{#var:req}}|Skill/|}}|/| }}]]|* [[{{#var:req}}|{{#replace:{{#replace:{{#var:req}}|/|}}|/| }}]]}}
+
   | {{#vardefine:req|{{#arrayindex:requires|{{#var:x}}}}}}{{#if: {{#pos:{{FULLPAGENAME}}|{{#explode:{{#var:req}}|/|1}}}}|* [[{{#var:req}}]]|* [[{{#var:req}}|{{#replace:{{#replace:{{#var:req}}|Skill/|}}|/| }}]]}}|{{#explode:{{#var:req}}|/|1}}}}|* [[{{#var:req}}]]|* [[{{#var:req}}|{{#replace:{{#replace:{{#var:req}}|Technology/|}}|/| }}]]}}
 
}}<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>

Revision as of 16:45, 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