Difference between revisions of "Template:Sk"

From EVE University Wiki
Jump to: navigation, search
m (Cleanup page presentation by making some stuff invisible on this page)
 
(30 intermediate revisions by 4 users not shown)
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;({{{mult}}}, {{{cost}}} ISK) |&nbsp;({{{mult}}}) }} | {{#if:{{{cost|}}} |&nbsp;({{{cost}}} ISK) |}} }}<noinclude>
+
<includeonly><span style="white-space:nowrap;">{{#ifeq:{{{icon|no}}} | yes | [[Image:Icon skillbook2.png|link=|16px]]&nbsp;|}}{{GetSkillLink|{{{1}}}|{{{2|}}}}}{{#ifeq:{{{mult|no}}} | yes | {{#ifeq:{{{price|no}}} | yes |&nbsp;({{SkillTimeInfo|{{GetSkillMult|{{{1}}}}}|{{{2}}}}}, {{SkillPriceInfo|{{GetSkillPrice|{{{1}}}}}}})|&nbsp;({{SkillTimeInfo|{{GetSkillMult|{{{1}}}}}|{{{2}}}}})}}|{{#ifeq:{{{price|no}}}|yes|&nbsp;({{SkillPriceInfo|{{GetSkillPrice|{{{1}}}}}}})|}}}}</span></includeonly><noinclude>
== 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. 
 
 
 
=== Syntax ===
 
 
 
<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.
 
 
 
;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
 
: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, <code>IV</code>, not <code>iv</code> or <code>4</code>).
 
 
 
;icon
 
: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.
 
 
 
;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.
 
 
 
;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.
 
 
 
=== 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}}.
 
 
 
<code><nowiki>{{sk|Navigation|Afterburner|mult=1x}}</nowiki></code> gives {{sk|Navigation|Afterburner|mult=1x}}.
 
 
</noinclude>
 
</noinclude>

Latest revision as of 12:52, 20 November 2021

Template documentation (for the above template, sometimes hidden or invisible)
Description
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 :)
Dependencies
Uses
{{GetSkillLink}} - Look up skill link.
{{GetSkillMult}} - Look up skill multiplier.
{{GetSkillPrice}} - Look up skill price.
{{SkillTimeInfo}} - Skill multiplier tooltip
{{SkillPriceInfo}} - Skill price tooltip.
Syntax
{{Sk|<skill>|<level>|<icon= icon>|<price= price>|<mult= mult>}}
Parameters
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 capitalized 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) - this can be particularly useful in the middle of a paragraph. 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. The mouseover tooltip will give a rough indication of how long the training time for that skill will be. If combined with a level parameter, then the mouseover tooltip will show the training time to that specific skill level. 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|Reprocessing Efficiency|price=yes|mult=yes}} gives Reprocessing Efficiency (3x, 300k ISK).
{{sk|Afterburner|mult=yes}} gives Navigation Afterburner (1x).
{{sk|Gallente Titan|IV|mult=yes|price=no}} gives Gallente Titan IV (16x).
{{sk|Wabbit-Hunting}} gives [[Skills:Wabbit-Hunting]].
See also
{{Skill}}, which produces the beautiful skill overview boxes used on the skill category pages.
Visit Template:Sk/doc to edit this text! (How does this work?) (Refresh this text - why?)