Template talk:Flagcountry
(cur | prev) 01:18, 16 February 2015 Mr. Stradivarius (talk | contribs) m . . (146 bytes) (0) . . (Changed protection level of Template:Flagcountry: Highly visible template: allow template editors ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
(cur | prev) 05:54, 18 December 2014 Plastikspork (talk | contribs) . . (146 bytes) (-153) . . (Closing)
(cur | prev) 15:18, 13 December 2014 Redrose64 (talk | contribs) . . (299 bytes) (+153) . . (proposed for merge; see Wikipedia:Templates for discussion/Log/2014 December 10#Flag templates)
(cur | prev) 04:51, 11 August 2010 Andrwsc (talk | contribs) . . (146 bytes) (-21) . . (avoid redirect & reduce size for high-use template)
Description
{{flagcountry|nation|variant|size=}}
Produces a flag icon attached to a wikilinked article. This template is similar to the more widely used {{flag}} template, but is more useful for two situations described below.
- Parameters
- nation: Use either the name of the nation or in some cases, a three-letter country code (e.g. ISO 3166-1 alpha-3)
- variant (optional): Specifies an alternative (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates.
- size (optional): Can be used to change the flag icon size.
Usage examples
-
{{flagcountry|ITA}}
→ Template:Country data ITA- In this case, the country code for Italy (ITA) is used to produce the correct flag and wikilink. In many cases, it would probably be preferable to use {{flag}} to produce the same result, such as
{{flag|Italy}}
for this example. However, {{flagcountry}} could be used within other templates (such as infoboxes) so that country codes can be used for those template parameters.
- In this case, the country code for Italy (ITA) is used to produce the correct flag and wikilink. In many cases, it would probably be preferable to use {{flag}} to produce the same result, such as
-
{{flagcountry|ITA|1861}}
→ Template:Country data ITA- Similar to the first example, but with a flag variant parameter to select a historical flag image. Note that the wikilinked article is
[[Italy]]
.
- Similar to the first example, but with a flag variant parameter to select a historical flag image. Note that the wikilinked article is
-
{{flagcountry|Kingdom of Italy}}
→ Template:Country data Kingdom of Italy- In this example, a different country data template is used, to select an alternative article for the wikilink (in this case,
[[Kingdom of Italy|Italy]]
). Compare with{{flag|Kingdom of Italy}}
→ Template:Country data Kingdom of Italy, in which "Kingdom of Italy" is the display text for the wikilink. Therefore, the choice offlagcountry
orflag
depends on the desired display text; in all other respects, the templates are identical.
- In this example, a different country data template is used, to select an alternative article for the wikilink (in this case,
TemplateData
<templatedata> { "description": "Produces a flag icon next to a wikilinked country name.", "params": { "nation": { "label": "Nation", "description": "The name or code of the country.", "required": true, "type": "string", "aliases": ["1"] }, "variant": { "label": "Variant", "description": "The flag variant to be displayed.", "aliases": ["2"], "type": "string" }, "size": { "label": "Size", "description": "The size of the flag icon.", "type": "number" } } } </templatedata>
See also
- Template:Coat of arms
- Template:Flag
- Template:Flagicon - displays just the flag
- Template:Flagu - displays the flag and unlinked country name
- Template:Flaglist - names line up vertically in lists
- wikipedia:Wikipedia:WikiProject Flag Template
The above documentation is transcluded from Template:Flagcountry/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |
(cur | prev) 01:39, 14 September 2007 MZMcBride (talk | contribs) . . (194 bytes) (+14) . . (updated template)
(cur | prev) 04:40, 26 August 2007 Andrwsc (talk | contribs) . . (180 bytes) (-3) . . (remove unneeded parm; make variant a named parameter also; change doc format)
(cur | prev) 17:21, 25 January 2007 Ligulem (talk | contribs) . . (183 bytes) (-80) . . (WP:DOC)
(cur | prev) 17:13, 25 January 2007 Ligulem (talk | contribs) . . (263 bytes) (+72) . . (Switching to use new template code from template:flagcountry2. Per Wikipedia:WikiProject Flag Template/January 2007 rework)
(cur | prev) 11:43, 7 January 2007 Wknight94 (talk | contribs) . . (191 bytes) (-66) . . (woops, copy/pasted too much)
(cur | prev) 11:40, 7 January 2007 Wknight94 (talk | contribs) . . (257 bytes) (+80) . . (hprotected)
(cur | prev) 11:25, 7 January 2007 Wknight94 (talk | contribs) m . . (177 bytes) (0) . . (Protected Template:Flagcountry: Highly used template that needs long-term protection in my opinion [edit=sysop:move=sysop])
(cur | prev) 20:25, 8 November 2006 The wub (talk | contribs) m . . (177 bytes) (+14) . . (re-categorisation per CFD using AWB)
(cur | prev) 03:26, 25 July 2006 Ryulong (talk | contribs) . . (163 bytes) (-152) . . (rv to last version before my own)
(cur | prev) 02:45, 25 July 2006 Ryulong (talk | contribs) . . (315 bytes) (+144)
(cur | prev) 02:44, 25 July 2006 Ryulong (talk | contribs) m . . (171 bytes) (+8)
(cur | prev) 21:54, 9 July 2006 Reinyday (talk | contribs) m . . (163 bytes) (-2) . . (formatting fix)
(cur | prev) 19:45, 9 July 2006 Reinyday (talk | contribs) . . (165 bytes) (-11) . . (category update)
(cur | prev) 19:38, 9 July 2006 Reinyday (talk | contribs) m . . (176 bytes) (-1) . . (typo fix)
(cur | prev) 19:38, 9 July 2006 Reinyday (talk | contribs) . . (177 bytes) (+83) . . (category addition)
(cur | prev) 13:00, 15 November 2005 SEWilco (talk | contribs) . . (94 bytes) (+34) . . (add size and name options)
(cur | prev) 16:55, 6 August 2005 SEWilco (talk | contribs) m . . (60 bytes) (-1) . . (removed space which caused display as preformatted)
(cur | prev) 16:55, 6 August 2005 SEWilco (talk | contribs) . . (61 bytes) (0) . . (Removing blank line which breaks Table Wiki)
(cur | prev) 16:53, 6 August 2005 SEWilco (talk | contribs) . . (61 bytes) (-111) . . (test flagcountry again)
(cur | prev) 16:48, 6 August 2005 SEWilco (talk | contribs) . . (172 bytes) (+111) . . (Copied country_flagcountry code)
(cur | prev) 20:11, 2 August 2005 SEWilco (talk | contribs) m . . (61 bytes) (0) . . (Template:Flag2 moved to Template:Flagcountry)
(cur | prev) 20:10, 2 August 2005 SEWilco (talk | contribs) . . (61 bytes) (-43) . . (Conversion to Template:Flagcountry with comment marking template in case of subst:)
(cur | prev) 15:51, 28 July 2005 とある白い猫 (talk | contribs) . . (104 bytes) (+39)
(cur | prev) 13:25, 15 July 2005 とある白い猫 (talk | contribs) . . (65 bytes) (0)
(cur | prev) 11:45, 11 April 2005 とある白い猫 (talk | contribs) . . (65 bytes) (+4)
(cur | prev) 11:42, 11 April 2005 とある白い猫 (talk | contribs) . . (61 bytes) (+4)
(cur | prev) 11:33, 11 April 2005 とある白い猫 (talk | contribs) . . (57 bytes) (-8)
(cur | prev) 11:29, 11 April 2005 とある白い猫 (talk | contribs) . . (65 bytes) (-11)
(cur | prev) 06:26, 11 April 2005 とある白い猫 (talk | contribs) . . (76 bytes) (-23)
(cur | prev) 06:24, 11 April 2005 とある白い猫 (talk | contribs) . . (99 bytes) (+15)
(cur | prev) 06:22, 11 April 2005 とある白い猫 (talk | contribs) . . (84 bytes) (+3)
(cur | prev) 06:21, 11 April 2005 とある白い猫 (talk | contribs) . . (81 bytes) (-29)
(cur | prev) 06:20, 11 April 2005 とある白い猫 (talk | contribs) . . (110 bytes) (-162)
(cur | prev) 06:18, 11 April 2005 とある白い猫 (talk | contribs) . . (272 bytes) (+207)
(cur | prev) 06:09, 11 April 2005 とある白い猫 (talk | contribs) . . (65 bytes) (-1)
(cur | prev) 06:08, 11 April 2005 とある白い猫 (talk | contribs) . . (66 bytes) (+9)
(cur | prev) 09:47, 10 April 2005 とある白い猫 (talk | contribs) . . (57 bytes) (0)
(cur | prev) 09:46, 10 April 2005 とある白い猫 (talk | contribs) . . (57 bytes) (+57)