More actions
Talman drak (talk | contribs) updated what patch this page was updated for :P |
More detailled instructions on template coding and how to update it |
||
| Line 454: | Line 454: | ||
: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. | :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: '''Kronos 1.1'''. | :The skill information was last updated for: '''Kronos 1.1'''. | ||
==== Instructions for updating the template ==== | |||
:The bulk of the template code is made up of a lookup table, implemented with the MediaWiki [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23switch switch parser function]. Each skill in the game is on a separate line, formatted like this: | |||
<pre><nowiki>| <skill name> = <skill group> # <skill name> {{!}} <skill name></nowiki></pre> | |||
For example, the line for the Caldari Battleship skill looks like this: | |||
<pre><nowiki>| Caldari Battleship = Spaceship Command#Caldari Battleship{{!}}Caldari Battleship</nowiki></pre> | |||
What this line does is check if the first parameter passed to the template is equal to <code>Caldari Battleship</code>. If it is, the template outputs | |||
<pre>Spaceship Command#Caldari Battleship|Caldari Battleship</pre> | |||
(<code>{{t|!}}</code> is equal to the pipe (<code>|</code>) character). The template then adds square brackets, the <code>Skills:</code> prefix, and a skill rank (if specified) to give a [http://en.wikipedia.org/wiki/Wikipedia:Piped_link piped link] to the skill entry for [[Skills:Spaceship Command#Caldari Battleship|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 {{tl|GetSkillPrice}} and {{tl|GetSkillMult}} (which use a very similar coding for the skillbook price and training time multiplier). | |||
[[Category:Template]]</noinclude> | [[Category:Template]]</noinclude> | ||