Template:Flag

From Disney•Pixar CARS Wiki
Jump to navigation Jump to search
Template:Flag
{{Flag
|name=
|alttext=
|border=border
|size=22x20px
|link=
}}
Help

Display the flag of a country as a thumbnail icon.

Example
{{flag| USA }} -->
{{flag| China }} -->
{{flag| United Kingdom }} -->
Parameters
string$nameCountry name or abbreviation, if registered in the {{switch:}} statement inside. See Category:Flags.
string$alttext(optional) Used for |alt= attribute. Rework to come.
stringborder(optional) Image border
stringsize(optional) Change the dimensions if needed.
stringlink(optional) If the icon should link to a wiki page; Leave defined-but-null to use the value of $name . Generally for the Cars-world location equivalent; If so, please only in said in-universe context.
Returns
string <span> element

Used by