Template:Skill/datarow: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
m 24 revisions imported
 
(23 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<pre>
<pre>
{{skill/row
{{skill/datarow
     | name =
     | name =
     | l1 =
     | l1 =
Line 8: Line 8:
     | l5 =
     | l5 =
     | unit =
     | unit =
    | type =
}}
}}
</pre>
</pre>


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


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


   ------ Otherwise ... -->
   ------ Otherwise ... -->
   | <td style="width:10em; padding-left:0.5em; text-align:left">{{{name}}}</td>
   | <td style="padding-left:0.5em; text-align:left"><!--
  -->{{#switch: {{{type}}}
        | Damage =
          {{#switch: {{#sub: {{{name}}} | 0 | 3 }}
            | Blu = [[Image:Blunt Damage Icon.png]] [[Blunt]]
            | Pie = [[Image:Piercing Damage Icon.png]] [[Piercing]]
            | Sla = [[Image:Slashing Damage Icon.png]] [[Slashing]]
            | Fir = [[Image:Fire Damage Icon.png]] [[Fire]]
            | Ice = [[Image:Ice Damage Icon.png]] [[Ice]]
            | Lig = [[Image:Lightning Damage Icon.png]] [[Lightning]]
            | Att | Wea = [[Attack damage]]
            | #default = {{trimd|{{{name}}} }}
          }} {{#if: {{#explode:{{{name}}}|(|1}} | ({{#explode:{{{name}}}|(|1}} }}
        | #default = {{{name}}}
      }}   
    </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 =
}}