Difference between revisions of "Template:Sk"

From EVE University Wiki
Jump to: navigation, search
(Check for yes/no parameters)
(Removing superfluous spaces)
Line 1: Line 1:
{{#ifeq:{{{icon|no}}} | yes | [[Image:Skill.png|link=|16px]] |}}
+
{{#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>
{{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 21:38, 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, cost and skill multiplier.

Syntax

{{sk | skill | level | icon= | price= | mult= }}
Only the first two parameters (group and skill) are mandatory, the others are optional.
group
This is the skill's group or category (for instance, Missiles or Spaceship Command). A full list is found here. Make sure that you start each word of the category with a upper-case letter (Missile Launcher Operation, not Missile launcher operation).
skill
The name of the skill. As above, make sure it's capitalised properly.
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, enter the cost here. There is no need to put "ISK" after the price, as it is added automatically. Larger numbers should be abbreviated with k for thousand, M for million, and B for billion. If you don't have the exact price, then an approximation is acceptable (no need to put "~"). If there's a value range, put "-" between the two numbers (without spaces), and add the K, M, or B after the last number. Lastly, the correct fraction denominator is "." and not ",". If you would not like to display a cost, then omit the parameter.
For instance, cost=12B, cost=25.2k, or cost=10-15K are correct. cost=25,2, cost=12M ISK, or cost=~5 - 10 is not.
mult
If you would like to indicate what the skill's training time multiplier is, add it here. Write the number and add an x (without a space); for instance: mult=2x. If you would not like to display the multiplier, then omit the parameter.

Examples

{{sk|Industry|Mass Production}} gives Industry  Mass Production.
{{sk|Industry|Industry|IV|icon=yes}} gives Icon skillbook2.png Industry  Industry.
{{sk|Industry|Refinery Efficiency|price=252k|mult=3x}} gives Industry  Refinery Efficiency.
{{sk|Navigation|Afterburner|mult=1x}} gives Navigation  Afterburner.

Dependencies

This template uses {{SkillTimeInfo}} and {{SkillPriceInfo}} 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.