Malline:SimpleGoal

RuneWikistä, vapaasta RuneScape-aiheisesta tietosanakirjasta. Tänään on 4. toukokuuta 2024.
Siirry valikkoon Siirry hakuun


Template Documentation[muokkaa wikitekstiä]

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[muokkaa wikitekstiä]

{{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")
  |BarColor1 = color of achieved part of progress bar (default green)
  |BarColor2 = color of remaining part of progress bar (default blue)
}}

Examples[muokkaa wikitekstiä]

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:

Coins detail.png
215 000
21% 785 000 gp


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

{{SimpleGoal | Label=[[image:Music_icon.PNG]] | BarColor1=darkcyan
   | Goal=500 | Have=312 | Units=songs }}

The example produces the following result:

Music icon.PNG
312  
62% 188 songs


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

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

The example produces the following result:

Quest.png
256  
94% 14 qp