Malline:Tavoite/doc

RuneWikistä, vapaasta RuneScape-aiheisesta tietosanakirjasta. Tänään on 30. huhtikuuta 2024.
Siirry valikkoon Siirry hakuun
Documentation This is a documentation subpage for Malline:Tavoite (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

The Goal template displays a skill goal level and compares it with the current level and shows a completion bar based on the amount of experience points. It copies the functionality provided by other fan-sites and which some users have included into their user page. For non-skill goals, see Template:SimpleGoal.

Usage[muokkaa wikitekstiä]

{{Goal
  |Skill     = name of skill
  |Label     = optional label (replaces skill image)
  |Goal      = target level
  |Level     = current level
  |Xp        = current experience points (alternative to Level)
  |BarColor1 = colour of achieved part of progress bar (default green)
  |BarColor2 = colour of remaining part of progress bar (default blue)
}}

The current status of the skill can either be specified by the Level input parameter or by the Xp input parameter.

Please note that using the template requires 29 kilobytes (kb) of pre-include space, which has a maximum of 2 Megabytes (Mb). So, this gives a maximum of around 65 goal templates on a single user page when no other templates are being used. The generated HTML is typically only 1 kb.

{{Goal|Skill=Mining|Goal=85|Level=72}}

The code yields the following result:

Constitution.png
72 {{{Tavoite}}}
6% -71 12 135 174 xp


From left to the right:

  • The skill / desired icon (see below)
  • (green bar) The accessed level
  • (blue bar) The goal level
  • Completion percentage
  • Levels left to achieve the goal
  • XP left to achieve the goal

Examples[muokkaa wikitekstiä]

Below are some examples of the various uses of the Goal template:

Level[muokkaa wikitekstiä]

The first example defines the current skill status using the Level parameter:

{{Goal|Skill=Mining|Goal=85|Level=72}}

The example produces the following result:

Constitution.png
72 {{{Tavoite}}}
6% -71 12 135 174 xp


XP[muokkaa wikitekstiä]

The second example defines the actual skill status by using the Xp parameter.

{{Goal|Skill=Attack|Goal=85|Xp=900000}}

The example produces the following result:

Constitution.png
72 {{{Tavoite}}}
6% 0 12 134 431 xp


Goal achieved[muokkaa wikitekstiä]

The third example also uses the Xp input value, which just happens to be higher than the value given in the Goal.

{{Goal|Skill=Crafting|Goal=85|Xp=3527150}}

This produces the following result:

Constitution.png
85 {{{Tavoite}}}
27% 0 9 507 281 xp


Optional label and colours[muokkaa wikitekstiä]

The forth example shows how the Label can be used instead of the default Skill image. It also shows how different colours can be specified for the progress bar.

{{Goal|Skill=Crafting|Goal=85|Xp=900000
|Label='''my label'''|BarColor1=darkcyan|BarColor2=red}}

This produces the following result:

Constitution.png
72 {{{Tavoite}}}
6% 0 12 134 431 xp