Template:Skill/datarow: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
sub-template for skill template
 
ROWiki>Onteron
improvements
Line 1: Line 1:
<pre><nowiki>
<pre>
{{skill/row
{{skill/row
     | name =
     | name =
Line 9: Line 9:
     | unit =
     | unit =
}}
}}
</nowiki></pre>
</pre>


<onlyinclude><includeonly>
<onlyinclude><includeonly><tr> <!--
<tr>


<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="width:10em; padding-left:0.5em; text-align:left">{{{name}}}</td>
            | colspan="1">{{{l3}}}{{{unit|}}}</td>
    <td {{#if: {{{l2|}}}
            <td {{#if: {{{l5|}}}
      | style="width:6em">{{{l1}}}{{{unit|}}}</td>
                | colspan="1">{{{l4}}}{{{unit|}}}</td>
        <td {{#if: {{{l3|}}}
                <td>{{{l5}}}{{{unit|}}}</td>
          | style="width:6em">{{{l2}}}{{{unit|}}}</td>
                | colspan="2">{{{l4}}}{{{unit|}}}</td>
          <td {{#if: {{{l4|}}}
            }}
              | style="width:6em">{{{l3}}}{{{unit|}}}</td>
            | colspan="3">{{{l3}}}{{{unit|}}}</td>
              <td {{#if: {{{l5|}}}
        }}
                  | style="width:6em">{{{l4}}}{{{unit|}}}</td>
        | colspan="4">{{{l2}}}{{{unit|}}}</td>
                  <td style="width:6em">{{{l5}}}{{{unit|}}}</td>
    }}
                  | colspan="2">{{{l4}}}{{{unit|}}}</td>
    | colspan="5">{{{l1}}}{{{unit|}}}</td>
              }}
              | colspan="3">{{{l3}}}{{{unit|}}}</td>
          }}
          | colspan="4">{{{l2}}}{{{unit|}}}</td>
      }}
      | colspan="5">{{{l1}}}{{{unit|}}}</td>
}}
}}
 
}}
</tr>
</tr></includeonly></onlyinclude>
</includeonly></onlyinclude>

Revision as of 22:56, 16 October 2008

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