<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AMaxPrice%2Fdoc</id>
	<title>Template:MaxPrice/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AMaxPrice%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Template:MaxPrice/doc&amp;action=history"/>
	<updated>2026-04-30T16:30:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.runerealm.org/index.php?title=Template:MaxPrice/doc&amp;diff=36863&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;{{Documentation}} {{invokes|GEMinMax}}  Given a list of items, outputs the item with the highest price as well as the price in a few formats.  See also: * Template:MinPrice for the same as this but minimum value * Template:Max and Template:Min for just getting the largest or smallest number from a list  ==Usage== &lt;pre&gt; {{MaxPrice|item1|item2|item3|...|itemN}}  {{MaxPrice|item1|item2|item3|...|itemN|coins=coins type|link=link type|format=format|var=variables}}...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Template:MaxPrice/doc&amp;diff=36863&amp;oldid=prev"/>
		<updated>2024-10-16T23:37:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation}} {{invokes|GEMinMax}}  Given a list of items, outputs the item with the highest price as well as the price in a few formats.  See also: * &lt;a href=&quot;/w/Template:MinPrice&quot; title=&quot;Template:MinPrice&quot;&gt;Template:MinPrice&lt;/a&gt; for the same as this but minimum value * &lt;a href=&quot;/w/Template:Max&quot; title=&quot;Template:Max&quot;&gt;Template:Max&lt;/a&gt; and &lt;a href=&quot;/w/Template:Min&quot; title=&quot;Template:Min&quot;&gt;Template:Min&lt;/a&gt; for just getting the largest or smallest number from a list  ==Usage== &amp;lt;pre&amp;gt; {{MaxPrice|item1|item2|item3|...|itemN}}  {{MaxPrice|item1|item2|item3|...|itemN|coins=coins type|link=link type|format=format|var=variables}}...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation}}&lt;br /&gt;
{{invokes|GEMinMax}}&lt;br /&gt;
&lt;br /&gt;
Given a list of items, outputs the item with the highest price as well as the price in a few formats.&lt;br /&gt;
&lt;br /&gt;
See also:&lt;br /&gt;
* [[Template:MinPrice]] for the same as this but minimum value&lt;br /&gt;
* [[Template:Max]] and [[Template:Min]] for just getting the largest or smallest number from a list&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{MaxPrice|item1|item2|item3|...|itemN}}&lt;br /&gt;
&lt;br /&gt;
{{MaxPrice|item1|item2|item3|...|itemN|coins=coins type|link=link type|format=format|var=variables}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Unnamed parameters===&lt;br /&gt;
All unnamed parameters are considered to be the item names. There is currently no limit on the number of items.&lt;br /&gt;
&lt;br /&gt;
===coins===&lt;br /&gt;
By default the output value is unformatted. The coins param can be set to format the number:&lt;br /&gt;
* &amp;lt;code&amp;gt;coins=y&amp;lt;/code&amp;gt; - format with [[Template:Coins]]&lt;br /&gt;
* &amp;lt;code&amp;gt;coins=n&amp;lt;/code&amp;gt; - format with [[Template:NoCoins]]&lt;br /&gt;
* &amp;lt;code&amp;gt;coins=f&amp;lt;/code&amp;gt; - format the formatnum magic word (add commas)&lt;br /&gt;
&lt;br /&gt;
;Examples&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
* {{MaxPrice|Abyssal whip|Thread|Fire rune}} (default)&lt;br /&gt;
* {{MaxPrice|coins=y|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
* {{MaxPrice|coins=n|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
* {{MaxPrice|coins=f|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* {{MaxPrice|Abyssal whip|Thread|Fire rune}} (default)&lt;br /&gt;
* {{MaxPrice|coins=y|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
* {{MaxPrice|coins=n|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
* {{MaxPrice|coins=f|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
&lt;br /&gt;
===link===&lt;br /&gt;
By default the item name is linked. This can be changed by:&lt;br /&gt;
* &amp;lt;code&amp;gt;link=n&amp;lt;/code&amp;gt; - remove the link&lt;br /&gt;
* &amp;lt;code&amp;gt;link=p&amp;lt;/code&amp;gt; - format with [[Template:plink]]&lt;br /&gt;
* &amp;lt;code&amp;gt;link=plp&amp;lt;/code&amp;gt; - format with [[Template:plinkp]]&lt;br /&gt;
&lt;br /&gt;
;Examples&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
* {{MaxPrice|Abyssal whip|Thread|Fire rune}} (default)&lt;br /&gt;
* {{MaxPrice|link=n|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
* {{MaxPrice|link=p|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
* {{MaxPrice|link=plp|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* {{MaxPrice|Abyssal whip|Thread|Fire rune}} (default)&lt;br /&gt;
* {{MaxPrice|link=n|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
* {{MaxPrice|link=p|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
* {{MaxPrice|link=plp|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
&lt;br /&gt;
===var===&lt;br /&gt;
Defining var will use that as the basis as names for two variables containing the price and name for later reuse. The variables will contain the formatting exactly as prescribed by the template (i.e. things will be linked or in coins, following the link and coins parameters). The variables are named &amp;lt;code&amp;gt;X_item&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;X_price&amp;lt;/code&amp;gt;, where &amp;lt;code&amp;gt;X&amp;lt;/code&amp;gt; is the value of the var parameter supplied.&lt;br /&gt;
&lt;br /&gt;
This can be done with any format option, though the &amp;lt;code&amp;gt;format=none&amp;lt;/code&amp;gt; option can be used to do entirely custom formatting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{MaxPrice|var=example|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
&lt;br /&gt;
{{MaxPrice|format=none|coins=y|link=p|var=example2|Nature rune|Huge bladed rune salvage|Staff of Sliske}}&lt;br /&gt;
&lt;br /&gt;
The best item is {{#var:example_item}} which costs {{#var:example_price}}.&lt;br /&gt;
&lt;br /&gt;
Another option is {{#var:example2_item}} which costs {{#var:example2_price}}.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{MaxPrice|var=example|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
&lt;br /&gt;
{{MaxPrice|format=none|coins=y|link=p|var=example2|Nature rune|Huge bladed rune salvage|Staff of Sliske}}&lt;br /&gt;
&lt;br /&gt;
The best item is {{#var:example_item}} which costs {{#var:example_price}}.&lt;br /&gt;
&lt;br /&gt;
Another option is {{#var:example2_item}} which costs {{#var:example2_price}}.&lt;br /&gt;
&lt;br /&gt;
===format===&lt;br /&gt;
The format of the output can be changed with this parameter. Currently the following formats are supported:&lt;br /&gt;
&lt;br /&gt;
;bracket&lt;br /&gt;
:&amp;#039;&amp;#039;Aliases&amp;#039;&amp;#039;: b, &amp;lt;nothing&amp;gt;&lt;br /&gt;
Bracket is the default format, it outputs the as &amp;quot;item (price)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{MaxPrice|format=b|Abyssal whip|Thread|Fire rune}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{MaxPrice|format=b|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
&lt;br /&gt;
;bracketreverse&lt;br /&gt;
:&amp;#039;&amp;#039;Aliases&amp;#039;&amp;#039;: rb&lt;br /&gt;
Similar to bracket, but outputs with the item in the brackets: &amp;quot;price (item)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{MaxPrice|format=rb|Abyssal whip|Thread|Fire rune}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{MaxPrice|format=rb|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
&lt;br /&gt;
;wikitable&lt;br /&gt;
:&amp;#039;&amp;#039;Aliases&amp;#039;&amp;#039;: table, t&lt;br /&gt;
Outputs using pipes, suitable for usage in a wikitable: &amp;quot;| item&amp;lt;newline&amp;gt;| price&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! example&lt;br /&gt;
! item&lt;br /&gt;
! price&lt;br /&gt;
|-&lt;br /&gt;
| best item&lt;br /&gt;
{{MaxPrice|format=t|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
|}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! example&lt;br /&gt;
! item&lt;br /&gt;
! price&lt;br /&gt;
|-&lt;br /&gt;
| best item&lt;br /&gt;
{{MaxPrice|format=t|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
;wikitablereverse&lt;br /&gt;
:&amp;#039;&amp;#039;Aliases&amp;#039;&amp;#039;: table, t&lt;br /&gt;
Similar to wikitable, but the item and price are swapped: &amp;quot;| price&amp;lt;newline&amp;gt;| item&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! example&lt;br /&gt;
! price&lt;br /&gt;
! item&lt;br /&gt;
|-&lt;br /&gt;
| best item&lt;br /&gt;
{{MaxPrice|format=t|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
|}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! example&lt;br /&gt;
! price&lt;br /&gt;
! item&lt;br /&gt;
|-&lt;br /&gt;
| best item&lt;br /&gt;
{{MaxPrice|format=rt|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
;item&lt;br /&gt;
Outputs just the formatted item name (per the link param).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{MaxPrice|format=item|Abyssal whip|Thread|Fire rune}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{MaxPrice|format=item|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
&lt;br /&gt;
;price&lt;br /&gt;
Outputs just the formatted price (per the coins param). You should consider using [[Template:Max]], if you aren&amp;#039;t using variable export.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{MaxPrice|format=price|Abyssal whip|Thread|Fire rune}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{MaxPrice|format=price|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
&lt;br /&gt;
;none&lt;br /&gt;
Outputs nothing at all. This should only be used with variable export.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{MaxPrice|format=none|Abyssal whip|Thread|Fire rune}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{MaxPrice|format=none|Abyssal whip|Thread|Fire rune}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:Mathematical templates]][[Category:Formatting templates]]&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>