Template:Skill/subtabletop: Difference between revisions
Jump to navigation
Jump to search
ROWiki>Onteron sub-template for skill template |
ROWiki>Onteron improvements |
||
Line 1: | Line 1: | ||
<onlyinclude><tr><td><table | <center> | ||
'''This template is a work in progress!''' | |||
</center> | |||
><!--{{#if: {{{title|}}} | |||
== Syntax == | |||
}}--></onlyinclude> | <pre> | ||
{{skill |name={{subst:PAGENAME}}|data={{{data|}}} | |||
| class = <!-- Warrior|Barbarian|Knight|Archer|Marksman|Hunter|Mage|Warlock|Conjurer --> | |||
| tree = <!-- The name of the skill tree --> | |||
| position = <!-- The position of the skill in its tree (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 changes or status effects to enemies --> | |||
| restore = <!-- Increases to self/ally health/mana --> | |||
| buff = <!-- Any positive status changes/effects to self/allies --> | |||
| other = <!-- Anything else --> | |||
}} | |||
</pre> | |||
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 == | |||
=== Foresight === | |||
<pre><nowiki> | |||
{{skill | |||
| class = Marksman | |||
| tree = Aiming mastery | |||
| position = 4 | |||
| type = Passive | |||
| buff = Attack range: 5%, 7%, 9%, 12%, 15% | |||
}} | |||
</nowiki></pre> | |||
Gives: | |||
{{skill | |||
| class = Marksman | |||
| tree = Aiming mastery | |||
| position = 4 | |||
| type = Passive | |||
| buff = Attack range: 5%, 7%, 9%, 12%, 15% | |||
}} | |||
=== Sultar's Terror === | |||
<pre><nowiki> | |||
{{skill | |||
| class = Warlock | |||
| tree = Arcania | |||
| position = 10 | |||
| type = Constant | |||
| 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 | |||
}} | |||
</nowiki></pre> | |||
Gives: | |||
{{skill | |||
| class = Warlock | |||
| tree = Arcania | |||
| position = 10 | |||
| type = Constant | |||
| 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 | |||
}} | |||
=== Ambitious sacrifice === | |||
<pre><nowiki> | |||
{{skill | |||
| class = Mage | |||
| tree = 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 | |||
}} | |||
</nowiki></pre> | |||
Gives: | |||
{{skill | |||
| class = Mage | |||
| tree = 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 | |||
}} | |||
<onlyinclude><includeonly> | |||
'''{{{name}}}''' is the [[{{{class}}}]]'s {{ordinal|{{{position}}}}} {{#ifeq:{{{position}}}|10|and final}} [[{{{class}}}#{{{tree}}}|{{{tree}}}]] skill. | |||
<table cellspacing="2" style="text-align:center"> | |||
<tr><td><table style="width:100%; text-align:left"> | |||
<tr style="vertical-align:top"> | |||
<td style="width:36px">[[Image:{{{name}}} skill icon.jpg]]</td> | |||
<td style="width:15em">''{{{description}}}''</td> | |||
<td style="width:40%"> | |||
*Type: [[{{{type}}} skills|{{{type}}}]] | |||
{{#ifeq: {{{type}}} | Passive || | |||
*Casting time: {{{casting}}} | |||
{{#if: {{{range|}}} |*Range: {{{range}}}m }} | |||
*Cooldown time: {{{cooldown}}} | |||
{{#if: {{{area|}}} |*Area: {{{area}}} }} | |||
}} | |||
</td> | |||
</tr> | |||
</table><br/></td></tr> <!-- | |||
------ Show level headings ------ | |||
-->{{skill/subtabletop | color = #deffad | bordercolor = black}} | |||
<tr> | |||
<th></th><th style="width:6em">Level 1</th> | |||
<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> | |||
</tr> | |||
</table></td></tr> <!-- | |||
------ If type is not 'Passive'... ------ | |||
-->{{#ifeq: {{{type}}} | Passive | | |||
| {{skill/subtabletop}} | |||
<!-- Show 'cost' --> | |||
{{skill/parserow | {{#explode: {{{cost}}} | ; | 0 }} | Mana cost }} | |||
<!-- If type is 'Constant' or 'Activable', show 'duration' --> | |||
{{#ifexpr: {{#ifeq:{{{type}}}|Constant|1|0}} or {{#ifeq:{{{type}}}|Activable|1|0}} | |||
| {{skill/parserow | {{#explode: {{{duration}}} | ; | 0 }} | 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 }} }} | |||
{{skill/parserow | {{#explode: {{{selfdamage}}} | ; | 1 }} }} | |||
</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> | |||
</includeonly></onlyinclude> |
Revision as of 22:59, 16 October 2008
This template is a work in progress!
Syntax
{{skill |name={{subst:PAGENAME}}|data={{{data|}}} | class = <!-- Warrior|Barbarian|Knight|Archer|Marksman|Hunter|Mage|Warlock|Conjurer --> | tree = <!-- The name of the skill tree --> | position = <!-- The position of the skill in its tree (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 changes or status effects to enemies --> | restore = <!-- Increases to self/ally health/mana --> | buff = <!-- Any positive status changes/effects to self/allies --> | other = <!-- Anything else --> }}
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
Foresight
{{skill | class = Marksman | tree = Aiming mastery | position = 4 | type = Passive | buff = Attack range: 5%, 7%, 9%, 12%, 15% }}
Gives: [[File:{{{name}}} Power Icon.jpg|16px]][[{{{name}}}|{{{name}}}]]
Sultar's Terror
{{skill | class = Warlock | tree = Arcania | position = 10 | type = Constant | 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: [[File:{{{name}}} Power Icon.jpg|16px]][[{{{name}}}|{{{name}}}]]
Ambitious sacrifice
{{skill | class = Mage | tree = 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/description The wizard sacrifices his health to recover magical power.