Template:Combat

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:22, 17 October 2024 (Created page with "<includeonly> {| class="wikitable combatinfo {{#ifeq:{{{align|}}}|left|combatinfo-left|}}" !colspan="4"|{{{name|{{PAGENAME}}}}} |- <!-- First display an icon that links to the skill page --> | {{SCP|Attack}} | {{#vardefineecho:att|{{#if:{{{Attack|}}}|{{{Attack}}}|1}}}} | {{SCP|Hitpoints}} | {{#vardefineecho:hp|{{#if:{{{Hitpoints|}}}|{{{Hitpoints}}}|10}}}} |- | {{SCP|Strength}} | {{#vardefineecho:str|{{#if:{{{Strength|}}}|{{{Strength}}}|1}}}} | {{SCP|Defence}} | {{#varde..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:Combat/doc. [edit] [history] [purge]

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
Attack 92 Hitpoints 92
Strength 91 Defence 84
Ranged 87 Prayer 73
Magic 98 Combat level 112