Template:Flagright/sandbox: Difference between revisions
(copy of current template) |
m (1 revision imported: initial setup) |
(No difference)
|
Latest revision as of 10:30, 30 August 2024
{{country data {{{1}}}|flagright/flag|variant=|size=|name=}}
This is the template sandbox page for Template:Flagright (diff). |
This template works like the {{Flag }} template, but displays the flag to the right of the country name.
The template can display every country/territory with a "Country data ..." template, and abbreviations are also possible:
Wikicode | Result | Notes |
---|---|---|
{{flagright|India}} | Template:Country data India | Uses {{Country data India }} to know which flag to use and which article to link to. |
{{flagright|USSR}} | Template:Country data USSR | Uses {{Country data USSR }}, which redirects to {{Country data Soviet Union }}. |
{{flagright|GUY}} | Template:Country data GUY | Uses {{Country data GUY }}, which redirects to {{Country data Guyana }}. Note: To display "Guyana" rather than "GUY", the parameter |name= can be used (see Côte d'Ivoire example below). Or just use {{flagright|Guyana}}.
|
Other parameters include:
Wikicode | Result | Notes |
---|---|---|
{{flagright|Myanmar|variant=1974}} | Template:Country data Myanmar | The "variant" parameter and second unnamed parameter (they function identically) can be used to display a historical or alternative flag. Possible variants are listed on each country's respective country data template (in these examples {{Country data Myanmar }} and {{Country data Australia }}). |
{{flagright|Australia|naval}} | Template:Flagright/flag | |
{{flagright|France|size=40px}} | Template:Country data France | The "size" parameter changes the size of the flag icon (in this example, its width is specified). Default size for flag icons is 23x15px (no more than 23px wide, no more than 15px high), though some entities have a different default size specified in their respective country data template. |
{{flagright|Ivory Coast|name=Côte d'Ivoire}} | Template:Country data Ivory Coast | The "name" parameter changes the default displayed name (in this case "Ivory Coast") to the specified name, while linking to the same article. |