Difference between revisions of "Template:Sk"

From EVE University Wiki
Jump to: navigation, search
m
(Update documentation)
Line 2: Line 2:
 
== Documentation ==  
 
== 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.
+
: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 {{t|GetSkillLink}}).  
  
 
=== Syntax ===
 
=== Syntax ===
Line 8: Line 8:
 
{{code|<nowiki>{{sk | skill | level | icon= | price= | mult= }}</nowiki>}}
 
{{code|<nowiki>{{sk | skill | level | icon= | price= | mult= }}</nowiki>}}
  
:Only the first two parameters (<code>group</code> and <code>skill</code>) are mandatory, the others are optional.
+
:Only the first parameter (<code>skill</code>) is mandatory, the others are optional.
 
 
;group
 
:This is the skill's group or category (for instance, [[Skills:Missiles|Missiles]] or [[Skills:Spaceship Command|Spaceship Command]]). A full list is found [http://wiki.eveuniversity.org/w/index.php?title=Special%3APrefixIndex&prefix=Skills%3A&namespace=0 here]. Make sure that you start each word of the category with a upper-case letter (<code>Missile Launcher Operation</code>, not <code>Missile launcher operation</code>).  
 
  
 
;skill
 
;skill
:The name of the skill. As above, make sure it's capitalised properly.  
+
:The name of the skill you wish to link to. Please make sure it's capitalised properly (use title case spelling, i.e. <code>Gallente Strategic Cruiser</code>, not <code>Gallente strategic cruiser</code>).
  
 
;level
 
;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, <code>IV</code>, not <code>iv</code> or <code>4</code>).  
+
: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, <code>IV</code>, not <code>iv</code> or <code>4</code>).  
  
 
;icon
 
;icon
Line 23: Line 20:
  
 
;price
 
;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. 
+
:If you would like to indicate how much the skill book costs, use <code>price=yes</code>. If you use <code>price=no</code> or omit the parameter completely, then no price will be displayed.  
:For instance, <code>cost=12B</code>, <code>cost=25.2k</code>, or <code>cost=10-15K</code> are correct. <code>cost=25,2</code>, <code>cost=12M ISK</code>, or <code>cost=~5 - 10</code> is not.  
 
  
 
;mult
 
;mult
:If you would like to indicate what the skill's [[Skill_training#Training_Time_Multipliers|training time multiplier]] is, add it here. Write the number and add an ''x'' (without a space); for instance: <code>mult=2x</code>. If you would not like to display the multiplier, then omit the parameter.
+
:If you would like to indicate what the skill's [[Skill_training#Training_Time_Multipliers|training time multiplier]] is, use <code>mult=yes</code>. If you use <code>mult=no</code> or omit the parameter completely, then no multiplier will be displayed.  
  
 
=== Examples ===
 
=== Examples ===
  
:<code><nowiki>{{sk|Industry|Mass Production}}</nowiki></code> gives {{sk|Industry|Mass Production}}.
+
:<code><nowiki>{{sk|Mass Production}}</nowiki></code> gives {{sk|Mass Production}}.
:<code><nowiki>{{sk|Industry|Industry|IV|icon=yes}}</nowiki></code> gives {{sk|Industry|Industry|IV|icon=yes}}.
+
:<code><nowiki>{{sk|Industry|IV|icon=yes}}</nowiki></code> gives {{sk|Industry|IV|icon=yes}}.
:<code><nowiki>{{sk|Industry|Refinery Efficiency|price=252k|mult=3x}}</nowiki></code> gives {{sk|Industry|Refinery Efficiency|price=252k|mult=3x}}.
+
:<code><nowiki>{{sk|Refinery Efficiency|price=yes|mult=yes}}</nowiki></code> gives {{sk|Refinery Efficiency|price=yes|mult=yes}}.
:<code><nowiki>{{sk|Navigation|Afterburner|mult=1x}}</nowiki></code> gives {{sk|Navigation|Afterburner|mult=1x}}.
+
:<code><nowiki>{{sk|Afterburner|mult=yes}}</nowiki></code> gives {{sk|Navigation|Afterburner|mult=yes}}.
 +
:<code><nowiki>{{sk|Gallente Titan|mult=yes|price=no}}</nowiki></code> gives {{sk|Gallente Titan|mult=yes|price=no}}.
  
 
=== Dependencies ===
 
=== Dependencies ===
  
:This template uses {{t|SkillTimeInfo}} and {{t|SkillPriceInfo}} to generate the tooltips for the training multiplier and the skillbook price.
+
:This template uses {{t|GetSkillLink}}, {{t|GetSkillPrice}} and {{t|GetSkillMult}} to look up and display the correct skill link, skillbook price, and training time multiplier, respectively. Additionally, {{t|SkillTimeInfo}} and {{t|SkillPriceInfo}} are used to generate the tooltips for the training multiplier and the skillbook price.
  
 
=== See also ===
 
=== See also ===

Revision as of 21:57, 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}}).

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.