TemplateDoc:HW2Units

From Halopedia, the Halo wiki

This is a template documentation page!
You cannot edit the associated template from here. To do so, please see Template:HW2Units instead!

Description[edit]

This template is used as a shorthand to display a Blitz icon for Halo Wars 2's unit types; Infantry, Vehicles, Aircraft, and Leader Powers.

Usage[edit]

Syntax[edit]

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

{{HW2Units}}

Parameters[edit]

This template accepts one parameter. This parameter is mandatory, and will only accept one of the following inputs, which determine the icon displayed:

  • Infantry
  • Vehicle
  • Aircraft
  • Leader

The second input is optional, and can be used to change the displayed text, should it be needed. There is almost no need for this second input to be used, but it is included in case of irregularities.

Error states[edit]

Entering any first input except the above listed will break the template.

Example[edit]

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

Wiki markup Result
{{HW2Units|Infantry}}
Infantry
{{HW2Units|Vehicle}}
Vehicle
{{HW2Units|Aircraft}}
Aircraft
{{HW2Units|Leader}}
Leader Power

Dependencies[edit]

Template dependencies[edit]

This template does not depend on any templates.

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!