[[File:|18px]] [[{{{2}}}]]

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:TextIcon/doc to edit this documentation. (How does this work?)

Description

The following template is used to simplify placing an icon next to text, typically within infoboxes to list someone or thing's affiliations.

Syntax

The template has three parameters, two of which being required. The first parameter denotes which image is to be used, the second (optional) parameter denotes the size of the image (given this parameter is optional, not using it will result in the image being put at 18px by default), the third parameter denotes the text next to it (and will also automatically link the text), and the fourth parameter allows you to put an additional piece of optional text in small brackets after everything else.

Example:

{{TextIcon|Grand Alliance Icon.png|Grand Alliance}}

will produce Grand Alliance Icon.png Grand Alliance — notice the image size is by default 18px.

Note: If you wish for the text displayed to be something other than the exact name of the page it's linking to, assure to use "{{!}}" opposed to the typical "|" pipe icon to do so, or else the template will view it as another parameter.

Example:

{{TextIcon|Grand Alliance Icon.png|Grand Alliance{{!}}Alliance}}

will produce Grand Alliance Icon.png Alliance — notice the "{{!}}" acts as a "|" would in most other coding instances.

Example (with optional "width" parameter):

{{TextIcon|Grand Alliance Icon.png|w=25|Grand Alliance}}

will produce Grand Alliance Icon.png Grand Alliance — notice the image size is custom, being 25px opposed to 18.

Example (with optional final parameter):

{{TextIcon|Grand Alliance Icon.png|w=25|Grand Alliance|Former}}

will produce Grand Alliance Icon.png Grand Alliance (Former) — notice the (Former) denotation after the affiliation. This is customizable.

{{TextIcon|Grand Alliance Icon.png|w=25|Grand Alliance|It's Completely Custom!}}
will produce Grand Alliance Icon.png Grand Alliance (It's Completely Custom!)
Community content is available under CC-BY-SA unless otherwise noted.