Difference between revisions of "Template:Sk"

From EVE University Wiki
Jump to: navigation, search
m
(Undo revision 63212 by Noemie belacqua (talk))
Line 1: Line 1:
{{#ifeq:{{{icon|no}}} | yes | [[Image:Skill.png|link=|16px]]&nbsp;|}}{{GetSkillLink|{{{1}}}|{{{2|}}}}}{{#ifeq:{{{mult|no}}} | yes | {{#ifeq:{{{price|no}}} | yes |&nbsp;({{SkillTimeInfo|{{GetSkillMult|{{{1}}}}} }},{{SkillPriceInfo|{{GetSkillPrice|{{{1}}}}}}})|&nbsp;({{SkillTimeInfo|{{GetSkillMult|{{{1}}}}}}})}}|{{#ifeq:{{{price|no}}}|yes|&nbsp;({{SkillPriceInfo|{{GetSkillPrice|{{{1}}}}}}})|}}}}<noinclude>
+
{{#ifeq:{{{icon|no}}} | yes | [[Image:Skill.png|link=|16px]]&nbsp;|}}{{GetSkillLink|{{{1}}}|{{{2|}}}}}{{#ifeq:{{{mult|no}}} | yes | {{#ifeq:{{{price|no}}} | yes |&nbsp;({{SkillTimeInfo|{{GetSkillMult|{{{1}}}}} }}, {{SkillPriceInfo|{{GetSkillPrice|{{{1}}}}}}})|&nbsp;({{SkillTimeInfo|{{GetSkillMult|{{{1}}}}}}})}}|{{#ifeq:{{{price|no}}}|yes|&nbsp;({{SkillPriceInfo|{{GetSkillPrice|{{{1}}}}}}})|}}}}<noinclude>
 
== Documentation ==  
 
== Documentation ==  
  

Revision as of 22:20, 10 January 2014

[[Skills:{{{1}}}]]

Documentation

This template is useful if you want to link to a skill page on the Uni wiki. It can be used to show different levels of information, from just a simple link, to additional information about rank, skillbook cost and skill multiplier (including tooltips (shown when the mouse is moved over the text) for the last two). It's recommended you use this template when linking to skills (instead of manually linking to the skills page), as it automatically tracks obsolete skill names or groups, making it easier to update the UniWiki when CCP next decides to change the skills in the game (for more information on how this works, see the documentation for {{GetSkillLink}}). Plus, using this template saves you having to go look up what group a skill belongs to :)

Syntax

{{sk | skill | level | icon= | price= | mult= }}
Only the first parameter (skill) is mandatory, the others are optional.
skill
The name of the skill you wish to link to. Please make sure it's capitalised properly (use title case spelling, i.e. Gallente Strategic Cruiser, not Gallente strategic cruiser).
level
If you would like to refer to a particular level or rank of the skill, you can enter it here. In keeping with the Eve conventions, use upper-case Roman numerals (for instance, IV, not iv or 4).
icon
Use icon=yes to display a small skill icon Icon skillbook2.png in front of the link (to denote it as a skill). If you use icon=no or omit the parameter completely, then no icon will be displayed.
price
If you would like to indicate how much the skill book costs, use price=yes. If you use price=no or omit the parameter completely, then no price will be displayed.
mult
If you would like to indicate what the skill's training time multiplier is, use mult=yes. If you use mult=no or omit the parameter completely, then no multiplier will be displayed.

Examples

{{sk|Mass Production}} gives Mass Production.
{{sk|Industry|IV|icon=yes}} gives Icon skillbook2.png Industry IV.
{{sk|Refinery Efficiency|price=yes|mult=yes}} gives [[Skills:Refinery Efficiency]] (Refinery Efficiency , <span style="cursor: help;" title="The skillbook for this skill costs Refinery Efficiency ISK">Refinery Efficiency ISK).
{{sk|Afterburner|mult=yes}} gives Navigation Afterburner (1x).
{{sk|Gallente Titan|mult=yes|price=no}} gives Gallente Titan (16x).

Dependencies

This template uses {{GetSkillLink}}, {{GetSkillPrice}} and {{GetSkillMult}} to look up and display the correct skill link, skillbook price, and training time multiplier, respectively. Additionally, {{SkillTimeInfo}} and {{SkillPriceInfo}} are used to generate the tooltips for the training multiplier and the skillbook price.

See also

{{Skill}}, which produces the beautiful skill overview boxes used on the skill category pages.