Difference between revisions of "Template:GetSkillLink"

From EVE University Wiki
Jump to: navigation, search
m (Update for April 2022 Version 20.04. Change <Racial> Industrial to, for now, point to <Racial> Hauler.)
m (Update for April 2022 Version 20.04. Remove "old" <Racial> Industrial skill)
Line 362: Line 362:
 
  | Amarr Frigate = Spaceship Command#Amarr Frigate{{!}}Amarr Frigate
 
  | Amarr Frigate = Spaceship Command#Amarr Frigate{{!}}Amarr Frigate
 
  | Amarr Hauler = Spaceship Command#Amarr Hauler{{!}}Amarr Hauler
 
  | Amarr Hauler = Spaceship Command#Amarr Hauler{{!}}Amarr Hauler
| Amarr Industrial = Spaceship Command#Amarr Hauler{{!}}Amarr Industrial
 
 
  | Amarr Strategic Cruiser = Spaceship Command#Amarr Strategic Cruiser{{!}}Amarr Strategic Cruiser
 
  | Amarr Strategic Cruiser = Spaceship Command#Amarr Strategic Cruiser{{!}}Amarr Strategic Cruiser
 
  | Amarr Tactical Destroyer = Spaceship Command#Amarr Tactical Destroyer{{!}}Amarr Tactical Destroyer
 
  | Amarr Tactical Destroyer = Spaceship Command#Amarr Tactical Destroyer{{!}}Amarr Tactical Destroyer
Line 377: Line 376:
 
  | Caldari Frigate = Spaceship Command#Caldari Frigate{{!}}Caldari Frigate
 
  | Caldari Frigate = Spaceship Command#Caldari Frigate{{!}}Caldari Frigate
 
  | Caldari Hauler = Spaceship Command#Caldari Hauler{{!}}Caldari Hauler
 
  | Caldari Hauler = Spaceship Command#Caldari Hauler{{!}}Caldari Hauler
| Caldari Industrial = Spaceship Command#Caldari Hauler{{!}}Caldari Industrial
 
 
  | Caldari Strategic Cruiser = Spaceship Command#Caldari Strategic Cruiser{{!}}Caldari Strategic Cruiser
 
  | Caldari Strategic Cruiser = Spaceship Command#Caldari Strategic Cruiser{{!}}Caldari Strategic Cruiser
 
  | Caldari Tactical Destroyer = Spaceship Command#Caldari Tactical Destroyer{{!}}Caldari Tactical Destroyer
 
  | Caldari Tactical Destroyer = Spaceship Command#Caldari Tactical Destroyer{{!}}Caldari Tactical Destroyer
Line 402: Line 400:
 
  | Gallente Frigate = Spaceship Command#Gallente Frigate{{!}}Gallente Frigate
 
  | Gallente Frigate = Spaceship Command#Gallente Frigate{{!}}Gallente Frigate
 
  | Gallente Hauler = Spaceship Command#Gallente Hauler{{!}}Gallente Hauler
 
  | Gallente Hauler = Spaceship Command#Gallente Hauler{{!}}Gallente Hauler
| Gallente Industrial = Spaceship Command#Gallente Hauler{{!}}Gallente Industrial
 
 
  | Gallente Strategic Cruiser = Spaceship Command#Gallente Strategic Cruiser{{!}}Gallente Strategic Cruiser
 
  | Gallente Strategic Cruiser = Spaceship Command#Gallente Strategic Cruiser{{!}}Gallente Strategic Cruiser
 
  | Gallente Tactical Destroyer = Spaceship Command#Gallente Tactical Destroyer{{!}}Gallente Tactical Destroyer
 
  | Gallente Tactical Destroyer = Spaceship Command#Gallente Tactical Destroyer{{!}}Gallente Tactical Destroyer
Line 426: Line 423:
 
  | Minmatar Frigate = Spaceship Command#Minmatar Frigate{{!}}Minmatar Frigate
 
  | Minmatar Frigate = Spaceship Command#Minmatar Frigate{{!}}Minmatar Frigate
 
  | Minmatar Hauler = Spaceship Command#Minmatar Hauler{{!}}Minmatar Hauler
 
  | Minmatar Hauler = Spaceship Command#Minmatar Hauler{{!}}Minmatar Hauler
| Minmatar Industrial = Spaceship Command#Minmatar Hauler{{!}}Minmatar Industrial
 
 
  | Minmatar Strategic Cruiser = Spaceship Command#Minmatar Strategic Cruiser{{!}}Minmatar Strategic Cruiser
 
  | Minmatar Strategic Cruiser = Spaceship Command#Minmatar Strategic Cruiser{{!}}Minmatar Strategic Cruiser
 
  | Minmatar Tactical Destroyer = Spaceship Command#Minmatar Tactical Destroyer{{!}}Minmatar Tactical Destroyer
 
  | Minmatar Tactical Destroyer = Spaceship Command#Minmatar Tactical Destroyer{{!}}Minmatar Tactical Destroyer
Line 432: Line 428:
 
  | ORE Freighter = Spaceship Command#ORE Freighter{{!}}ORE Freighter
 
  | ORE Freighter = Spaceship Command#ORE Freighter{{!}}ORE Freighter
 
  | ORE Hauler = Spaceship Command#ORE Hauler{{!}}ORE Hauler
 
  | ORE Hauler = Spaceship Command#ORE Hauler{{!}}ORE Hauler
| ORE Industrial = Spaceship Command#ORE Hauler{{!}}ORE Industrial
 
 
  | Precursor Battlecruiser = Spaceship Command#Precursor Battlecruiser{{!}}Precursor Battlecruiser
 
  | Precursor Battlecruiser = Spaceship Command#Precursor Battlecruiser{{!}}Precursor Battlecruiser
 
  | Precursor Battleship = Spaceship Command#Precursor Battleship{{!}}Precursor Battleship
 
  | Precursor Battleship = Spaceship Command#Precursor Battleship{{!}}Precursor Battleship

Revision as of 15:22, 6 April 2022

Template documentation (for the above template, sometimes hidden or invisible)

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 | level }}
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).
level
The level of the skill (as per the usual Eve convention, use upper-case Roman numerals (like I, III or 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 level.

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}}, {{GetSkillMult}}, and {{GetSkillAlpha}}: very similar templates for the skillbook NPC-seeded price, the skill training time multiplier, and the max skill level for Alpha clones.
  • {{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: Version 22.01 - Equinox (11 June 2024).

Instructions for updating the template

The bulk of the template code is made up of a lookup table, implemented with the MediaWiki switch parser function. Each skill in the game is on a separate line, formatted like this:
| <skill name> = <skill group> # <skill name> {{!}} <skill name>

For example, the line for the Caldari Battleship skill looks like this:

| Caldari Battleship = Spaceship Command#Caldari Battleship{{!}}Caldari Battleship

What this line does is check if the first parameter passed to the template is equal to Caldari Battleship. If it is, the template outputs

Spaceship Command#Caldari Battleship|Caldari Battleship

({{!}} is equal to the pipe (|) character). The template then adds square brackets, the Skills: prefix, and a skill rank (if specified) to give a piped link to the skill entry for Caldari Battleship.

Therefore, to update the template, modify the affected lines as per the scheme above. The skills are grouped and in alphabetical order (to make it easier to maintain the template), so if necessary move some lines around to preserve this order. Don't forget to also update {{GetSkillPrice}} and {{GetSkillMult}} (which use a very similar coding for the skillbook price and training time multiplier).
Visit Template:GetSkillLink/doc to edit this text! (How does this work?) (Refresh this text - why?)