Template:Skill/datarow: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
converting sub-tables into single table
m 24 revisions imported
 
(16 intermediate revisions by 3 users not shown)
Line 13: Line 13:


<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--
--><tr style="border:solid 1px #aaa; background-color:
--><tr style="border:solid 1px #aaa; background-color:#37383f;
               {{#switch: {{{type}}}
               {{#switch: {{{type}}}
                 | Damage = {{#switch: {{#explode: {{{name|}}} }}
                 | Damage = {{#switch: {{#explode: {{{name|}}} }}
                               | Mana
                               | Mana | Health = #37383f
                              | Health = #ffdead
                               | Weapon | Attack |  = #37383f
                               | Weapon
                               | #default = #37383f
                              |  = #aaddff
                            }}
                               | #default = #ffffaa
                | Restore = #37383f
                | Buff
                | Debuff = {{#ifeq: {{{name|}}} | Protection
                              | #37383f
                              | {{#ifeq: {{#sub:{{{l1|}}}|0|1}} | -
                                  | #37383f
                                  | #37383f
                                }}
                             }}
                             }}
                | Debuff = {{#if: {{{name|}}} | #ffdead | #aaddff }}
                | Buff = #aaddff
                 | Level = #deffad  
                 | Level = #deffad  
                 | #default = white
                 | #default = white
Line 36: Line 41:
   ------ Otherwise ... -->
   ------ Otherwise ... -->
   | <td style="padding-left:0.5em; text-align:left"><!--
   | <td style="padding-left:0.5em; text-align:left"><!--
   -->{{#ifeq: {{{type}}} | Damage
   -->{{#switch: {{{type}}}
        | {{#switch: {{#sub: {{{name}}} | 0 | 3 }}
        | Damage =
             | Blu = [[Image:Blunt Damage Icon.png]] [[Blunt]] <!--
          {{#switch: {{#sub: {{{name}}} | 0 | 3 }}
                  -->{{#if: {{#explode:{{{name}}}|(|1}} | (per second) }}
             | Blu = [[Image:Blunt Damage Icon.png]] [[Blunt]]
             | Pie = [[Image:Piercing Damage Icon.png]] [[Piercing]] <!--
             | Pie = [[Image:Piercing Damage Icon.png]] [[Piercing]]
                  -->{{#if: {{#explode:{{{name}}}|(|1}} | (per second) }}
             | Sla = [[Image:Slashing Damage Icon.png]] [[Slashing]]
             | Sla = [[Image:Slashing Damage Icon.png]] [[Slashing]] <!--
             | Fir = [[Image:Fire Damage Icon.png]] [[Fire]]  
                  -->{{#if: {{#explode:{{{name}}}|(|1}} | (per second) }}
             | Ice = [[Image:Ice Damage Icon.png]] [[Ice]]  
             | Fir = [[Image:Fire Damage Icon.png]] [[Fire]] <!--
             | Lig = [[Image:Lightning Damage Icon.png]] [[Lightning]]  
                  -->{{#if: {{#explode:{{{name}}}|(|1}} | (per second) }}
            | Att | Wea = [[Attack damage]]
             | Ice = [[Image:Ice Damage Icon.png]] [[Ice]] <!--
            | #default = {{trimd|{{{name}}} }}
                  -->{{#if: {{#explode:{{{name}}}|(|1}} | (per second) }}
          }} {{#if: {{#explode:{{{name}}}|(|1}} | ({{#explode:{{{name}}}|(|1}} }}
             | Lig = [[Image:Lightning Damage Icon.png]] [[Lightning]] <!--
         | #default = {{{name}}}
                  -->{{#if: {{#explode:{{{name}}}|(|1}} | (per second) }}
       }}  
            | Wea = [[Weapon damage]]
            | #default = {{{name}}}
          }}
         | [[{{{name}}}]]
       }}  
     </td>
     </td>
     <td {{#if: {{{l2|}}}
     <td {{#if: {{{l2|}}}

Latest revision as of 17:57, 6 November 2020

{{skill/datarow
    | name =
    | l1 =
    | l2 = 
    | l3 =
    | l4 =
    | l5 =
    | unit =
    | type =
}}