Template:Items Needed/doc: Difference between revisions

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 1: Line 1:
{{Documentation}}
{{documentation}}
The '''Needed''' template is used on quest mw.pages and quick guides to list items players will need.
The '''Items Needed''' template gives the number of items needed (rounded up) to get to a particular goal level.


==Usage==
==Usage==
<pre>
<pre>{{Needed|2 [[super antifire]]s, a [[dragonfire shield]], and an [[abyssal whip]]}}</pre>
{{Items Needed
produces:
|Goal = target level
{{Needed|2 [[super antifire]]s, a [[dragonfire shield]], and an [[abyssal whip]]}}
|Level = current level
|Xp = current experience points (alternative to Level)
|ItemXp = the experience each item gives
}}
</pre>


===Copy+paste===
<pre>{{Items Needed|Goal=|Level=|ItemXp=}}</pre>


==Examples==
An optional parameter, <code>'''recommended'''</code>, is available:
The first example defines the current skill status using the ''Level'' parameter:
<pre>{{Items Needed|Goal=50|Level=43|ItemXp=72}}</pre>
The example produces the following result:
{{Items Needed|Goal=50|Level=43|ItemXp=72}}


The second example defines the actual skill status by using the ''Xp'' parameter:
<pre>{{Needed|2 [[super antifire]]s, a [[dragonfire shield]], and an [[abyssal whip]]|recommended=A [[white partyhat]] and 200 million [[coins]]}}</pre>
<pre>{{Items Needed|Goal=50|Xp=51234|ItemXp=72}}</pre>
produces:
The example produces the following result:
{{Needed|2 [[super antifire]]s, a [[dragonfire shield]], and an [[abyssal whip]]|recommended=A [[white partyhat]] and 200 million [[coins]]}}
{{Items Needed|Goal=50|Xp=51234|ItemXp=72}}


<includeonly>[[Category:Mathematical templates|{{PAGENAME}}]][[Category:User templates|{{PAGENAME}}]]</includeonly>

The optional parameter can also be the sole parameter:

<pre>{{Needed|recommended=A [[white partyhat]] and 200 million [[coins]]}}</pre>
produces:
{{Needed|recommended=A [[white partyhat]] and 200 million [[coins]]}}

==Placement==
This template should be placed at the beginning of each section, after subheadings and before the main body of text.

{{TemplateData|<templatedata>
{
"params": {
"1": {
"label": "Items needed",
"type": "content",
"suggested": true
},
"recommended": {
"label": "Items recommended",
"type": "content",
"suggested": true
}
},
"format": "inline",
"description": "This template is used on quest mw.pages and quick guides to list items players will need."
}
</templatedata>}}
<includeonly>[[Category:Transclusion templates|{{PAGENAME}}]]</includeonly>

Latest revision as of 11:44, 17 October 2024

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

The Items Needed template gives the number of items needed (rounded up) to get to a particular goal level.

Usage

{{Items Needed
|Goal   = target level
|Level  = current level
|Xp     = current experience points (alternative to Level)
|ItemXp = the experience each item gives
}}

Copy+paste

{{Items Needed|Goal=|Level=|ItemXp=}}

Examples

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

{{Items Needed|Goal=50|Level=43|ItemXp=72}}

The example produces the following result: 709

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

{{Items Needed|Goal=50|Xp=51234|ItemXp=72}}

The example produces the following result: 696