Template:Optimal quest/action/doc: Difference between revisions

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
(Created page with "{{Documentation}} This template can be used for a standardised way to insert a notice that tells players to perform a simple action, for the Optimal Quest Guide. This can be used in a similar way to the train template. Example: {{t|Optimal quest/action|Build an oak larder in your PoH|skill=construction|xp=480}} results in the following, assuming the player has exactly 20,000 Construction experience bef...")
 
No edit summary
Tag: Reverted
Line 1: Line 1:
{{Documentation}}
{{documentation}}


The '''Optimal quest''' template uses <code><nowiki>{{SCP}}</nowiki></code> and other elements and is featured only on the [[Optimal quest guide]] page. It uses the variables used on the guide page to generate a string and update the template. For any given <code>skill</code> the variable <code>skillxp</code> needs to be defined in advance.
This template can be used for a standardised way to insert a notice that tells players to perform a simple action, for the [[Optimal Quest Guide]]. This can be used in a similar way to the [[Template:Optimal quest/train|train]] template.


It creates a list of skill levels based on the previous value in the variable, plus the specified experience, and increments the value of the variable to that value.
Example: {{t|Optimal quest/action|Build an [[oak larder]] in your [[Player-owned House|PoH]]|skill=construction|xp=480}} results in the following, assuming the player has exactly 20,000 [[Construction]] experience before this action.


==Usage==
{{#vardefine:constructionxp|20000}}
<code><nowiki>{{Optimal quest|<skill>=<xp>|<skill>=<xp>|etc...}}</nowiki></code>
Build an [[oak larder]] in your [[Player-owned House|PoH]]. This gives {{SCP|construction|480|link=yes}} experience{{#ifeq:480|0|<!-- no xp rewarded -->

|, training from level {{Level|{{#var:constructionxp}}}} to level {{Level| {{#vardefineecho:constructionxp| {{#expr:{{#var:constructionxp}} + 480}} }}}}
==Example==
}}.
<pre>{{#vardefine:magicxp|{{XP|19}}}}
{{#vardefine:prayerxp|{{XP|42}}}}
{{#vardefine:constructionxp|{{XP|95}}}}
{{Optimal quest|magic=10000|prayer=9500|construction=191919}}</pre>

{{#vardefine:magicxp|{{XP|19}}}}{{#vardefine:prayerxp|{{XP|42}}}}{{#vardefine:constructionxp|{{XP|95}}}}
{{Optimal quest|magic=10000|prayer=9500|construction=191919}}

==See also==
*[[Template:Optimal quest/train|Skill training sub-template]]
*[[Optimal quest guide]]

<includeonly>[[Category:Image templates|{{PAGENAME}}]]</includeonly>
{{TemplateData|<templatedata>
{
"params": {
"attack": {
"label": "Attack",
"description": "Attack experience gained",
"type": "number"
},
"defence": {
"label": "Defence",
"description": "Defence experience gained",
"type": "number"
},
"strength": {
"label": "Strength",
"description": "Strength experience gained",
"type": "number"
},
"hitpoints": {
"label": "Hitpoints",
"description": "Hitpoints experience gained",
"type": "number"
},
"ranged": {
"label": "Ranged",
"description": "Ranged experience gained",
"type": "number"
},
"prayer": {
"label": "Prayer",
"description": "Prayer experience gained",
"type": "number"
},
"magic": {
"label": "Magic",
"description": "Magic experience gained",
"type": "number"
},
"cooking": {
"label": "Cooking",
"description": "Cooking experience gained",
"type": "number"
},
"woodcutting": {
"label": "Woodcutting",
"description": "Woodcutting experience gained",
"type": "number"
},
"fletching": {
"label": "Fletching",
"description": "Fletching experience gained",
"type": "number"
},
"fishing": {
"label": "Fishing",
"description": "Fishing experience gained",
"type": "number"
},
"firemaking": {
"label": "Firemaking",
"description": "Firemaking experience gained",
"type": "number"
},
"crafting": {
"label": "Crafting",
"description": "Crafting experience gained",
"type": "number"
},
"smithing": {
"label": "Smithing",
"description": "Smithing experience gained",
"type": "number"
},
"mining": {
"label": "Mining",
"description": "Mining experience gained",
"type": "number"
},
"herblore": {
"label": "Herblore",
"description": "Herblore experience gained",
"type": "number"
},
"agility": {
"label": "Agility",
"description": "Agility experience gained",
"type": "number"
},
"thieving": {
"label": "Thieving",
"description": "Thieving experience gained",
"type": "number"
},
"slayer": {
"label": "Slayer",
"description": "Slayer experience gained",
"type": "number"
},
"farming": {
"label": "Farming",
"description": "Farming experience gained",
"type": "number"
},
"runecraft": {
"label": "Runecraft",
"description": "Runecraft experience gained",
"type": "number"
},
"hunter": {
"label": "Hunter",
"description": "Hunter experience gained",
"type": "number"
},
"construction": {
"label": "Construction",
"description": "Construction experience gained",
"type": "number"
}
},
"description": "Keeps track of levels and outputs any levels that are specified in its parameters. Used on [[Optimal Quest Guide]] and on [[:Category:Account builds|Account builds]]",
"format": "inline"
}
</templatedata>}}

Revision as of 00:39, 17 October 2024

This is a documentation subpage for Template:Optimal quest/action.
It contains usage information, categories, and other content that is not part of the original template page.

The Optimal quest template uses {{SCP}} and other elements and is featured only on the Optimal quest guide page. It uses the variables used on the guide page to generate a string and update the template. For any given skill the variable skillxp needs to be defined in advance.

It creates a list of skill levels based on the previous value in the variable, plus the specified experience, and increments the value of the variable to that value.

Usage

{{Optimal quest|<skill>=<xp>|<skill>=<xp>|etc...}}

Example

{{#vardefine:magicxp|{{XP|19}}}}
{{#vardefine:prayerxp|{{XP|42}}}}
{{#vardefine:constructionxp|{{XP|95}}}}
{{Optimal quest|magic=10000|prayer=9500|construction=191919}}


43 Prayer  Prayer
30 Magic  Magic
95 Construction  Construction

See also


Template data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

Keeps track of levels and outputs any levels that are specified in its parameters. Used on [[Optimal Quest Guide]] and on [[:Category:Account builds|Account builds]]

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Attackattack

Attack experience gained

Numberoptional
Defencedefence

Defence experience gained

Numberoptional
Strengthstrength

Strength experience gained

Numberoptional
Hitpointshitpoints

Hitpoints experience gained

Numberoptional
Rangedranged

Ranged experience gained

Numberoptional
Prayerprayer

Prayer experience gained

Numberoptional
Magicmagic

Magic experience gained

Numberoptional
Cookingcooking

Cooking experience gained

Numberoptional
Woodcuttingwoodcutting

Woodcutting experience gained

Numberoptional
Fletchingfletching

Fletching experience gained

Numberoptional
Fishingfishing

Fishing experience gained

Numberoptional
Firemakingfiremaking

Firemaking experience gained

Numberoptional
Craftingcrafting

Crafting experience gained

Numberoptional
Smithingsmithing

Smithing experience gained

Numberoptional
Miningmining

Mining experience gained

Numberoptional
Herbloreherblore

Herblore experience gained

Numberoptional
Agilityagility

Agility experience gained

Numberoptional
Thievingthieving

Thieving experience gained

Numberoptional
Slayerslayer

Slayer experience gained

Numberoptional
Farmingfarming

Farming experience gained

Numberoptional
Runecraftrunecraft

Runecraft experience gained

Numberoptional
Hunterhunter

Hunter experience gained

Numberoptional
Constructionconstruction

Construction experience gained

Numberoptional