Template:Skill/datarow: Difference between revisions

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


<onlyinclude><includeonly>
<onlyinclude><includeonly><!--
<tr>
--><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
              }}"> <!--


<th style="text-align: left">{{{name}}}</th>
------ If there's no name and only 1 value... -->
{{#ifexpr: {{#if:{{{name|}}}|0|1}} and {{#if:{{{l2|}}}|0|1}} <!--


<td {{#if: {{{l2|}}}
  ------ Make the value span all 6 columns -->
    | colspan="1">{{{l1}}}{{{unit|}}}</td>
  | <td colspan="6">{{{l1}}}</td> <!--
    <td {{#if: {{{l3|}}}
 
        | colspan="1">{{{l2}}}{{{unit|}}}</td>
  ------ Otherwise ... -->
        <td {{#if: {{{l4|}}}
  | <td style="padding-left:0.5em; text-align:left"><!--
            | colspan="1">{{{l3}}}{{{unit|}}}</td>
  -->{{#switch: {{{type}}}
            <td {{#if: {{{l5|}}}
        | Damage =
                | colspan="1">{{{l4}}}{{{unit|}}}</td>
          {{#switch: {{#sub: {{{name}}} | 0 | 3 }}
                <td>{{{l5}}}{{{unit|}}}</td>
            | Blu = [[Image:Blunt Damage Icon.png]] [[Blunt]]
                | colspan="2">{{{l4}}}{{{unit|}}}</td>
            | Pie = [[Image:Piercing Damage Icon.png]] [[Piercing]]
            }}
            | Sla = [[Image:Slashing Damage Icon.png]] [[Slashing]]
            | colspan="3">{{{l3}}}{{{unit|}}}</td>
            | 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|}}}
          | style="width:14%">{{{l1}}}{{{unit|}}}</td>
            <td {{#if: {{{l3|}}}
                  | style="width:14%">{{{l2}}}{{{unit|}}}</td>
                    <td {{#if: {{{l4|}}}
                          | style="width:14%">{{{l3}}}{{{unit|}}}</td>
                            <td {{#if: {{{l5|}}}
                                  | style="width:14%">{{{l4}}}{{{unit|}}}</td>
                                    <td style="width:14%">{{{l5}}}{{{unit|}}}</td>
                                  | colspan="2" width="28%">{{{l4}}}{{{unit|}}}</td>
                                }}
                          | colspan="3" width="42%">{{{l3}}}{{{unit|}}}</td>
                        }}
                  | colspan="4" width="56%">{{{l2}}}{{{unit|}}}</td>
                }}
          | colspan="5" width="70%">{{{l1}}}{{{unit|}}}</td>
         }}
         }}
        | colspan="4">{{{l2}}}{{{unit|}}}</td>
    }}
    | colspan="5">{{{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 =
}}