<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.darkan.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ACombat_level%2Fdoc</id>
	<title>Template:Combat level/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.darkan.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ACombat_level%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.darkan.org/index.php?title=Template:Combat_level/doc&amp;action=history"/>
	<updated>2026-07-17T20:24:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.darkan.org/index.php?title=Template:Combat_level/doc&amp;diff=38286&amp;oldid=prev</id>
		<title>imported&gt;Blaze fire12 at 05:44, 17 November 2012</title>
		<link rel="alternate" type="text/html" href="https://wiki.darkan.org/index.php?title=Template:Combat_level/doc&amp;diff=38286&amp;oldid=prev"/>
		<updated>2012-11-17T05:44:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{documentation}}&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;combat level&amp;#039;&amp;#039;&amp;#039; template returns the combat level based on the specified combat components. The formula is the result of a large reverse engineering activity using player contributed data. See the [http://forum.runescape.com/forums.ws?97,98,9,33330028 Combat Formula Thread] on the RuneScape forums for more details. The formula is remarkably accurate. The [[Combat level]] description shows the formula used in this template. It contains several non-linear components (various &amp;#039;&amp;#039;floor&amp;#039;&amp;#039; operations), which complicate reverse engineering as different skill levels can still produce the same combat level. The reported error margin in the combat formula (under 0.6%) can be explained by accidental typing errors in some of the skill level contributions used in the reverse engineering project.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt; Combat level | &amp;#039;&amp;#039;combat level parameters&amp;#039;&amp;#039; | Name=&amp;#039;&amp;#039;username&amp;#039;&amp;#039; }}&amp;lt;/tt&amp;gt;&lt;br /&gt;
The combat parameters follow the [[Template:User stats]] format. Note that when a parameter is absent, then if the &amp;quot;Name&amp;quot; is specified, a dynamic lookup is attempted, otherwise the template will use a default value of 10 for &amp;lt;tt&amp;gt;Hitpoints&amp;lt;/tt&amp;gt; and 1 for all other skill levels.&lt;br /&gt;
&lt;br /&gt;
An optional &amp;#039;&amp;#039;&amp;#039;DP&amp;#039;&amp;#039;&amp;#039; parameter may also be specified determine the number of decimal places to use for the returned combat level (can be 0, 1, 2 or 3). The default is 0 decimal places.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The following template call describes a new player without any combat experience. These also are the default values that the template uses when the parameter is absent or misspelled.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;{{Combat level&lt;br /&gt;
|Attack=1&lt;br /&gt;
|Defence=1&lt;br /&gt;
|Strength=1&lt;br /&gt;
|Constitution=10&lt;br /&gt;
|Prayer=1&lt;br /&gt;
|Ranged=1&lt;br /&gt;
|Magic=1&lt;br /&gt;
|Summoning=1&lt;br /&gt;
}}&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
The template text above produces the following result:&lt;br /&gt;
{{Combat level&lt;br /&gt;
|Attack=1 &lt;br /&gt;
|Defence=1&lt;br /&gt;
|Strength=1&lt;br /&gt;
|Constitution=10&lt;br /&gt;
|Prayer=1&lt;br /&gt;
|Ranged=1&lt;br /&gt;
|Magic=1&lt;br /&gt;
|Summoning=1&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The table shows that a starting player will have a combat level of 3. Another example shows a slightly more advanced player:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;{{Combat level|Attack=92|Defence=84|Strength=91&lt;br /&gt;
|Constitution=92|Prayer=73|Ranged=87|Magic=98|Summoning=18}}&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
gives the following result:&lt;br /&gt;
{{Combat level|Attack=92|Defence=84|Strength=91&lt;br /&gt;
|Constitution=92|Prayer=73|Ranged=87|Magic=98|Summoning=18}}&lt;br /&gt;
&lt;br /&gt;
On a free to play world, the combat level of this player can be obtained by including:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;{{Combat level|Attack=92|Defence=84|Strength=91&lt;br /&gt;
|Constitution=92|Prayer=73|Ranged=87|Magic=98|Summoning=1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
This gives  the following result:&lt;br /&gt;
{{Combat level|Attack=92|Defence=84|Strength=91&lt;br /&gt;
|Constitution=92|Prayer=73|Ranged=87|Magic=98|Summoning=1}}&lt;br /&gt;
So the additional combat levels derived from the Summoning skill are not visible on the free to play worlds.&lt;br /&gt;
&lt;br /&gt;
The following example shows the same advanced player but showing the combat level to 2 decimal places:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;{{Combat level|Attack=92|Defence=84|Strength=91&lt;br /&gt;
|Constitution=92|Prayer=73|Ranged=87|Magic=98|Summoning=18|DP=2}}&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
gives the following result:&lt;br /&gt;
{{Combat level|Attack=92|Defence=84|Strength=91&lt;br /&gt;
|Constitution=92|Prayer=73|Ranged=87|Magic=98|Summoning=18|DP=2}}&lt;br /&gt;
&lt;br /&gt;
== How it works ==&lt;br /&gt;
The gory details of the template are viewable by entering the &amp;#039;&amp;#039;edit&amp;#039;&amp;#039; mode for this page. The template also has no way of assigning default values for input parameters, mandating that prior to using an input parameter, the template needs to check if the variable is set during the call or set that input variable at its default value.&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:User templates|{{PAGENAME}}]][[Category:Transclusion templates|{{PAGENAME}}]]&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Blaze fire12</name></author>
	</entry>
</feed>