Template:Skill/full: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
m increased number of buffs limit to 4
ROWiki>Onteron
update
Line 1: Line 1:
<onlyinclude><includeonly>
<onlyinclude><includeonly><!--
'''{{#explode:{{{name}}}|(|0}}''' is the [[{{{class}}}]]'s {{ordinal|{{{position}}}}} {{#ifeq:{{{position}}}|10|and final}} skill of the [[{{{class}}}#{{{discipline}}}|{{{discipline}}}]] discipline.
-->'''{{trimd | {{{name}}} }}''' is the [[{{{class}}}]]'s {{ordinal|{{{position}}}}} {{#ifeq:{{{position}}}|10|and final}} skill of the [[{{{class}}}#{{{discipline}}}|{{{discipline}}}]] discipline.
<table cellspacing="2" style="text-align:center">
 
<tr><td><table valign="top" style="width:100%; text-align:left">
<!-- Start the big table
<tr>
--><table cellspacing="2" style="text-align:center">
<td colspan="2">Requires: Character level {{#expr:{{{position}}}*4-3}} / discipline level {{#expr:{{{position}}}*2-1}}
    <tr><td><table cellpadding="2"
</td>
              style="width:100%; border:solid 1px #aaa; text-align:left"
<td rowspan="2" style="width:40%">
    >
*Type: [[{{{type}}} skills|{{{type}}}]]
      <tr>
{{#ifeq: {{{type}}} | Passive ||
        <td rowspan="3" valign="top"><!--
*Casting time: {{ifempty | {{{casting|}}} | ? }}s
        -->{{#ifexist: Image:{{trimd|{{{name}}}}} Skill Icon.jpg
{{#if: {{{range|}}} |*Range: {{{range}}}m }}
            | [[Image:{{trimd|{{{name}}}}} Skill Icon.jpg|||left]]
*Cooldown time: {{{cooldown}}}s
            | [[Category: Skill Articles Without Icons]]
{{#if: {{{area|}}} |*Area: {{{area}}}m }}
          }} <div style="float:left; font-style:italic">{{{description}}}</div>
}}
        </td>
</td>
        <td align="right" width="25%">Type: [[{{{type}}}]]</td>
</tr>
      </tr>
<tr> <!-- The explode statement is to take care of "Training (Hunter Skill)" -->
      <tr>
<td style="width:36px">{{#ifexist: Image:{{#explode:{{{name}}}|(|0}} Skill Icon.jpg
        <td align="right">Discipline level: {{#expr:{{{position}}}*2-1}}</td>
  | [[Image:{{#explode:{{{name}}}|(|0}} Skill Icon.jpg]]
      </tr>
  | [[Category: Skill Articles Without Icons]]
      <tr>
}}</td>
        <td align="right">Character level: {{#expr:{{{position}}}*4-3}}</td>
<td style="width:15em">''{{{description}}}''</td>
      </tr>
</tr>
      <tr>
</table><br/></td></tr> <!--
        <td colspan="2" align="center"><!--
        -->{{#ifeq: {{{type}}} | Passive |
            | <span style="margin:0 1em">Casting time: {{{casting}}}s</span><!--
            -->{{#if: {{{range|}}}  
                | <span style="margin:0 1em">Range: {{{range}}}m</span> }}<!--
            -->{{#if: {{{area|}}}  
                | <span style="margin:0 1em">Area: {{{area}}}m</span> }}<!--
            --><span style="margin:0 1em">Cooldown time: {{{cooldown}}}s</span>
          }}
        </td>
      </tr>
    </table></td></tr>
<!--


------ Show level headings ------
------ Show level headings ------
-->{{skill/subtabletop | color = #deffad | bordercolor = black}}
-->{{skill/subtabletop | bordercolor = black}}
  <tr>
    {{skill/parsedata
    <th></th><th style="width:6em">Level 1</th>
      | data = <nowiki> </nowiki>: Level 1, Level 2, Level 3, Level 4, Level 5
    <th style="width:6em">Level 2</th><th style="width:6em">Level 3</th>
      | type = Level  
    <th style="width:6em">Level 4</th><th style="width:6em">Level 5</th>
    }}
  </tr>
   </table></td></tr> <!--
   </table></td></tr> <!--
   
   
------ If type is not 'Passive'... ------
------ If type is not 'Passive', show cost & duration if supplied ------
-->{{#ifeq: {{{type}}} | Passive |
-->{{#ifeq: {{{type}}} | Passive |
     | {{skill/subtabletop}}
     | {{skill/subtabletop}}
 
         {{skill/parsedata | data = {{{cost}}} | type = Mana cost }}
        <!-- Show 'cost' -->
         {{skill/parsedata | data = {{{duration}}} | type = Spell duration }}
         {{skill/parserow | {{#explode: {{{cost}}} | ; | 0 }} | Mana cost }}
        {{skill/parserow | {{#explode: {{{cost}}} | ; | 1 }} | Mana cost }}
 
        <!-- If duration values are supplied, show them -->
         {{#if: {{{duration|}}}
        | {{skill/parserow | {{#explode: {{{duration}}} | ; | 0 }} | Spell duration | s }}
        }}
       </table></td></tr>
       </table></td></tr>
   }} <!--
   }} <!--
   
   
------ If damage values are supplied, show them ------
------ Show damage values are shown if supplied ------
-->{{#if: {{{damage|}}}
-->{{#if: {{{damage|}}}
     | {{skill/subtabletop | color = #ffffaa | title = Damage to enemies}}
     | {{skill/subtabletop | title = Damage to enemies}}
         {{skill/parserow | {{#explode: {{{damage}}} | ; | 0 }} | Damage }}
         {{skill/parsedata | data = {{{damage}}} | type = Damage }}
        {{skill/parserow | {{#explode: {{{damage}}} | ; | 1 }} | Damage }}
        {{skill/parserow | {{#explode: {{{damage}}} | ; | 2 }} | Damage }}
       </table></td></tr>
       </table></td></tr>
   }} <!--
   }} <!--
Line 60: Line 62:
------ If debuffs are supplied, show them ------
------ If debuffs are supplied, show them ------
-->{{#if: {{{debuff|}}}
-->{{#if: {{{debuff|}}}
     | {{skill/subtabletop | color = #aaddff | title = Debuffs on enemies}}
     | {{skill/subtabletop | title = Debuffs on enemies}}
         {{skill/parserow | {{#explode: {{{debuff}}} | ; | 0 }} }}
         {{skill/parsedata | data = {{{debuff}}} | type = Debuff }}
        {{skill/parserow | {{#explode: {{{debuff}}} | ; | 1 }} }}
      </table></td></tr>
  }} <!--
 
------ If self-damage values are supplied, show them ------
-->{{#if: {{{selfdamage|}}}
    | {{skill/subtabletop | color = #ffdead | title = Damage on self}}
        {{skill/parserow | {{#explode: {{{selfdamage}}} | ; | 0 }} | Health }}
        {{skill/parserow | {{#explode: {{{selfdamage}}} | ; | 1 }} | Health }}
       </table></td></tr>
       </table></td></tr>
   }} <!--
   }} <!--
Line 76: Line 69:
------ If self-debuffs are supplied, show them ------  
------ If self-debuffs are supplied, show them ------  
-->{{#if: {{{selfdebuff|}}}
-->{{#if: {{{selfdebuff|}}}
     | {{skill/subtabletop | color = #ffdead | title = Debuffs on self}}
     | {{skill/subtabletop | title = Debuffs on self}}
         {{skill/parserow | {{#explode: {{{selfdebuff}}} | ; | 0 }} }}
         {{skill/parsedata | data = {{{selfdebuff}}} | type = Debuff }}
        {{skill/parserow | {{#explode: {{{selfdebuff}}} | ; | 1 }} }}
       </table></td></tr>
       </table></td></tr>
   }} <!--
   }} <!--
Line 84: Line 76:
------ If restore values are supplied, show them ------  
------ If restore values are supplied, show them ------  
-->{{#if: {{{restore|}}}
-->{{#if: {{{restore|}}}
     | {{skill/subtabletop | color = #aaddff | title = Restore}}
     | {{skill/subtabletop | title = Restore}}
         {{skill/parserow | {{#explode: {{{restore}}} | ; | 0 }} }}
         {{skill/parsedata | data = {{{restore}}} | type = Restore }}
        {{skill/parserow | {{#explode: {{{restore}}} | ; | 1 }} }}
       </table></td></tr>
       </table></td></tr>
   }} <!--
   }} <!--
Line 92: Line 83:
------ If buffs are supplied, show them ------
------ If buffs are supplied, show them ------
-->{{#if: {{{buff|}}}
-->{{#if: {{{buff|}}}
     | {{skill/subtabletop | color = #aaddff | title = Buffs}}
     | {{skill/subtabletop | title = Buffs}}
         {{skill/parserow | {{#explode: {{{buff}}} | ; | 0 }} }}
         {{skill/parsedata | data = {{{buff}}} | type = Buff }}
        {{skill/parserow | {{#explode: {{{buff}}} | ; | 1 }} }}
        {{skill/parserow | {{#explode: {{{buff}}} | ; | 2 }} }}
        {{skill/parserow | {{#explode: {{{buff}}} | ; | 3 }} }}
       </table></td></tr>
       </table></td></tr>
   }} <!--
   }} <!--
Line 103: Line 91:
-->{{#if: {{{other|}}}
-->{{#if: {{{other|}}}
     | {{skill/subtabletop}}
     | {{skill/subtabletop}}
         {{skill/parserow | {{#explode: {{{other}}} | ; | 0 }} }}
         {{skill/parsedata | data = {{{other}}} | type = Other }}
       </table></td></tr>
       </table></td></tr>
   }} <!--
   }} <!--

Revision as of 16:59, 27 November 2008