Difference between revisions of "Template:Scale"

From Discworld MUD Wiki
Jump to: navigation, search
(Created template)
 
m (Prettify documentation)
Line 8: Line 8:
 
*'''intervals''': Number of intervals in scale (default: 10)
 
*'''intervals''': Number of intervals in scale (default: 10)
  
{{documentation}}</noinclude>
+
{{documentation}}</noinclude><includeonly>
 
{| border="1" style="font-size:80%; border:1px solid darkgray; padding:0px" cellspacing="0" cellpadding="0"
 
{| border="1" style="font-size:80%; border:1px solid darkgray; padding:0px" cellspacing="0" cellpadding="0"
 
  |-
 
  |-
Line 30: Line 30:
 
  | colspan="{{#expr:{{{intervals|10}}} + 3}}" style="line-height:20%; border:0px" | &nbsp;
 
  | colspan="{{#expr:{{{intervals|10}}} + 3}}" style="line-height:20%; border:0px" | &nbsp;
 
  |-
 
  |-
  |}
+
  |}</includeonly>

Revision as of 09:18, 11 July 2009

This is a template for a scale bar. It creates a horizontal bar with scale min to max, at the interval spacing provided.

The parameters are:

  • barsize: Size of skillbar section in pixels (default: 300)
  • scale-min: Lowest scale value
  • scale-max: Highest scale value
  • intervals: Number of intervals in scale (default: 10)

[edit]

Documentation
This is a template for a scale bar. It creates a horizontal bar with scale min to max, at the interval spacing provided.

The parameters are:

  • barsize: Size of skillbar section in pixels (default: 300)
  • scale-min: Lowest scale value
  • scale-max: Highest scale value
  • intervals: Number of intervals in scale (default: 10)