Template:Flag data/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
Create template documentation subpage
 
(No difference)

Latest revision as of 02:05, 8 August 2025

{{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

This is the TemplateData for this template, used by TemplateWizard, VisualEditor and other tools.
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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Transcluding template1

The name of the original flag icon template with the absent first parameter

Example
Flag icon
Templaterequired
Subject namename

The name of the country or jurisdiction whose details are missing, produces a tooltip with this value when hovering over the empty space.

Example
Botswana
Lineoptional
Flag sizesize

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'.

Default
25x17px
Example
36x24px
Lineoptional
Link targetaltlink

Defines a custom link target for the icon, overriding the main namespace page matching the subject name.

Example
Kingdom of the Netherlands
Page nameoptional