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/|}...")
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{#ask: [[~{{{1}}}/*]] [[Is generated::True]]|format=array|name=levels}}
 +
{{#loop: i
 +
  | 0
 +
  | {{#arraysize:levels}}
 +
  |<nowiki/>
 +
{{#if: {{#ask: [[-Has subobject::{{#arrayindex:levels|{{#var:i}}}}]]|?Count#=|?Requires#=|mainlabel=-|headers=hide|format=plainlist}}|
 
{{!}}-
 
{{!}}-
{{!}} {{#vardefine:icon|{{#ask: [[{{{1}}}]] |?Has image#=|mainlabel=-|links=all}}}} {{#if: {{#var:icon}}|[[{{#var:icon}}]]}}
+
{{!}} [[{{#arrayindex:levels|{{#var:i}}}}|{{#replace:{{#replace:{{#arrayindex:levels|{{#var:i}}}}|Skill/|}}|/{{#var:i}}|}}]]
{{!}} [[{{{1}}}|{{#replace:{{{1}}}|Skill/|}}]]
+
{{!}} {{#var:i}}
{{!}} {{#ask: [[~{{{1}}}/*]] [[Is generated::True]]|format=array|name=levels}}{{#arraysize:levels}}
+
{{!}} {{SkillPrerequisiteList | {{#arrayindex:levels|{{#var:i}}}} }}
{{!}} {{#ifeq: {{#ask: [[{{{1}}}]] |?Is school#=|mainlabel=-}}|true|School|{{#ifeq: {{#ask: [[{{{1}}}]] |?Is given#=|mainlabel=-}}|true|Automatic|University}}}}
 
{{!}} {{SkillPrerequisiteList | {{{1}}}/0 }}
 
 
{{!}}-
 
{{!}}-
 +
}}
 +
}}

Latest revision as of 17:14, 14 July 2021