Template documentation(for the above template, sometimes hidden or invisible) [view] [edit] [history] [purge/refresh]
![]() |
This is a template documentation subpage WP for Template:Flag. It contains usage information, categories, interlanguage links F and other content that is not part of the original template page. |
Displays a flag image.
Usage
{{Flag|<name or code> |c=caption|s=size|l=link|b=|loc=}}
- This template uses the sub-template {{Flag/Image}} to determine the correct flag image.
- This template uses the sub-template {{Flag/Caption}} to determine the correct default caption.
name or code
- (Required) - Flag name or code.
- c=
- (Semi-Optional) - Changes or Adds a caption to the image
- (Optional) - If a caption already exists in the sub-template {{Flag/Caption}}.
- (Required) - If no caption exists in the sub-template {{Flag/Caption}}.
- s=
- (Optional) - Flag size, in px (default is 20).
- l=
- (Optional) - Links the image to a page or interlanguage link if flag is clicked.
- b=
- (Optional) - Removes the border from the flag.
- loc=
- (Optional) - Used to tell the flag to show on the left, center, or right side of the page.
Examples
{{Flag|us}} produces
{{Flag|blah}} produces "Flag image for blah does not exist in {{Flag/Image}}"!
For a list of all of the images usable by Flag: see Ikariam:List of Flags and Category:Template Flag images
The above text is transcluded from Template:Flag/doc.
You can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's Sandbox (create | Mirror ) and Testcases (create) pages.
Please add categories and interwikis to Template:Flag/doc. (View all subpages of this page.)
You can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's Sandbox (create | Mirror ) and Testcases (create) pages.
Please add categories and interwikis to Template:Flag/doc. (View all subpages of this page.)