Jump to content

Template:Flag decoration

From Elite Dangerous Wiki
Revision as of 09:35, 8 May 2025 by Wikipedia>Gonnym (there is no reason to allow transclusions of non-existing templates. Add all usages to error category and add a small error message to usage to let the editor know it does not exist)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit "Template:Flag decoration/doc" to edit its documentation if it is available. (How does this work?)

Displays the flag identified by the parameter in "icon" size, currently 22x20 pixels plus a one pixel border. This template is very similar to {{flag icon}}, except the image is not linked to an article, i.e. it is "purely decorative" per World Wide Web Consortium (W3C) Web Content Accessibility Guidelines (WCAG). This template can be used when the article text immediately adjacent to the icon provides the associated link for the flag.

Comparison example

Usage examples

As with {{flag icon}}, a particular variant of the flag and/or a custom size for the icon may be specified using (respectively) |variant= and/or |size=. See {{flag icon}} for further details.

Also as with {{flag icon}}, the display of a redlink when Template:Country data Foo does not exist can be suppressed by using the |noredlink=yes parameter. See {{flag icon}} for further details.

Tracking categories

Where {{Flag decoration|Foo}} is used, but the Template:Country data Foo does not exist, then a redlink is displayed, unless the |noredlink=yes parameter has been set.

Where the redlink is displayed, the page is addded to a tracking category:

See also