Difference between revisions of "Template:Sk"

From EVE University Wiki
Jump to: navigation, search
(Beginning documentation)
(Continuing documentation)
Line 2: Line 2:
 
== Documentation ==  
 
== Documentation ==  
  
:This template is useful if you want to link to a skill page on the Uni wiki.  
+
: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 ===
 
=== Syntax ===
Line 8: Line 8:
 
<pre><nowiki>{{sk | group | skill | rank | icon=yes | cost= | mult= }}</nowiki></pre>
 
<pre><nowiki>{{sk | group | skill | rank | icon=yes | cost= | 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.  
  
 
;group
 
;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 capitalise the category correctly (<code>Missile Launcher Operation</code>, not <code>Missile launcher operation</code>).  
+
: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>).  
  
<code><nowiki>{{sk|Industry|Mass Production|icon=yes}}</nowiki></code> give {{sk|Industry|Mass Production|icon=yes}}.
+
;skill
 +
:The name of the skill. As above, make sure it's capitalised properly.  
  
<code><nowiki>{{sk|Industry|Industry|IV}}</nowiki></code> give {{sk|Industry|Industry|IV}}.
+
;rank
 +
: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>).  
  
<pre><nowiki>
+
;icon
(mult, cost)
+
:Use <code>icon=yes</code> to display a small skill icon 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.  
{{#switch: {{{mult}}}
 
| case = result
 
| case = result
 
| ...
 
| case = result
 
| #default = default result
 
}}
 
{{SkillTimeInfo|{{{mult|1x}}}}}
 
  
{{#if:{{{mult|}}} | {{#if:{{{cost|}}} | both set ({{{mult}}} {{{cost}}}) | only mult set ({{{mult}}}) }} | {{#if:{{{cost|}}} | only cost set ({{{cost}}}) | }} }}
+
;cost
 +
: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.
  
{{#if: {{{param|}}} | Param is set | Param is not set }}
+
;mult
</nowiki></pre>
+
:If you would like to indicate what the skill's [[Skill_training#Training_Time_Multipliers|training time multiplier]] multiplier is, add it hereWrite 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.
 +
 
 +
=== Examples ===
 +
 
 +
<code><nowiki>{{sk|Industry|Mass Production}}</nowiki></code> gives {{sk|Industry|Mass Production}}.
 +
 
 +
<code><nowiki>{{sk|Industry|Industry|IV|icon=yes}}</nowiki></code> gives {{sk|Industry|Industry|IV|icon=yes}}.
 +
 
 +
<code><nowiki>{{sk|Industry|Refinery Efficiency|cost=252K|mult=3x}}</nowiki></code> gives {{sk|Industry|Refinery Efficiency|cost=252K|mult=3x}}.
 
</noinclude>
 
</noinclude>

Revision as of 11:33, 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 | rank | icon=yes | cost= | 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.
rank
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, IV, not iv or 4).
icon
Use icon=yes to display a small skill icon 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.
cost
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 multiplier is, add it hereWrite 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, 252K ISK).