flagcountry/Doc

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 Roinn-seòrsa:country data templates, which contain the data what to display (Example: Teamplaid:country data France) and the formatter Teamplaid:country flagcountry2, which contains the logic how to display the country data.

  • {{flagcountry|France}} = Teamplaid:Dàta brataich France — uses Teamplaid:country data France
  • {{flagcountry|FRA}} = Teamplaid:Dàta brataich FRA — uses Teamplaid:country data FRA, which is a redirect to Teamplaid:country data France
  • Teamplaid:flagicon — to display the flag alone
    • {{flagicon|France}} = Teamplaid:Dàta brataich France
    • {{flagicon|FRA}} = Teamplaid:Dàta brataich FRA
  • Teamplaid: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

  • Wiki: WikiProject Flag Template


Tags:

flagcountry/Doc Usageflagcountry/Doc Implementationflagcountry/Doc Related templatesflagcountry/Doc

🔥 Trending searches on Wiki Gàidhlig:

Cristoforo ColomboLIBRISGrover ClevelandCuan SiarBanca ShasainnAnailis mhatamataigeach1174CaitligeachdAristotleBeathach1875RuisisTeicneòlasDi-ArdaoinGnothachas363Sweyn Holm7 an DàmhairGiuseppe VerdiAn t-SultainEarra-GhàidhealSiorrachd PheairtUlf von EulerLàrach-lìnSeumas Mac an Deòir1945ReykjavíkCànanan SlàbhachÒranLinne FoirtheEmilia-Romagna1434f0641Gàidhlig ChlasaigeachIerusalemAn ÈipheitFraingiumDuthaichCogadhAn Innd-Innse1019Carraig FhearghaisKhersonLosgann1743GoKinshasaAn Talamh Ùr is LabradorObar DheathainEachdraicheRothairTjalling KoopmansSankt PeterburgTalmudEasbaigMalaidhsiaDùileòlachd1880An Caisteal NuadhSanskritPunnd Sasannach1187Système universitaire de documentationFloridaRaymond BurrLeabhar-eòlais2019Riaghaltas na h-AlbaHTMLComhachagEabhraig Nuadh (baile)TeangaCànan prògramaidhFeurTurkuSeumas VII Alba is II Shasainn🡆 More