Template:Ldep/doc

From Discworld MUD Wiki
Revision as of 18:24, 24 July 2011 by Protectbot (Talk | contribs) (Protected "Template:Ldep/doc": Autoprotecting high volume page ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a template for a linear skill dependency. It creates a horizontal bar with scale min to max, and then colours the sections within it, from red ('certainly fail') through yellow to green ('certainly succeed'). It inserts black vertical lines at the 5%, 50% and 95% marks.

The parameters are:

  • skill: Name of skill
  • shortname: Shortname (usually 2.2.2.2 format, eg. 'ma.me.el.ai').
  • barsize: Size of skillbar section in pixels (default: 300)
  • scale-min: Lowest scale value
  • scale-max: Highest scale value
  • threshold-low: Bonus for < 5% success
  • threshold-high: Bonus for >= 95% success

Specifically, the gradations are:

0-5%
5-15%
15-25%
25-35%
35-45%
45-55%
55-65%
65-75%
75-85%
85-95%
95-100%