Difference between revisions of "Template:Skill"

From Twilight Heroes Wiki
Jump to: navigation, search
m (tweak for skills that don't have pop-ups)
m (whups)
Line 1: Line 1:
 
<includeonly>Go back to {{#if:{{{class|}}}|[[{{{class}}}]]&#32;}}[[Skills]] {{#if:{{{level|}}}|(level {{{level}}} skill, {{#ifexpr:{{{level}}}<2|starting skill|trained at the [[Heroes' Guild]]}})}}
 
<includeonly>Go back to {{#if:{{{class|}}}|[[{{{class}}}]]&#32;}}[[Skills]] {{#if:{{{level|}}}|(level {{{level}}} skill, {{#ifexpr:{{{level}}}<2|starting skill|trained at the [[Heroes' Guild]]}})}}
 
<div style="position:relative"><div style="font-size:80%;text-align:right;position:absolute;top:0px;right:15px;">
 
<div style="position:relative"><div style="font-size:80%;text-align:right;position:absolute;top:0px;right:15px;">
[[Skills by number (1-99)|Skill ID]]: {{#if:{{{skillid|}}}|{{#ifeq:{{{skillid|}}}|0||{{{skillid}}}}}|'''Unknown!'''[[Category:Incomplete]]}}<br />[http://www.twilightheroes.com/popup.php?skill={{{skillid}}} (view in-game)]</div>
+
[[Skills by number (1-99)|Skill ID]]: {{#if:{{{skillid|}}}|{{#ifeq:{{{skillid|}}}|0|N/A|{{{skillid}}}}}|'''Unknown!'''[[Category:Incomplete]]}}{{#ifeq:{{{skillid|}}}|0||<br />[http://www.twilightheroes.com/popup.php?skill={{{skillid}}} (view in-game)]}}</div>
 
'''{{{name}}}'''<br /><br />{{{desc}}}{{#if: {{{type|}}}|{{#switch: {{{type}}}|effect|Effect={{#ifeq:{{{nocat|0}}}|1||[[Category:Effects]]}}|Combat and Noncombat Skill=<br /><br />Combat and Noncombat Skill{{#ifeq:{{{nocat|0}}}|1||[[Category:Combat Skill]][[Category:Noncombat Skill]]}}|noncombat=<br /><br />Noncombat Skill{{#ifeq:{{{nocat|0}}}|1||[[Category:Noncombat Skill]]}}|combat=<br /><br />Combat Skill{{#ifeq:{{{nocat|0}}}|1||[[Category:Combat Skill]]}}|passive=<br /><br />Passive Skill{{#ifeq:{{{nocat|0}}}|1||[[Category:Passive Skill]]}}|#default=<br /><br />{{{type}}}{{#ifeq:{{{nocat|0}}}|1||[[Category:{{{type}}}]]}}}}|<br /><br />'''Skill type unknown!'''[[Category:Incomplete]]}}{{#if:{{{ppcost|}}}|<br />Cost: {{{ppcost}}} PP|}}</div></includeonly><noinclude>
 
'''{{{name}}}'''<br /><br />{{{desc}}}{{#if: {{{type|}}}|{{#switch: {{{type}}}|effect|Effect={{#ifeq:{{{nocat|0}}}|1||[[Category:Effects]]}}|Combat and Noncombat Skill=<br /><br />Combat and Noncombat Skill{{#ifeq:{{{nocat|0}}}|1||[[Category:Combat Skill]][[Category:Noncombat Skill]]}}|noncombat=<br /><br />Noncombat Skill{{#ifeq:{{{nocat|0}}}|1||[[Category:Noncombat Skill]]}}|combat=<br /><br />Combat Skill{{#ifeq:{{{nocat|0}}}|1||[[Category:Combat Skill]]}}|passive=<br /><br />Passive Skill{{#ifeq:{{{nocat|0}}}|1||[[Category:Passive Skill]]}}|#default=<br /><br />{{{type}}}{{#ifeq:{{{nocat|0}}}|1||[[Category:{{{type}}}]]}}}}|<br /><br />'''Skill type unknown!'''[[Category:Incomplete]]}}{{#if:{{{ppcost|}}}|<br />Cost: {{{ppcost}}} PP|}}</div></includeonly><noinclude>
  

Revision as of 08:01, 5 April 2008


The {{skill}} template is meant to standardize the appearance of skills and effects on the wiki.

Usage

{{skill
|skillid=[in-game ID number, use "0" for ones without a pop-up]
|name=[skill name]
|class=[Elementalist|Gadgeteer|Naturalist|Psion] (optional)
|level=[class skill level] (optional)
|desc=[description text]
|type=[Combat Skill|Noncombat Skill|Passive Skill|Effect]
|ppcost=[cost in pp] (optional)}}

E.g.,

{{skill
|skillid=159
|name=Knit Bone
|class=Psion
|level=9
|desc=Mental powers allow you to knit both flesh and bone, healing a considerable amount of damage.
|type=Noncombat Skill
|ppcost=12}}

gives


Go to Psion Skills (level 9 skill, trained at the Training Room)

Knit Bone

Mental powers allow you to knit both flesh and bone, healing a considerable amount of damage.

Unspecified effect!

Noncombat Skill
Cost: 12 PP