Template:Skill: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
m fixing icon not showing
ROWiki>Onteron
No edit summary
Line 131: Line 131:
}}
}}


<onlyinclude><includeonly>
<onlyinclude><includeonly><!--
'''{{{name}}}''' is the [[{{{class}}}]]'s {{ordinal|{{{position}}}}} {{#ifeq:{{{position}}}|10|and final}} skill of the [[{{{class}}}#{{{discipline}}}|{{{discipline}}}]] discipline.
-->{{#ifexpr: {{qd | {{{1|}}} | 1 | {{{class}}}     }} and
<table cellspacing="2" style="text-align:center">
              {{qd | {{{1|}}} | 2 | {{{discipline}}} }}
<tr><td><table valign="top" style="width:100%; text-align:left">
<tr>
<td colspan="2">Requires: Character level {{#expr:{{{position}}}*4-3}} / discipline level {{#expr:{{{position}}}*2-1}}
</td>
<td rowspan="2" style="width:40%">
*Type: [[{{{type}}} skills|{{{type}}}]]
{{#ifeq: {{{type}}} | Passive ||
*Casting time: {{ifempty | {{{casting|}}} | ? }}s
{{#if: {{{range|}}} |*Range: {{{range}}}m }}
*Cooldown time: {{{cooldown}}}s
{{#if: {{{area|}}} |*Area: {{{area}}}m }}
}}
</td>
</tr>
<tr> <!-- The explode statement is to take care of "Training (Hunter Skill)" -->
<td style="width:36px">{{#ifexist: Image:{{#explode:{{{name}}}|(|0}} Skill Icon.jpg
  | [[Image:{{#explode:{{{name}}}|(|0}} Skill Icon.jpg]]
  | [[Category: Skill Articles Without Icons]]
}}</td>
<td style="width:15em">''{{{description}}}''</td>
</tr>
</table><br/></td></tr> <!--


------ Show level headings ------
    | {{skill/{{#switch:{{PAGENAME}}
-->{{skill/subtabletop | color = #deffad | bordercolor = black}}
                | {{{name}}} = full
  <tr>
                | Skills Planner = planner
    <th></th><th style="width:6em">Level 1</th>
                | #default = default
    <th style="width:6em">Level 2</th><th style="width:6em">Level 3</th>
              }}
    <th style="width:6em">Level 4</th><th style="width:6em">Level 5</th>
        | {{{1|}}}                       | name = {{{name}}}
  </tr>
        | class = {{{class|}}}           | discipline = {{{discipline|}}}
  </table></td></tr> <!--
        | position = {{{position|}}}    | type = {{{type|}}}
        | description = {{{description|}}}  
------ If type is not 'Passive'... ------
        | casting = {{{casting|}}}       | range = {{{range|}}}
-->{{#ifeq: {{{type}}} | Passive |
        | cooldown = {{{cooldown|}}}    | area = {{{area|}}}
    | {{skill/subtabletop}}
        | cost = {{{cost|}}}             | duration = {{{duration|}}}
 
        | damage = {{{damage|}}}        | debuff = {{{damage|}}}
        <!-- Show 'cost' -->
        | selfdebuff = {{{selfdebuff|}}} | restore = {{{restore|}}}
        {{skill/parserow | {{#explode: {{{cost}}} | ; | 0 }} | Mana cost }}
        | buff = {{{buff|}}}             | other = {{{other|}}}
 
      }}  
        <!-- If duration values are supplied, show them -->
   }}<!--
        {{#if: {{{duration|}}}
--></includeonly></onlyinclude>
        | {{skill/parserow | {{#explode: {{{duration}}} | ; | 0 }} | Spell duration | s }}
        }}
      </table></td></tr>
  }} <!--
------ If damage values are supplied, show them ------
-->{{#if: {{{damage|}}}
    | {{skill/subtabletop | color = #ffffaa | title = Damage to enemies}}
        {{skill/parserow | {{#explode: {{{damage}}} | ; | 0 }} | Damage }}
        {{skill/parserow | {{#explode: {{{damage}}} | ; | 1 }} | Damage }}
        {{skill/parserow | {{#explode: {{{damage}}} | ; | 2 }} | Damage }}
      </table></td></tr>
  }} <!--
 
------ If debuffs are supplied, show them ------
-->{{#if: {{{debuff|}}}
     | {{skill/subtabletop | color = #aaddff | title = Debuffs on enemies}}
        {{skill/parserow | {{#explode: {{{debuff}}} | ; | 0 }} }}
        {{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>
  }} <!--
 
------ If self-debuffs are supplied, show them ------
-->{{#if: {{{selfdebuff|}}}
     | {{skill/subtabletop | color = #ffdead | title = Debuffs on self}}
        {{skill/parserow | {{#explode: {{{selfdebuff}}} | ; | 0 }} }}
        {{skill/parserow | {{#explode: {{{selfdebuff}}} | ; | 1 }} }}
      </table></td></tr>
  }} <!--
 
------ If restore values are supplied, show them ------
-->{{#if: {{{restore|}}}
    | {{skill/subtabletop | color = #aaddff | title = Restore}}
        {{skill/parserow | {{#explode: {{{restore}}} | ; | 0 }} }}
         {{skill/parserow | {{#explode: {{{restore}}} | ; | 1 }} }}
      </table></td></tr>
  }} <!--
 
------ If buffs are supplied, show them ------
-->{{#if: {{{buff|}}}
    | {{skill/subtabletop | color = #aaddff | title = Buffs}}
        {{skill/parserow | {{#explode: {{{buff}}} | ; | 0 }} }}
        {{skill/parserow | {{#explode: {{{buff}}} | ; | 1 }} }}
      </table></td></tr>
  }} <!--
 
------ If other values are supplied, show them ------
-->{{#if: {{{other|}}}
    | {{skill/subtabletop}}
        {{skill/parserow | {{#explode: {{{other}}} | ; | 0 }} }}
      </table></td></tr>
   }}
 
</table><!--
--><!-- Categories -->
{{#ifeq: {{FULLPAGENAME}} | Template:Skill | |
[[Category:Skills]] [[Category:{{{discipline}}} Skills]] [[Category:{{{class}}} Skills]] [[Category: {{{type}}} Skills]] [[Category:{{{class}}} {{{type}}} Skills]]
}}
</includeonly></onlyinclude>

Revision as of 22:18, 13 November 2008

Template for the skill articles.


To add a skill article, just type the name of the skill in the box (use Title Case) and press create:

<createbox>
   preload=Project:Preload Templates/Skill/Content
 editintro=Project:Preload Templates/Skill/Intro
 buttonlabel=Create
 width=50
 break=no

</createbox>

Alternatively copy this text into a new article. Any unused fields can be left as they are.

<onlyinclude>{{skill | {{{1|}}} | name = {{subst:PAGENAME}}
    | class       = <!-- Warrior|Barbarian|Knight|Archer|Marksman|Hunter|Mage|Warlock|Conjurer -->
    | discipline  = <!-- The name of the skill discipline -->
    | position    = <!-- The position of the skill in its discipline (1-10) (number only) -->
    | type        = <!-- Instant|Constant|Activable|Aura|Passive -->
    | description = <!-- Skill decription -->
    | casting     = <!-- Casting time (number only) -->
    | range       = <!-- Range (number only) -->
    | cooldown    = <!-- Cooldown (number only) -->
    | area        = <!-- Area affected (number only) -->
    | cost        = <!-- The mana cost of the spell -->
    | duration    = <!-- Duration of skill (only for Constant/Activable) (number only) -->
    | damage      = <!-- Damage to enemy health/mana -->
    | debuff      = <!-- Any negative status changes or effects to enemies -->  
    | selfdebuff  = <!-- Any negative status changes or effects to self -->  
    | restore     = <!-- Increases to self/ally health/mana -->
    | buff        = <!-- Any positive status changes/effects to self/allies -->
    | other       = <!-- Any other per-level values -->
}}</onlyinclude>

For parameters duration, cost, damage, debuffs, increases and buffs, the syntax is

name: L1value, L2value, L3value, L4value, L5value

with multiple entries separated by semicolons. Whitespace is ignored. See examples.

When using the template, parameters not used can either be deleted or left blank.

Examples

Focus

{{skill | {{{1|}}} | name = Focus
    | class =       Marksman
    | discipline =        Aiming mastery
    | position =    2
    | type =        Activable
    | description = The marksman greatly improves spell impact chances on offensive powers.
    | cooldown =    20
    | cost =        40, 55, 70, 85, 100
    | selfdebuff =  Movement speed: -25%
    | buff =        Spell focus: 20%, 40%, 60%, 80%, 100%
}}

Gives: Template:Skill/default

Sultar's Terror

{{skill | {{{1|}}} | name = Sultar's Terror
    | class =       Warlock
    | discipline  =        Arcania
    | position =    10
    | type =        Constant
    | description = An illusory giant skull provokes fear over its enemies, petrifying and inflicting slashing and piercing damage to them.
    | casting =     3
    | range =       30
    | cooldown =    180
    | area =        10
    | cost =        400,425,450,475,500
    | duration =    3,4,5,6,7
    | damage =      Slashing: 70-100, 115-160, 160-225, 205-285, 250-350;
                    Piercing: 70-100, 115-160, 160-225, 205-285, 250-350;
                    Blunt: 70-100, 115-160, 160-225, 205-285, 250-350
    | debuff =      Knock down  
}}

Gives: Template:Skill/default

Ambitious sacrifice

{{skill | {{{1|}}} | name = Ambitious sacrifice
    | class =       Mage
    | discipline  =        Mana control
    | position =    6
    | type =        Instant
    | description = The wizard sacrifices his health to recover magical power.
    | casting =     1
    | cooldown =    25
    | cost =        0
    | selfdamage =  -150, -225, -300, -375, -450
    | restore =     Mana: +300, +450, +600, +750, +900
}}

Gives: Template:Skill/default