Template:Flag+link
{{country data {{{2}}}|flag decoration/core|variant=|size=}} [[{{country data {{{2}}}|getalias/core|name=|variant=}}|{{country data {{{2}}}|getalias/core|name=shortname|variant=}}]]
Use {{flag+link}} to produce output such as
i.e. an icon-sized flag representing something like a country/region/place/organization/etc followed by a link, labelled using that country/region/etc's name, to an article on some aspect of that country/region/etc.
Syntax and parameters
{{flag+link |string |name}}
...where name is something represented by a flag and the combination of string followed by name is the name of an article. The example above, for instance, was produced by:
{{flag+link|Agriculture in|India}}
If no article exists with the name formed by the combination of string and name, the link will default to [[name]]. {{flag+link|Blah of|Albania}}
, for instance, produces Albania with "Albania" as a link to Albania because Blah of Albania does not exist.
To specify a width for the icon and/or a particular variant/version of the flag, set the parameters |size=
and/or |variant=
in the same manner as {{flagicon}}'s size and variant parameters. (See {{flagicon}}'s documentation for more details.)
Example use
For examples of this template's use in articles, see the tables here or here (leftmost columns).