Template:Skill/datarow: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
adding protection color
ROWiki>Onteron
converting sub-tables into single table
Line 13: Line 13:


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


------ If there's no name and only 1 value... -->
------ If there's no name and only 1 value... -->
Line 43: Line 35:


   ------ 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
   -->{{#ifeq: {{{type}}} | Damage
         | {{#switch: {{#sub: {{{name}}} | 0 | 3 }}
         | {{#switch: {{#sub: {{{name}}} | 0 | 3 }}
Line 61: Line 53:
             | #default = {{{name}}}
             | #default = {{{name}}}
           }}
           }}
         | {{#if: {{{name|}}} | [[{{{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>

Revision as of 21:28, 30 November 2008

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