Difference between revisions of "Template:Sk"

From EVE University Wiki
Jump to: navigation, search
(Beginning documentation)
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>
 
{{#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>
 
== Documentation ==  
 
== Documentation ==  
 +
 +
:This template is useful if you want to link to a skill page on the Uni wiki.
  
 
=== Syntax ===
 
=== Syntax ===
  
<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.
 +
 
 +
;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>).
  
 
<code><nowiki>{{sk|Industry|Mass Production|icon=yes}}</nowiki></code> give {{sk|Industry|Mass Production|icon=yes}}.
 
<code><nowiki>{{sk|Industry|Mass Production|icon=yes}}</nowiki></code> give {{sk|Industry|Mass Production|icon=yes}}.

Revision as of 09:57, 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.

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 capitalise the category correctly (Missile Launcher Operation, not Missile launcher operation).

{{sk|Industry|Mass Production|icon=yes}} give Icon skillbook2.png Mass Production.

{{sk|Industry|Industry|IV}} give Industry IV.

(mult, cost)
{{#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}}}) | }} }}

{{#if: {{{param|}}} | Param is set | Param is not set }}