A Wiki in the Desert
Log in

Difference between revisions of "Template:SchoolSkillTableBody"

From A Wiki in the Desert
(Created page with "{{!}}- {{!}} {{#vardefine:icon|{{#ask: [[{{{1}}}]] |?Has image#=|mainlabel=-|links=all}}}} {{#if: {{#var:icon}}|[[{{#var:icon}}]]}} {{!}} {{{1}}}|{{#replace:{{{1}}}|Skill/|}...")
 
Line 1: Line 1:
 +
{{#ask: [[~{{{1}}}/*]] [[Is generated::True]]|format=array|name=levels}}
 +
{{#loop:
 +
  | i
 +
  | 0
 +
  | {{#arraysize:levels}}
 +
  |<nowiki/>
 
{{!}}-
 
{{!}}-
{{!}} {{#vardefine:icon|{{#ask: [[{{{1}}}]] |?Has image#=|mainlabel=-|links=all}}}} {{#if: {{#var:icon}}|[[{{#var:icon}}]]}}
+
{{!}}  
{{!}} [[{{{1}}}|{{#replace:{{{1}}}|Skill/|}}]]
+
{{!}} [[{{#arrayindex:levels|{{#var:i}}}}|{{#replace:{{#arrayindex:levels|{{#var:i}}}}|Skill/|}}]]
{{!}} {{#ask: [[~{{{1}}}/*]] [[Is generated::True]]|format=array|name=levels}}{{#arraysize:levels}}
+
{{!}} {{#var:i}}
{{!}} {{#ifeq: {{#ask: [[{{{1}}}]] |?Is school#=|mainlabel=-}}|true|School|{{#ifeq: {{#ask: [[{{{1}}}]] |?Is given#=|mainlabel=-}}|true|Automatic|University}}}}
+
{{!}}  
{{!}} {{SkillPrerequisiteList | {{{1}}}/0 }}
+
{{!}} {{SkillPrerequisiteList | {{#arrayindex:levels|{{#var:i}}}} }}
 
{{!}}-
 
{{!}}-
 +
}}

Revision as of 17:03, 14 July 2021