User:Azaghal/SkillTemplate

Proposal for skills template. We v2 now.

Changelog:

v1 - Original version.

v2 - Added support for passive skills. Likely broke something along the way. Fixed.

Currently we only use something similar on Racial Traits page, but we might eventually add all the skills from the game. If we use the current way (skill details are inserted as screenshots from the game), it will be very tedious to account for any skill changes (in case EME does some balancing with skills, for example).

This template uses only wikitext, so editing skill entries should be much easier.

Example of how end result should look (active and passive skill):

What we currently have, for comparison (note that the right part is an image):

Notes:
 * I used Arial for the font. That way we should have maximum compatibility, plus I have no idea what font is used in-game.
 * I couldn't recreate the gradient border around Cast time/Cooldown entries. Wikitext doesn't support gradients and using CSS would be very hacky and likely to break on older browsers. It can't be helped.
 * Icon width is hard-coded, so using icons with width other than 56px shouldn't break anything.

Template text:  Parameters:
 * icon: The skill icon. Currently has no default value (this ought to be changed to some placeholder image).
 * title: The skill title. Defaults to "Title" if not specified.
 * casttime: The skill cast time. Defaults to "Unspecified" if not specified.
 * cooldown: The skill cooldown. Defaults to "Unspecified" if not specified.
 * text: Skill description/flavor text. Defaults to "Description" if not specified.
 * passive: Optional parameter. If present and set to some (any) value, indicates that the skill is passive and both Cast time and Cooldown shouldn't be used. For clarity, use "passive=true".

Usage example: 