TemplateDoc:Icon: Difference between revisions

From Halopedia, the Halo wiki

(Created this. Probably should have done it a while back, but it's made now.)
 
(Added 3 more icons.)
Line 9: Line 9:


===Parameters===
===Parameters===
This template accepts 16 parameters. These are:
This template accepts 19 parameters. These are:
{| class="wikitable"
{| class="wikitable"
!Parameter
!Parameter
Line 61: Line 61:
|Army
|Army
|[[File:HP Army Icon.png|25px|link=UNSC Army]]
|[[File:HP Army Icon.png|25px|link=UNSC Army]]
|-
|NMPD
|[[File:HP NMPD Icon.png|25px|link=New Mombasa Police Department]]
|-
|Covenant FB
|[[File:HP Covenant FB Icon.png|25px|link=Covenant]]
|-
|Covenant HW
|[[File:HP Covenant HW Icon.png|25px|link=Covenant]]
|}
|}


Line 103: Line 112:
*[[:File:HP Osiris Icon.png]]
*[[:File:HP Osiris Icon.png]]
*[[:File:HP Army Icon.png]]
*[[:File:HP Army Icon.png]]
*[[:File:HP NMPD Icon.png]]
*[[:File:HP Covenant FB Icon.png]]
*[[:File:HP Covenant HW Icon.png]]


===Extension dependencies===
===Extension dependencies===

Revision as of 21:58, March 6, 2021

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

Description

This template is used as a shorthand to insert the logo of a referenced faction, and in some special cases, the logo of a particular era. Doing so will automatically generate the logo and, if prompted, a link to the faction's page.

Usage

Syntax

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

Parameters

This template accepts 19 parameters. These are:

Parameter Result
UNSC Post UNSC
UNSC 2560 UNSC
UNSC HCW UNSC
ONI ONI
Navy UNSC Navy
SoS Swords of Sanghelios
UEG UEG
Banished Banished
Mdama Jul 'Mdama's Covenant
CAA Colonial Administration Authority
ODST Orbital Drop Shock Trooper
Noble NOBLE Team
Insurrectionist Insurrectionist
Blue Team Blue Team
Osiris Fireteam Osiris
Army UNSC Army
NMPD New Mombasa Police Department
Covenant FB Covenant
Covenant HW Covenant

Error states

This template has no error states.

Example

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

Wiki markup Result
Belligerents<br/>
----
*{{Icon|UNSC HCW}} [[UNSC]]
**{{Icon|Navy}} [[UNSC Navy]]
***{{Icon|Blue Team}} [[Blue Team]]
Belligerents

Dependencies

Template dependencies

This template does not depend on any other templates. It does depend on the following files:

Extension dependencies

This template does not require any extensions.

Dependent templates

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!