Difference between revisions of "Template:Sk"

From EVE University Wiki
Jump to: navigation, search
Line 1: Line 1:
{{#ifeq:{{{icon|no}}} | yes | [[Image:Skill.png|link=|16px]]&nbsp;|}}[[Skills:{{{1}}}#{{{2}}}|{{{2}}}{{#if:{{{3|}}}|&nbsp;{{{3}}}|}}]]<noinclude>
+
{{#ifeq:{{{icon|no}}} | yes | [[Image:Skill.png|link=|16px]]&nbsp;|}}[[Skills:{{{1}}}#{{{2}}}|{{{2}}}{{#if:{{{3|}}}|&nbsp;{{{3}}}|}}]] {{#if:{{{mult|}}} | {{#if:{{{cost|}}} | both set ({{{mult}}} {{{cost}}}) | only mult set ({{{mult}}}) }} | {{#if:{{{cost|}}} | only cost set ({{{cost}}}) | }} }}<noinclude>
 
== Documentation ==  
 
== Documentation ==  
  
Line 12: Line 12:
 
<pre><nowiki>
 
<pre><nowiki>
 
(mult, cost)
 
(mult, cost)
{{#switch: comparison string
+
{{#switch: {{{mult}}}
 
  | case = result
 
  | case = result
 
  | case = result
 
  | case = result
Line 21: Line 21:
 
{{SkillTimeInfo|{{{mult|1x}}}}}
 
{{SkillTimeInfo|{{{mult|1x}}}}}
  
{{#if:{{{mult|}}} | {{{mult}}} | }}
+
{{#if:{{{mult|}}} | {{#if:{{{cost|}}} | both set ({{{mult}}} {{{cost}}}) | only mult set ({{{mult}}}) }} | {{#if:{{{cost|}}} | only cost set ({{{cost}}}) | }} }}
  
{{#if: {{{param|}}} | Hooray...! | Darn...! }}
+
{{#if: {{{param|}}} | Param is set | Param is not set }}
 
</nowiki></pre>
 
</nowiki></pre>
 
</noinclude>
 
</noinclude>

Revision as of 09:40, 27 November 2013

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

Documentation

Syntax

{{sk | group | skill | rank | icon=yes | cost= | mult=}}

{{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 }}