An diofar eadar na mùthaidhean a rinneadh air "Teamplaid:Flagcountry/doc"
Content deleted Content added
Created page with '{{documentation subpage}}<includeonly>{{pp-template|small=yes}}</includeonly> This template displays the flag and the name of a country, linked to the main article of that count...' |
b Bot: Migrating interwiki links, now provided by Wikidata on d:q4582585 |
||
Loidhne 44: | Loidhne 44: | ||
<!-- ADD INTERWIKIS BELOW THIS LINE --> |
<!-- ADD INTERWIKIS BELOW THIS LINE --> |
||
[[fr:Template:Flagcountry]] |
[[fr:Template:Flagcountry]] |
||
[[ko:틀:국기나라]] |
|||
[[ja:Template:Flagcountry]] |
[[ja:Template:Flagcountry]] |
||
[[sl:Predloga:Zastava države]] |
[[sl:Predloga:Zastava države]] |
||
[[sv:Mall:Flaggland]] |
[[sv:Mall:Flaggland]] |
||
[[uk:Шаблон:Країна з прапорцем]] |
|||
[[ru:Шаблон:Флагификация]] |
[[ru:Шаблон:Флагификация]] |
||
</includeonly> |
</includeonly> |
Mùthadh on 15:58, 15 dhen Lùnastal 2013
This is a documentation subpage for Teamplaid:Flagcountry. It contains usage information, categories and other content that is not part of the original teamplaid page. |
This template displays the flag and the name of a country, linked to the main article of that country (flag + country).
Usage
- Country (mandatory)
- Parameter 1 identifies the country by name or three-letter code (ISO 3166-1 alpha-3)
- Name example: {{flagcountry|France}} → Teamplaid:Dàta brataich France
- Country code example: {{flagcountry|FRA}} → Teamplaid:Dàta brataich FRA
- Variant flag image (optional)
- Parameter 2 is used to display a different version of the flag.
- Example: {{flagcountry|France|free}} → Teamplaid:Dàta brataich France. In this example, the historical flag for 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: {{flagcountry|France|name=C'est la France}} → Teamplaid:Dàta brataich France
- Size (optional)
- Use the size= parameter to change the size from the default.
- Example: {{flagcountry|France|size=40px}} → Teamplaid:Dàta brataich France.
Implementation
This template uses the data templates listed under category:country data templates, which contain the data what to display (Example: template:country data France) and the formatter template:country flagcountry2, which contains the logic how to display the country data.
- {{flagcountry|France}} = Teamplaid:Dàta brataich France — uses template:country data France
- {{flagcountry|FRA}} = Teamplaid:Dàta brataich FRA — uses template:country data FRA, which is a redirect to template:country data France
Related templates
- template:flagicon — to display the flag alone
- {{flagicon|France}} = Teamplaid:Dàta brataich France
- {{flagicon|FRA}} = Teamplaid:Dàta brataich FRA
- template:flag — similar to flagcountry, but uses the input parameter as the display text for the link
- {{flag|France}} = Teamplaid:Dàta brataich France
- {{flag|FRA}} = Teamplaid:Dàta brataich FRA
See also