<?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%3AAverage_drop_value%2Fdoc</id>
	<title>Template:Average drop value/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%3AAverage_drop_value%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Template:Average_drop_value/doc&amp;action=history"/>
	<updated>2026-04-30T17:19:45Z</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:Average_drop_value/doc&amp;diff=34245&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;{{documentation}} {{invokes|Average drop value}}  Calculates the average drop value of a monster, using the SMW data for that monster.  This should really only be used on drop tables where the exact or near-exact format is known.  ==Details== This will calculate using the item name, the quantity, and the rarity. If it fails to parse any of these, it will ignore that item.  * Item name must be a GE item and present in Module:GEPrices/data.json, or be &#039;Coins&#039;. * Rarity...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Template:Average_drop_value/doc&amp;diff=34245&amp;oldid=prev"/>
		<updated>2024-10-15T23:55:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{documentation}} {{invokes|Average drop value}}  Calculates the average drop value of a monster, using the SMW data for that monster.  This should really only be used on drop tables where the exact or near-exact format is known.  ==Details== This will calculate using the item name, the quantity, and the rarity. If it fails to parse any of these, it will ignore that item.  * Item name must be a GE item and present in &lt;a href=&quot;/w/Module:GEPrices/data.json&quot; title=&quot;Module:GEPrices/data.json&quot;&gt;Module:GEPrices/data.json&lt;/a&gt;, or be &amp;#039;Coins&amp;#039;. * Rarity...&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|Average drop value}}&lt;br /&gt;
&lt;br /&gt;
Calculates the average drop value of a monster, using the SMW data for that monster.  This should really only be used on drop tables where the exact or near-exact format is known.&lt;br /&gt;
&lt;br /&gt;
==Details==&lt;br /&gt;
This will calculate using the item name, the quantity, and the rarity. If it fails to parse any of these, it will ignore that item.&lt;br /&gt;
&lt;br /&gt;
* Item name must be a GE item and present in [[Module:GEPrices/data.json]], or be &amp;#039;Coins&amp;#039;.&lt;br /&gt;
* Rarity must be something that can be #expr:&amp;#039;d into a number, or &amp;#039;Always&amp;#039;.&lt;br /&gt;
* Quantity must be a number, or a simple range. Multiple quantities (separated by ;) are currently not supported.&lt;br /&gt;
&lt;br /&gt;
This will search in the SMW data for [[Property:Drop from]] the specified monster and [[Property:Dropped item]] with some value. This means that:&lt;br /&gt;
* RDT is excluded (as it uses [[Property:Dropped item from RDT]]&lt;br /&gt;
* [[Template:DropsLine]]s using &amp;lt;code&amp;gt;smw=No&amp;lt;/code&amp;gt; are not counted, as they do not set SMW data&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Average drop value}}&lt;br /&gt;
&lt;br /&gt;
{{Average drop value|mob=monster|mobname=override name|raw=total only|round=integer total|category=will count a specific type of drop|exclude=will exclude a specific type of drop}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===mob===&lt;br /&gt;
The monster it fetches data for is defined using the &amp;lt;code&amp;gt;mob&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; (first unnamed parameter). By default, if no name is provided it will use the current page name.&lt;br /&gt;
&lt;br /&gt;
Use the relevant subobject name to get data for the correct sub-version, for example &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Average drop value|mob=Ankou#Wilderness Slayer Cave}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{{Average drop value|mob=Ankou#Wilderness Slayer Cave}}&lt;br /&gt;
&lt;br /&gt;
===mobname===&lt;br /&gt;
mobname will override the name in the text with the value given. The default behaviour is to just use the monster name, with the version in brackets if necessary.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Average drop value|mob=Ankou#Wilderness Slayer Cave|mobname=level 98 ankou}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{{Average drop value|mob=Ankou#Wilderness Slayer Cave|mobname=level 98 ankou}}&lt;br /&gt;
&lt;br /&gt;
===raw===&lt;br /&gt;
Setting raw to any value will make the template return only the sum, and none of the surrounding text or formatting. This is able to be used in other calculations or a custom string written around it. Obviously, with this the mobname parameter does nothing.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Average drop value|mob=Ankou#Wilderness Slayer Cave|raw=y}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;: {{Average drop value|mob=Ankou#Wilderness Slayer Cave|raw=y}}&lt;br /&gt;
&lt;br /&gt;
===alch===&lt;br /&gt;
Setting alch to true will use alch values instead of GE prices&lt;br /&gt;
&lt;br /&gt;
===killname===&lt;br /&gt;
killname will override the word &amp;quot;kill&amp;quot; in the text with the value given.&lt;br /&gt;
&lt;br /&gt;
===round===&lt;br /&gt;
Setting round to any value will make the template return the sum rounded down to the nearest integer. &lt;br /&gt;
&lt;br /&gt;
===category===&lt;br /&gt;
Category will filter any drops from the total that are not in that category.  For example it could be used to total up only the seed or herb drops from a given monster.  This is based on a category match in dpl.  So multiple categories can be used together.&lt;br /&gt;
&lt;br /&gt;
===exclude===&lt;br /&gt;
Exclude will exclude drops in a given category from the total.  For example excluding bone drops or herb drops from a monster&amp;#039;s loot.  This is based on a category match in dpl. So multiple categories can be used together.&lt;br /&gt;
&lt;br /&gt;
{{TemplateData|&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;mob&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Monster&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Name of monster. Defaults to pagename.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;Giant Sea Snake&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;mobname&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Monster name override&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Override the monster name&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;level 149 Giant Sea Snake&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;raw&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If present, only outputs the number&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
        &amp;quot;alch&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Only use high alch prices instead of GE&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;killname&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Overwrite the word &amp;#039;kill&amp;#039; with something else (e.g. &amp;#039;loot&amp;#039;)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;category&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Only includes drops from a given category or dpl formatted list of categories in the total&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;exclude&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Excludes drops from a given category or dpl formatted list of categories from the total&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;round&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Round the total down to a whole integer value&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Calculates the average drop value of a monster, using the SMW data for that monster. This should really only be used on drop tables where the exact or near-exact format is known. &amp;quot;,&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:Transclusion templates]]&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>