TemplateDoc:Rank/HR

From Halopedia, the Halo wiki

Revision as of 19:11, December 15, 2021 by Superintendent (talk | contribs) (→‎Dependent templates: Moving page, removed: *Template:Documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a template documentation page!
You cannot edit the associated template from here. To do so, please see Template:Rank/HR instead!

Description[edit]

This template is used as a shorthand to insert a reference to a Halo: Reach multiplayer rank. Doing so will automatically generate the rank icon and, if prompted, a link to the rank page and the rank name.

Usage[edit]

Syntax[edit]

To insert this template onto a page, place the following wikitext onto the article.

{{Rank/HR}}

Parameters[edit]

This template accepts four parameters, though only the first one is required. The first is a shortened version of the rank, shown below.

recruit=Recruit
pvt=Private
cpl=Corporal
sgt=Sergeant
wo=WarrantOfficer
capt=Captain
majr=Major
ltcol=Lieutenant Colonel
cmdr=Commander
col=Colonel
brig=Brigadier
gen=General
fm=Field Marshall
hero=Hero
legend=Legend
mythic=Mythic
noble=Noble
eclipse=Eclipse
nova=Nova
forerunner=Forerunner
reclaimer=Reclaimer
inheritor=Inheritor

The second is a number, used for dictating which grade the rank is levelled at (if relevant). Accepted inputs include;

1
2
3
4

If no rank grade is required, this input is not needed. The third input consists of the following, and should only be used if you intend to have the template display the rank name alongside the icon. This input is binary, and as long as there is an input, it will use the same rank as defined in the first input.

|link=yes

The fourth input only needs to be used if the rank in question is a specific grade. Once again, this is binary and will use the grade defined earlier.

|grade=yes

Error states[edit]

This template uses the user input to generate the filename based off the ones found here. As such, inputting rank/grade combinations that do not exist will result in the template not displaying properly.

Example[edit]

Here is an example of what the template will output, when used:

Wiki markup Result
The armour can be unlocked at {{Rank/HR|gen}}
The armour can be unlocked at Halo: Reach rank icon
The armour can be unlocked at {{Rank/HR|gen}}
The armour can be unlocked at Halo: Reach rank icon
The armour can be unlocked at {{Rank/HR|gen|3}}
The armour can be unlocked at Halo: Reach rank icon
The armour can be unlocked at {{Rank/HR|gen|3|link=yes|grade=yes}}
The armour can be unlocked at Halo: Reach rank icon General, Grade 3

Dependencies[edit]

Template dependencies[edit]

This template depends on the following templates. It does depend on the images found at Category:Halo: Reach rank insignia.

Extension dependencies[edit]

This template does not require any extensions.

Dependent templates[edit]

The following templates depend upon this one. If you are making changes to this template, please ensure that they will not break any of them!