Difference between revisions of "Template:Sk"

From EVE University Wiki
Jump to: navigation, search
(Use SkillPriceInfo)
Line 1: Line 1:
{{#ifeq:{{{icon|no}}} | yes | [[Image:Skill.png|link=|16px]]&nbsp;|}}[[Skills:{{{1}}}#{{{2}}}|{{{2}}}{{#if:{{{3|}}}|&nbsp;{{{3}}}|}}]]{{#if:{{{mult|}}} | {{#if:{{{cost|}}} |&nbsp;({{SkillTimeInfo|{{{mult}}}}}, {{{cost}}} ISK) |&nbsp;({{SkillTimeInfo|{{{mult}}}}}) }} | {{#if:{{{cost|}}} |&nbsp;({{{cost}}} ISK) |}} }}<noinclude>
+
{{#ifeq:{{{icon|no}}} | yes | [[Image:Skill.png|link=|16px]]&nbsp;|}}[[Skills:{{{1}}}#{{{2}}}|{{{2}}}{{#if:{{{3|}}}|&nbsp;{{{3}}}|}}]]{{#if:{{{mult|}}} | {{#if:{{{price|}}} |&nbsp;({{SkillTimeInfo|{{{mult}}}}}, {{SkillPriceInfo|{{{price}}}}}) |&nbsp;({{SkillTimeInfo|{{{mult}}}}}) }} | {{#if:{{{price|}}} |&nbsp;({{SkillPriceInfo|{{{price}}}}}) |}} }}<noinclude>
 
== Documentation ==  
 
== Documentation ==  
  
Line 6: Line 6:
 
=== Syntax ===
 
=== Syntax ===
  
<pre><nowiki>{{sk | group | skill | rank | icon=yes | cost= | mult= }}</nowiki></pre>
+
<pre><nowiki>{{sk | group | skill | level | icon=yes | price= | mult= }}</nowiki></pre>
  
 
:Only the first two parameters (<code>group</code> and <code>skill</code>) are mandatory, the others are optional.  
 
:Only the first two parameters (<code>group</code> and <code>skill</code>) are mandatory, the others are optional.  
Line 16: Line 16:
 
:The name of the skill. As above, make sure it's capitalised properly.  
 
:The name of the skill. As above, make sure it's capitalised properly.  
  
;rank
+
;level
:If you would like to refer to a particular rank or level 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
 
:Use <code>icon=yes</code> to display a small skill icon [[Image:Skill.png|link=|16px]] in front of the link (to denote it as a skill). If you use <code>icon=no</code> or omit the parameter completely, then no icon will be displayed.  
 
:Use <code>icon=yes</code> to display a small skill icon [[Image:Skill.png|link=|16px]] in front of the link (to denote it as a skill). If you use <code>icon=no</code> or omit the parameter completely, then no icon will be displayed.  
  
;cost
+
;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, 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, <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.  
+
: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

Revision as of 13:04, 27 November 2013

[[Skills:{{{1}}}#{{{2}}}|{{{2}}}]]

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 | group | skill | level | icon=yes | 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 Mass Production.
{{sk|Industry|Industry|IV|icon=yes}} gives Icon skillbook2.png Industry IV.
{{sk|Industry|Refinery Efficiency|cost=252K|mult=3x}} gives Refinery Efficiency (3x).
{{sk|Navigation|Afterburner|mult=1x}} gives Afterburner (1x).

Dependencies

This template uses {{SkillTimeInfo}} to generate the tooltip for the training multiplier.

See also

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