Template:Flag: Difference between revisions

From The World of Gotha
Jump to navigation Jump to search
mNo edit summary
m (Remove misspelled country)
 
(11 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<!-- Current countries -->
<!-- Current countries -->
| Aedeland = Aedeland flag.png
| Aedeland = Aedeland flag.png
| Alsair = Alsair-flag.png
| Anat Tahan = Anat Tahan Flag.png
| Anat Tahan = Anat Tahan Flag.png
| Anisora = Flag of Anisora.png
| Anisora = Flag of Anisora.png
| Ardar = Ardar-flag.png
| Arvor = Flagofarvor.png
| Arvor = Flagofarvor.png
| Auresia = Auresia_flag.png
| Auresia = Auresia_flag.png
Line 10: Line 12:
| Cassia = Cassian_flag.png
| Cassia = Cassian_flag.png
| Chaska = Chaska Flag.png
| Chaska = Chaska Flag.png
| Cladania = Cladania-flag.png
| East Lusavan = Flag of East Lusavan.png
| East Lusavan = Flag of East Lusavan.png
| Einhafan = Einhafan-flag.png
| Gate of Light = Gate of Light Flag.png
| Gate of Light = Gate of Light Flag.png
| Grunland = Grunland Flag.png
| Grunland = Grunland Flag.png
Line 17: Line 21:
| Hergom = G9853.png
| Hergom = G9853.png
| Hergom ep swekorwos = G9853.png
| Hergom ep swekorwos = G9853.png
| Ilhuiyoco = Ilhuiyoco Banner.png
| Ithrien = Ithrien flag.png
| Ithrien = Ithrien flag.png
| Kamura = kamuran_flag_new_.png
| Kamura = kamuran_flag_new_.png
| Koskiya = Flag of Koskiya.png
| Koskiya = Flag of Koskiya.png
| Livaria = Flag of Livaria.png
| Livaria = Flag of Livaria.png
| Lucentia = Lucentia-flag.png
| Mahaan Maaran = Mahaan Maaran Flag.png
| Mantharavati = mantharavati-flag.png
| Mantharavati = mantharavati-flag.png
| Mirapan = Mirapan Flag.png
| Mirapan = Mirapan Flag.png
Line 26: Line 33:
| Nestor = Nh-version1.2.2.png
| Nestor = Nh-version1.2.2.png
| New Hoffnung = New Hoffnung Flag.png
| New Hoffnung = New Hoffnung Flag.png
| Parangón = Parangonflag.png
| Raška = Raška flag1.jpg
| Raška = Raška flag1.jpg
| Rissland = Rissland Flag.png
| Rissland = Rissland Flag.png
| Saoirth = Saoirth-flag.png
| Sokoku = Flag_sokoku_124px.png
| Sokoku = Flag_sokoku_124px.png
| Stolvic Orderist Commonwealth = SOC Flag.png
| Stolvic Orderist Commonwealth = SOC Flag.png
| Tavonia = Flag of Tavonia.png
| Tavonia = Flag of Tavonia.png
| Transelfasland = Transelfasland Flag.png
| Transelfasland = Transelfasland Flag.png
| United New Kingdoms = UNK_Flag.png
| Vittmark = Vittflag7690.jpg
| Vittmark = Vittflag7690.jpg
| Yanwen = Yanwen Flag.png
| Yanwen = Yanwen Flag.png
| Dhonowlgos = Dhonowlgosc_Flag.png
| Ilhuiyoco = Ilhuiyoco Banner.png
<!-- Historic countries -->
<!-- Historic countries -->
| Anisoran Empire = Flag of Anisora.png
| Anisoran Empire = Flag of Anisora.png
| The Bind = Bind-flag.png
| The Bind = Bind-flag.png
| Dhonowlgos = Dhonowlgosc_Flag.png
| Fisks islands = Fisksflag.png
| Hagen = Hagenflag.png
| Huilcasonco = Chaska Flag.png
| Huilcasonco = Chaska Flag.png
| Ilhuiyoco = Ilhuiyoco Banner.png
| Tsuki Integrality = Tsuki Flag.png
<!-- Subdivisions -->
<!-- Subdivisions -->
<!--  Vittmark -->
<!--  Vittmark -->
| Ådalen = AdelenFlag.png
| Austland West Hagen = AWHflag.png
| Mellersta Haga = MellerstaFlag.png
| Mellersta Haga = MellerstaFlag.png
| Kulla Crown Domain = KullaFlag.png
| Liden = LidenFlag.png
| Östervallen = OVflag.png
| Sörmark = Sormarkflag.png
{!-- Other entities-->
| Die Eintracht = Eintracht flag.png
| Gold Exchange Mechanism = GEM flag.png
| ICoN = Icon Nations flag.png
| International Council of Nations = Icon Nations flag.png
| Ombhrosdhom Commonwealth Treaty = OCT flag.png
| OSSO = OSSO Nations flag.png
| Open Seas Security Organization = OSSO Nations flag.png
| Restoration Coalition = RestorationCoalition flag.png
| Thultannian Union = Thul-union-flag.png
| Triarchy = Triarchy flag.png
| Unitary Games = Ugames flag.png
<!-- Default -->
| Flag placeholder.png
| Flag placeholder.png
}}| {{{size|25px}}}]] [[{{{1}}}|{{{display|{{{1}}}}}}]]</includeonly><noinclude>The '''<nowiki>{{flag}}</nowiki>''' template displays a flag icon before a wiki-linked country name.
}}| {{{size|25px}}}]] [[{{{1}}}|{{{display|{{{1}}}}}}]]</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude>
 
==Usage==
<code><nowiki>{{flag|</nowiki>''1''|''size''|''display''<nowiki>}}</nowiki></code>
 
==Parameters==
{| class="wikitable"
! Parameter !! Description !! Type !! Status
|-
| <code>1</code> || Country name (should match the country's article name) || String || '''Required'''
|-
| <code>size</code> || Image size, e.g. <code>30px</code>. Defaults to 25px || String || Optional
|-
| <code>display</code> || Text to display. Defaults to the value of <code>1</code> || String || Optional
|}
 
==Examples==
{| class="wikitable"
! Wiki markup !! Displays !! Notes
|-
| <code><nowiki>{{flag|Anat Tahan}}</nowiki></code> || {{flag|Anat Tahan}} ||
|-
| <code><nowiki>{{flag|Hergom ep swekorwos|display=Hergom}}</nowiki></code> || {{flag|Hergom ep swekorwos|display=Hergom}} || Different text can be displayed in place of the country name.
|-
| <code><nowiki>{{flag|Tianji}}</nowiki></code> || {{flag|Tianji}} || If a country doesn't have a flag image, a placeholder is used so the country name lines up with others in a list.
|-
| <code><nowiki>{{flag|Cassia|size=40px}}</nowiki></code> || {{flag|Cassia|size=40px}} || The flag image size can use any standard wiki image size markup.
|}
</noinclude>

Latest revision as of 21:22, 17 November 2024

Template documentation

The {{flag}} template displays a flag icon before a wiki-linked country name.

Usage

{{flag|1|size|display}}

Parameters

Parameter Description Type Status
1 Country name (should match the country's article name) String Required
size Image size, e.g. 30px. Defaults to 25px String Optional
display Text to display. Defaults to the value of 1 String Optional

Examples

Wiki markup Displays Notes
{{flag|Anat Tahan}} Anat Tahan
{{flag|Hergom ep swekorwos|display=Hergom}} Hergom Different text can be displayed in place of the country name.
{{flag|Tianji}} Tianji If a country doesn't have a flag image, a placeholder is used so the country name lines up with others in a list.
{{flag|Cassia|size=40px}} Cassia The flag image size can use any standard wiki image size markup.

Supported flags

Currently supported flags
Current countries Historic countries Subdivisions Other entities
  • Aedeland
  • Alsair
  • Anat Tahan
  • Anisora
  • Ardar
  • Arvor
  • Auresia
  • Becuvitatia
  • Bule
  • Cassia
  • Chaska
  • Cladania
  • East Lusavan
  • Einhafan
  • Gate of Light
  • Grunland
  • Halland
  • Helreich
  • Hergom (Hergom ep swekorwos)
  • Ilhuiyoco
  • Ithrien
  • Kamura
  • Koskiya
  • Livaria
  • Lucentia
  • Mahaan Maaran
  • Mantharavati
  • Mirapan
  • Negasi
  • Nestor
  • New Hoffnung
  • Parangón
  • Raška
  • Rissland
  • Saoirth
  • Sokoku
  • Stolvic Orderist Commonwealth
  • Tavonia
  • Transelfasland
  • United New Kingdoms
  • Vittmark
  • Yanwen
  • Anisoran Empire
  • The Bind
  • Dhonowlgos
  • Fisks islands
  • Hagen
  • Huilcasonco
  • Ilhuiyoco
  • Tsuki Integrality
  • Vittmark
    • Ådalen
    • Austland West Hagen
    • Kulla Crown Domain
    • Liden
    • Mellersta Haga
    • Östervallen
    • Sörmark
  • Die Eintracht
  • Gold Exchange Mechanism
  • International Council of Nations (ICoN)
  • Ombhrosdhom Commonwealth Treaty
  • Open Seas Security Organization (OSSO)
  • Restoration Coalition
  • Thultannian Union
  • Triarchy

To add a flag to the template, edit it and add the following on its own line within the appropriate section (demarked by <!-- --> tags) and proper alphabetical location:
| countryname = flagfilename
Be sure to change countryname to the name of the article for the country and flagfilename to the name of the country's flag image file. For example:

| Bule = Bule-flag.png