Template:SimpleGoal

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:46, 17 October 2024 (Created page with "<includeonly> {| cellpadding="4" cellspacing="0" border="0" style="border: 1px solid #999999;width:{{{Width|300}}}px;background-color:transparent" <!-- Start with the goal template code to generate a wiki style table. --> <!-- First cell has a skill icon that clicks to the skill --> | style="width:25px; border:0px;" | {{{Label|25px}}} <!-- The second cell contains yet another table. --> | style="border:0px;" | {| style="width:{{{B..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:SimpleGoal/doc. [edit] [history] [purge]

The SimpleGoal template displays a completion bar based on the amount of the goal that has currently been achieved. For skill goals, see Template:Goal.

Usage

{{SimpleGoal
|Label     = optional label (replaces image of coins)
|Goal      = target number
|Have      = current number
|Units     = units to display after the amount to go (e.g "gp")
|Width     = overall width (default 300 pixels)
|BarColor1 = colour of achieved part of progress bar (default gold)
|BarColor2 = colour of remaining part of progress bar (default dark red)
|BarWidth  = width of bar (default 110 pixels)
}}

Examples

Below are some examples of the various uses of the SimpleGoal template. The first example gives the desired number of coins and the number so far:

{{SimpleGoal|Goal=1000000|Have=215000|Units=gp}}

The example produces the following result:

215,000
21% 785,000 gp


The second example gives the desired number of music songs and the number so far:

{{SimpleGoal
|Label = [[File:Music.png]]
|BarColor1 = darkcyan
|Goal = 500
|Have = 312
|Units = songs
}}

The example produces the following result:

312  
62% 188 songs


The third example gives the desired number of quest points and the number so far:

{{SimpleGoal
|Label = [[File:Quest point icon.png]]
|BarColor1 = green
|BarColor2 = blue
|Goal = 270
|Have = 256
|Units = qp
}}

The example produces the following result:

256  
94% 14 qp


The fourth example gives the quest points, but with the widths specified to match the size of the Goal template:

{{SimpleGoal
|Label = [[File:Quest point icon.png]]
|BarColor1 = green
|BarColor2 = blue
|Goal = 270
|Have = 256
|Units = qp
|Width = 441
|BarWidth = 201
}}

The example produces the following result:

256  
94% 14 qp