Template:Combat/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 to display the combat stats and the resulting combat level for an account. It is intended both for use on userpages, and on account build mw.pages for PvP builds. The combat parameters follow the Template:User stats format. Note that when a parameter is absent, the template will use a default value of 1. At the top of the template, the name of the account can be given, which will default to the current page name (excluding...")
 
No edit summary
 
Line 1: Line 1:
{{documentation}}
{{documentation}}


This template can be used to display the combat stats and the resulting combat level for an account. It is intended both for use on userpages, and on account build mw.pages for PvP builds. The combat parameters follow the [[Template:User stats]] format. Note that when a parameter is absent, the template will use a default value of 1. At the top of the template, the name of the account can be given, which will default to the current page name (excluding the namespace), which will be your username when putting this template on your user page.
This template can be used to display the combat stats and the resulting combat level for an account. It is intended both for use on userpages, and on account build pages for PvP builds. The combat parameters follow the [[Template:User stats]] format. Note that when a parameter is absent, the template will use a default value of 1. At the top of the template, the name of the account can be given, which will default to the current page name (excluding the namespace), which will be your username when putting this template on your user page.


==Example==
==Example==

Latest revision as of 11:33, 17 October 2024

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

This template can be used to display the combat stats and the resulting combat level for an account. It is intended both for use on userpages, and on account build pages for PvP builds. The combat parameters follow the Template:User stats format. Note that when a parameter is absent, the template will use a default value of 1. At the top of the template, the name of the account can be given, which will default to the current page name (excluding the namespace), which will be your username when putting this template on your user page.

Example

The following template call describes a new player without any combat experience. This also are the default values that the template uses when the parameter is absent.

{{Combat
|align=left
|caption=Example combat gear
|name=Cow31337Killer
|Attack=1
|Defence=1
|Strength=1
|Hitpoints=10
|Prayer=1
|Ranged=1
|Magic=1
}}

This produces the following result:

Cow31337Killer
Attack 1 Hitpoints 10
Strength 1 Defence 1
Ranged 1 Prayer 1
Magic 1 Combat level 3
Example combat gear

The table shows that a starting player will have a combat level of 3. Another example, without a caption, align and name parameter set:

{{Combat|align=left|Attack=92|Defence=84|Strength=91
|Hitpoints=92|Prayer=73|Ranged=87|Magic=98}}

gives the following result:

Combat/doc
Attack 92 Hitpoints 92
Strength 91 Defence 84
Ranged 87 Prayer 73
Magic 98 Combat level 112