Template:Wp/brh/Flagcountry
{{Wp/brh/Country data {{{1}}}|Flagcountry/core|variant=|size=|name=}}
[edit] [ ] Template documentation
This template displays the flag and the name of a country, linked to the main article of that country (flag + country).
Usage
edit- Country (mandatory)
- Parameter 1 identifies the country by name or three-letter code (en:ISO 3166-1 alpha-3)
- Name example: {{Wp/brh/Flagcountry|France}} → Template:Wp/brh/Country data France
- Country code example: {{Wp/brh/Flagcountry|FRA}} → Template:Wp/brh/Country data FRA
- Variant flag image (optional)
- Parameter 2 is used to display a different version of the flag.
- Example: {{Wp/brh/Flagcountry|France|free}} → Template:Wp/brh/Country data France. In this example, the historical flag for en:Free France (1940-1945) is identified by the second parameter of "free". The list of flag variants is specific for each country.
- Link text (optional)
- Use the name= parameter to change the link text.
- Example: {{Wp/brh/Flagcountry|France|name=C'est la France}} → Template:Wp/brh/Country data France
- Size (optional)
- Use the size= parameter to change the size from the default.
- Example: {{Wp/brh/Flagcountry|France|size=40px}} → Template:Wp/brh/Country data France.
Implementation
editThis template uses the data templates listed under Category:Wp/brh/Country data templates, which contain the data what to display (Example: Template:Wp/brh/Country data France) and the formatter Template:Wp/brh/country flagcountry2, which contains the logic how to display the Country data.
- {{Wp/brh/Flagcountry|France}} = Template:Wp/brh/Country data France — uses Template:Wp/brh/Country data France
- {{Wp/brh/Flagcountry|FRA}} = Template:Wp/brh/Country data FRA — uses Template:Wp/brh/Country data FRA, which is a redirect to Template:Wp/brh/Country data France
Related templates
edit- Template:Wp/brh/Flagicon — to display the flag alone
- {{Wp/brh/Flagicon|France}} = Template:Wp/brh/Country data France
- {{Wp/brh/Flagicon|FRA}} = Template:Wp/brh/Country data FRA
- Template:Wp/brh/Flag — similar to Flagcountry, but uses the input parameter as the display text for the link
- {{Wp/brh/Flag|France}} = Template:Wp/brh/Country data France
- {{Wp/brh/Flag|FRA}} = Template:Wp/brh/Country data FRA
See also
edit The above documentation is transcluded from Template:Wp/brh/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. |