Template:Flag image/doc: Difference between revisions
m (Reverted edits by The World Of Atlantis (talk) to last version by WOSlinker) |
m (1 revision imported: initial setup) |
(No difference)
|
Latest revision as of 10:20, 30 August 2024
This is a documentation subpage for Template:Flag image. It contains usage information, categories and other content that is not part of the original Template page. |
Usage
This template generates a floating flag image. Use the parameter |Image=
to specify an image without "File:"/"Image:" prefix, |Pos=
to control the position of the image (left, right, none or center; default right), |Image_size=
to control the image size (default 210×105px), |Width=
to specify image width (integer only, without any unit or suffix), |Box_width=
to specify the width of the box (integer only, without any unit or suffix), |Caption=
to specify the text underneath the image, and |NoCentering=
to make the text not centered underneath the image. The parameter |Country=
may be used to use the image specified by Template:Country data {{{Country}}} (overridden by the |Image=
parameter if specified) and to generate a default caption "Flag of {{{Country}}}". Parameter names are fully case-sensitive.
Examples
Code:
{|
|{{Flag image|Country=Denmark}}
|{{Flag image|Image=Flag of Germany.svg|Caption=Flag of Germany}}
|{{Flag image|Country=Nepal|NoBorder=yes}}
|{{Flag image|Country=Russia|Image_size=120px}}
|}
Output:
[[Image:Template:Getalias|class=thumbimage|210x105px]] |
[[Image:Template:Getalias|center|210x105px]] |
[[Image:Template:Getalias|class=thumbimage|120px]] |