Template:Skill/datarow: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
m fixing some colors
m 24 revisions imported
 
(18 intermediate revisions by 3 users not shown)
Line 13: Line 13:


<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--
--><tr style="background-color: {{#switch: {{{type}}}
--><tr style="border:solid 1px #aaa; background-color:#37383f;
                                  | Damage = {{#switch: {{#explode: {{{name|}}} }}
              {{#switch: {{{type}}}
                                              | Mana
                | Damage = {{#switch: {{#explode: {{{name|}}} }}
                                              | Drain
                              | Mana | Health = #37383f
                                              | Health = #ffdead
                              | Weapon | Attack |  = #37383f
                                              | Weapon
                              | #default = #37383f
                                              |  = #aaddff
                            }}
                                              | #default = #ffffaa
                | Restore = #37383f
                                            }}
                | Buff
                                  | Debuff = {{#if: {{{name|}}} | #ffdead | #aaddff }}
                | Debuff = {{#ifeq: {{{name|}}} | Protection
                                   | Restore
                              | #37383f
                                   | Buff = #aaddff
                              | {{#ifeq: {{#sub:{{{l1|}}}|0|1}} | -
                                  | Level = #deffad  
                                   | #37383f
                                  | #default = white
                                   | #37383f
                                }}"> <!--  
                                }}
                            }}
                | Level = #deffad  
                | #default = white
              }}"> <!--  


------ If there's no name and only 1 value... -->
------ If there's no name and only 1 value... -->
Line 36: Line 40:


   ------ Otherwise ... -->
   ------ Otherwise ... -->
   | <td style="width:10em; 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}}}
           }}
        | {{#if: {{{name|}}} | [[{{{name}}}]] }}
       }}  
     </td>
     </td>
     <td {{#if: {{{l2|}}}
     <td {{#if: {{{l2|}}}
           | style="width:6em">{{{l1}}}{{{unit|}}}</td>
           | style="width:14%">{{{l1}}}{{{unit|}}}</td>
             <td {{#if: {{{l3|}}}
             <td {{#if: {{{l3|}}}
                   | style="width:6em">{{{l2}}}{{{unit|}}}</td>
                   | style="width:14%">{{{l2}}}{{{unit|}}}</td>
                     <td {{#if: {{{l4|}}}
                     <td {{#if: {{{l4|}}}
                           | style="width:6em">{{{l3}}}{{{unit|}}}</td>
                           | style="width:14%">{{{l3}}}{{{unit|}}}</td>
                             <td {{#if: {{{l5|}}}
                             <td {{#if: {{{l5|}}}
                                   | style="width:6em">{{{l4}}}{{{unit|}}}</td>
                                   | style="width:14%">{{{l4}}}{{{unit|}}}</td>
                                     <td style="width:6em">{{{l5}}}{{{unit|}}}</td>
                                     <td style="width:14%">{{{l5}}}{{{unit|}}}</td>
                                   | colspan="2">{{{l4}}}{{{unit|}}}</td>
                                   | colspan="2" width="28%">{{{l4}}}{{{unit|}}}</td>
                                 }}
                                 }}
                           | colspan="3">{{{l3}}}{{{unit|}}}</td>
                           | colspan="3" width="42%">{{{l3}}}{{{unit|}}}</td>
                         }}
                         }}
                   | colspan="4">{{{l2}}}{{{unit|}}}</td>
                   | colspan="4" width="56%">{{{l2}}}{{{unit|}}}</td>
                 }}
                 }}
           | colspan="5">{{{l1}}}{{{unit|}}}</td>
           | colspan="5" width="70%">{{{l1}}}{{{unit|}}}</td>
         }}
         }}
}}
}}
</tr></includeonly></onlyinclude>
</tr></includeonly></onlyinclude>

Latest revision as of 17:57, 6 November 2020

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