Template:Skill table: Difference between revisions

Jump to navigation Jump to search
Correctly escape parser functions in the #dpl call. Add error message on an invalid hero class.
(Add dpl mode of the skill table.)
 
(Correctly escape parser functions in the #dpl call. Add error message on an invalid hero class.)
Line 1: Line 1:
<includeonly><onlyinclude>
<includeonly><onlyinclude>
{{#if:{{ValidateHeroClass|{{{heroclass|}}}}}
{{#if:{{{class|}}}
  |{{#dpl:
  |{{#if:{{ValidateHeroClass|{{{class|}}}}}
    |category    = {{{heroclass|}}} & Skills
    |{{#dpl:
    |namespace    =
      |category    = {{{class|}}} & Skills
    |include      = {Infobox card}:name:xpcost:text:playcost
      |namespace    =
    |table        = class="wikitable sortable",-, Name, XP, Text, Play Cost
      |include      = {Infobox card}:name:xpcost:text:playcost
    |tablesortcol = 2
      |table        = class="wikitable sortable",-, Name, XP, Text, Play Cost
    |tablerow    = [[%PAGE%|%%]], %%, {{#replace:%%|<br><br>|<br>}}, {{#if:%%|%%|-}}
      |tablerow    = [[%PAGE%¦%%]], %%, ²{#replace:%%¦<br><br>¦<br>}², ²{#if:%%¦%%¦-}²
      |tablesortcol = 2
    }}
  |
    [[Template:ValidateHeroClass|Invalid heroclass. Read the template documentation for valid hero classes]]
   }}
   }}
|
  |
   {{{!}} class="wikitable"
   {{{!}} class="wikitable"
   !Name
   !Name

Navigation menu