Difference between revisions of "Template:SkillTimeInfo"

From EVE University Wiki
Jump to: navigation, search
(Rewrote template with a more detailed tooltip.)
(Error handling)
Line 1: Line 1:
 
<span style="cursor: help;" title="{{#switch: {{{1}}}
 
<span style="cursor: help;" title="{{#switch: {{{1}}}
| #default
 
 
  | 1x = This skill has the shortest training time  possible. It will take approximately 8 minutes to train to level I, 4 hours to train to level III, and 6 days to train to level V (assuming no implants or neural remaps).
 
  | 1x = This skill has the shortest training time  possible. It will take approximately 8 minutes to train to level I, 4 hours to train to level III, and 6 days to train to level V (assuming no implants or neural remaps).
 
  | 2x = This skill takes {{{1}}} as long to train compared to a skill with a multiplier of 1x. It will take approximately 17 minutes to train to level I, 9 hours to train to level III, and 12 days to train to level V (assuming no implants or neural remaps).
 
  | 2x = This skill takes {{{1}}} as long to train compared to a skill with a multiplier of 1x. It will take approximately 17 minutes to train to level I, 9 hours to train to level III, and 12 days to train to level V (assuming no implants or neural remaps).
Line 17: Line 16:
 
  | 15x = This skill takes {{{1}}} as long to train compared to a skill with a multiplier of 1x. It will take approximately 2 hours to train to level I, 3 days to train to level III, and an utterly ludicrous 13 weeks to train to level V (assuming no implants or neural remaps).
 
  | 15x = This skill takes {{{1}}} as long to train compared to a skill with a multiplier of 1x. It will take approximately 2 hours to train to level I, 3 days to train to level III, and an utterly ludicrous 13 weeks to train to level V (assuming no implants or neural remaps).
 
  | 16x = This skill takes {{{1}}} as long to train compared to a skill with a multiplier of 1x. It will take approximately 2 hours to train to level I, 3 days to train to level III, and an utterly ludicrous 13 weeks to train to level V (assuming no implants or neural remaps).
 
  | 16x = This skill takes {{{1}}} as long to train compared to a skill with a multiplier of 1x. It will take approximately 2 hours to train to level I, 3 days to train to level III, and an utterly ludicrous 13 weeks to train to level V (assuming no implants or neural remaps).
 +
| #default = This skill has an unknown training time. Please check whether you are using the template correctly.
 
}}">{{{1|1x}}}</span><noinclude>
 
}}">{{{1|1x}}}</span><noinclude>
  
 
== Documentation ==
 
== Documentation ==
 
 
  
 
:This template generates a small tooltip (displayed when moving the mouse over the text) explaining what a [[Skill_training#Training_Time_Multipliers|skill training time multiplier]] is.
 
:This template generates a small tooltip (displayed when moving the mouse over the text) explaining what a [[Skill_training#Training_Time_Multipliers|skill training time multiplier]] is.
Line 30: Line 28:
  
 
;multiplier
 
;multiplier
:Enter the skill training time multiplier here, and add an "x" to the end, like <code>1x</code> or <code>5x</code>. If this argument is not specified, the template will assume a 1x multiplier (although if you're not specifying an argument, why use this template at all?).  
+
:Enter the skill training time multiplier here, and add a lower-case "x" to the end, like <code>1x</code> or <code>5x</code>. If this argument is not specified, the template will display a 1x multiplier, but generate a (hopefully helpful) error message in the tooltip.
  
 
=== Examples ===
 
=== Examples ===

Revision as of 14:38, 27 November 2013

1x

Documentation

This template generates a small tooltip (displayed when moving the mouse over the text) explaining what a skill training time multiplier is.

Syntax

{{SkillTimeInfo | multiplier }}
multiplier
Enter the skill training time multiplier here, and add a lower-case "x" to the end, like 1x or 5x. If this argument is not specified, the template will display a 1x multiplier, but generate a (hopefully helpful) error message in the tooltip.

Examples

{{SkillTimeInfo|3x}} gives 3x.
{{SkillTimeInfo}} gives 1x.

See also

{{SkillPriceInfo}}, a similar template dealing with skill book prices.

Implementation notes

The times shown in the tooltip were calculated for 1800 skill points per hour (= all attributes at 20), which is a good approximation, as basic characters have all their attributes at 20 except Charisma (which is at 19). In any case, the tooltip is meant to only give a rough approximation, as for most characters, their training time will be modified by implants or neural remaps.
Additionally, the template was constructed from plain text, instead of using a mathematical formula to arrive at the approximate training times. While this makes the template code longer, it's arguably more readable, and allows for rounding numbers for the sake of clarity.