Difference between revisions of "Template:GetSkillLink"

From EVE University Wiki
Jump to: navigation, search
(Documentation)
(Expand documentation)
Line 422: Line 422:
 
  | Wholesale = Trade#Wholesale{{!}}Wholesale
 
  | Wholesale = Trade#Wholesale{{!}}Wholesale
 
<!--------- SKILL GROUP: Default ------------>
 
<!--------- SKILL GROUP: Default ------------>
  | #default = <span style="color:red;text-decoration:underline">{{{1|Unknown}}}</span>[[Category:Obsolete Skills]]  
+
  | #default = <span style="color:red" title="This is an obsolete skill, please correct the link.">{{{1|Unknown}}}</span>[[Category:Obsolete Skills]]  
 
}}{{#if:{{{2|}}}|&nbsp;{{{2}}}|}}]]<noinclude>
 
}}{{#if:{{{2|}}}|&nbsp;{{{2}}}|}}]]<noinclude>
 
== Documentation ==
 
== Documentation ==
 
{{WIP}}
 
{{WIP}}
:This template produces a link to the appropriate skill page. It was created to streamline page writing (you no longer need to look up a skill's group in order to link to it, as this template will do it for you) and to flag any pages which need updating when CCP decides to rename or move skills in a future game expansion. Any pages with outdated skill links will be added to the category [[:Category:Obsolete Skills|Obsolete Skills]].
+
:This template produces a link to the appropriate skill page. It was created to streamline page writing (you no longer need to look up a skill's group in order to link to it, as this template will do it for you) and to flag any pages which need updating when CCP decides to rename or move skills in a future game expansion. Any pages with outdated skill links will be added to the category [[:Category:Obsolete Skills|Obsolete Skills]] and will be shown <span style="color:red">in red</span> on the page itself.  
:This template feeds the more general {{tl|sk}} template; in most cases, it's recommended that you use {{tl|sk}} to link to skills, as it has more options and is easier to use.  
+
:This template feeds the more general {{tl|Sk}} template; in most cases, it's recommended that you use {{tl|Sk}} to link to skills, as it has more options and is easier to use.  
  
 
=== Syntax ===
 
=== Syntax ===
Line 444: Line 444:
 
:<code><nowiki>{{GetSkillLink|Wabbit-Hunting}}</nowiki></code> gives {{GetSkillLink|Wabbit-Hunting}}
 
:<code><nowiki>{{GetSkillLink|Wabbit-Hunting}}</nowiki></code> gives {{GetSkillLink|Wabbit-Hunting}}
 
=== Dependencies ===
 
=== Dependencies ===
 +
:The template uses {{tl|!}} to generate the pipe character for the piped links.
  
 
=== See also ===
 
=== See also ===
:{{tl|GetSkillPrice}} and {{tl|GetSkillMult}}, very similar templates for the skillbook NPC-seeded price and the skill training time multiplier.
+
*{{tl|GetSkillPrice}} and {{tl|GetSkillMult}}, very similar templates for the skillbook NPC-seeded price and the skill training time multiplier.
 +
*{{tl|Sk}} and {{tl|Skill}}, the primary users of this template.
  
 
=== Development notes ===
 
=== Development notes ===
 +
:This template is, essentially, a lookup function for all the skills currently in the game. When CCP changes the skill names or groups, or adds/removes skills in a future expansion, update this template (as well as {{tl|GetSkillPrice}} and {{tl|GetSkillMult}}). If skills are merely moved from one group to another, all the links (generated with, for instance, {{tl|Sk}}) on the wiki will be automatically updated. If skill names change, then any pages with obsolete skill names will be listed in [[:Category:Obsolete Skills]], so that you can easily find and correct them.
 +
:The skill information was last updated for: '''Rubicon 1.0'''.
  
<!-- this apparently works:
+
[[Category:Template]]</noinclude>
[[Ishtar]]
 
[[<span style="color:blue">Ishtar</span>[[Category:Skills]]]] 
 
 
 
General format for skill links:
 
[[Skills:<category>#<skill name>|<skill name>&nbsp;<rank>]]
 
 
 
I need some way to escape the pipe character... -->
 
 
 
</noinclude>
 

Revision as of 12:52, 30 December 2013

[[Skills:Unknown]]

Documentation

This page is a work in progress.

This article or section is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well.
If this article or section has not been edited in several days, please remove this template.

This template produces a link to the appropriate skill page. It was created to streamline page writing (you no longer need to look up a skill's group in order to link to it, as this template will do it for you) and to flag any pages which need updating when CCP decides to rename or move skills in a future game expansion. Any pages with outdated skill links will be added to the category Obsolete Skills and will be shown in red on the page itself.
This template feeds the more general {{Sk}} template; in most cases, it's recommended that you use {{Sk}} to link to skills, as it has more options and is easier to use.

Syntax

{{GetSkillLink | skill | rank }}
skill
The name of the skill you would like to link to. Please make sure it's capitalised properly (use title case spelling, i.e. Gallente Strategic Cruiser, not Gallente strategic cruiser).
rank
The rank of the skill (I to V). This parameter is optional; you can omit it if you would only like to link to the skill without reference to a particular skill rank.

Examples

{{GetSkillLink|Mechanics}} gives Mechanics
{{GetSkillLink|Gallente Battleship}} gives Gallente Battleship
{{GetSkillLink|Cloaking|IV}} gives Cloaking IV
{{GetSkillLink|Wabbit-Hunting}} gives [[Skills:Wabbit-Hunting]]

Dependencies

The template uses {{!}} to generate the pipe character for the piped links.

See also

  • {{GetSkillPrice}} and {{GetSkillMult}}, very similar templates for the skillbook NPC-seeded price and the skill training time multiplier.
  • {{Sk}} and {{Skill}}, the primary users of this template.

Development notes

This template is, essentially, a lookup function for all the skills currently in the game. When CCP changes the skill names or groups, or adds/removes skills in a future expansion, update this template (as well as {{GetSkillPrice}} and {{GetSkillMult}}). If skills are merely moved from one group to another, all the links (generated with, for instance, {{Sk}}) on the wiki will be automatically updated. If skill names change, then any pages with obsolete skill names will be listed in Category:Obsolete Skills, so that you can easily find and correct them.
The skill information was last updated for: Rubicon 1.0.