Template:Flag data/doc
| This is a documentation subpage for Template:Flag data. It may contain usage information, categories and other content that is not part of the original template page. |
{{Flag data}} is an internal data container not intended for direct transclusion. It is used indirectly by templates such as {{Flag}}, {{Flag icon}} and others.
Usage
This template is transcluded if a flag template is used without the first parameter, or with an empty first parameter.
For further instructions, please see: WikiProject Flag Template on English Wikipedia.
TemplateData
TemplateData for Flag data
An internal data container template used indirectly by Template:Flag and Template:Flag icon (among others) when they lack the crucial first positional parameter.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Transcluding template | 1 | The name of the original flag icon template with the absent first parameter
| Template | required |
| Subject name | name | The name of the country or jurisdiction whose details are missing, produces a tooltip with this value when hovering over the empty space.
| Line | optional |
| Flag size | size | Sets custom dimensions for the flag icon using any of the three Mediawiki image size rubrics: '{maxwidth}px', 'x{maxheight}px' or '{lesser_of_scaled_maxwidth}x{lesser_of_scaled_maxheight}px'.
| Line | optional |
| Link target | altlink | Defines a custom link target for the icon, overriding the main namespace page matching the subject name.
| Page name | optional |