Difference between revisions of "Template:Skill"
From Twilight Heroes Wiki
m (Works better it seems) |
(Added option for no effect, set with !) |
||
Line 7: | Line 7: | ||
{{{desc}}}<br> | {{{desc}}}<br> | ||
− | <b>{{{effect}}}</b><br> | + | {{#if:{{{effect|}}}|{{#ifeq:{{{effect|}}}|!||<b>{{{effect}}}</b><br>}}|''Unspecified effect!''[[Category:Incomplete]]}} |
{{#if:{{{type|}}}|{{#switch:{{{type}}}|effect|Effect=Effect{{#ifeq:{{{nocat|0}}}|1||[[Category:Effects]]}}|buff|Buff=Buff{{#ifeq:{{{nocat|0}}}|1||[[Category:Buff]]}}|Combat and Noncombat Skill=Combat and Noncombat Skill{{#ifeq:{{{nocat|0}}}|1||[[Category:Combat Skill]][[Category:Noncombat Skill]]}}|noncombat|Noncombat Skill=Noncombat Skill{{#ifeq:{{{nocat|0}}}|1||[[Category:Noncombat Skill]]}}|Combat Skill|combat=Combat Skill{{#ifeq:{{{nocat|0}}}|1||[[Category:Combat Skill]]}}|passive|Passive Skill=Passive Skill{{#ifeq:{{{nocat|0}}}|1||[[Category:Passive Skill]]}}|#default=''Unknown Type''{{#ifeq:{{{nocat|0}}}|1||[[Category:Incomplete]]}}}}|''Unspecified Skill Type!''[[Category:Incomplete]]}}<br>{{#if:{{{ppcost|}}}|Cost: {{{ppcost}}} PP|}}</div></includeonly><noinclude> | {{#if:{{{type|}}}|{{#switch:{{{type}}}|effect|Effect=Effect{{#ifeq:{{{nocat|0}}}|1||[[Category:Effects]]}}|buff|Buff=Buff{{#ifeq:{{{nocat|0}}}|1||[[Category:Buff]]}}|Combat and Noncombat Skill=Combat and Noncombat Skill{{#ifeq:{{{nocat|0}}}|1||[[Category:Combat Skill]][[Category:Noncombat Skill]]}}|noncombat|Noncombat Skill=Noncombat Skill{{#ifeq:{{{nocat|0}}}|1||[[Category:Noncombat Skill]]}}|Combat Skill|combat=Combat Skill{{#ifeq:{{{nocat|0}}}|1||[[Category:Combat Skill]]}}|passive|Passive Skill=Passive Skill{{#ifeq:{{{nocat|0}}}|1||[[Category:Passive Skill]]}}|#default=''Unknown Type''{{#ifeq:{{{nocat|0}}}|1||[[Category:Incomplete]]}}}}|''Unspecified Skill Type!''[[Category:Incomplete]]}}<br>{{#if:{{{ppcost|}}}|Cost: {{{ppcost}}} PP|}}</div></includeonly><noinclude> | ||
Line 22: | Line 22: | ||
|desc=[description text] | |desc=[description text] | ||
|type=[Combat and Noncombat Skill|Combat Skill|Noncombat Skill|Buff|Passive Skill|Effect] | |type=[Combat and Noncombat Skill|Combat Skill|Noncombat Skill|Buff|Passive Skill|Effect] | ||
− | |effect=[effect text] | + | |effect=[effect text, ! if non listed] |
|ppcost=[cost in pp] (optional)}} | |ppcost=[cost in pp] (optional)}} | ||
</pre> | </pre> |
Revision as of 04:30, 13 February 2009
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 and Noncombat Skill|Combat Skill|Noncombat Skill|Buff|Passive Skill|Effect] |effect=[effect text, ! if non listed] |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 |effect=Heals damage |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.
Heals damage
Cost: 12 PP