Fandom Developers Wiki
Advertisement

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/**
 * ============================
 *      InterlanguageFlags
 * ============================
 * Code originally created on https://harrypotter.fandom.com/ru
 *   and then modified by leviathan_89 and Aeywoo
 */

/* General */
/* Helps preventing layout shift when the flag loads in the header dropdown menu */
.page-header__languages .wds-dropdown ul > li > a {
	align-items: center;
	display: flex;
}

/* Add a flag skeleton so there's no layout shift when the flag loads */
[class^="interwiki-"]::before,
.page-header__languages ul li a::before,
.page-footer__languages a::before {
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
	background-image: linear-gradient(to right, rgba(var(--theme-page-dynamic-color-1--rgb), .2), rgba(var(--theme-page-dynamic-color-1--rgb), .2)); /* A little trick */
	content: '';
	display: inline-block; /* Necessary so the element doesn't adjust to its container's height despite declared height property */
	height: 18px;
	line-height: 1; /* Prevents 1px of background still being visible above some flags */
	margin-inline-end: 8px;
	width: 24px;
	min-width: 24px; /* For wds-dropdown */
}

/* EN (English) */
/* EN must be first, this way the other codes will overwrite this if the English link is not present (like on English wikis) */
.interwiki-en::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-en"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/0/0b/English_language.svg );
}

/* AF (Afrikaans) */
.interwiki-af::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-af"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/a/af/Flag_of_South_Africa.svg );
}

/* AR (العربية) */
.interwiki-ar::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-ar"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/2/2b/Flag_of_the_Arab_League.svg );
}

/* BA (Башҡортса) */
.interwiki-ba::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-ba"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/3/3d/Flag_of_Bashkortostan.svg );
}

/* BE (Беларуская) / BE-Tarask/BE-X-Old (Беларуская (тарашкевіца)) */
.interwiki-be::before,
.interwiki-be-tarask::before,
.interwiki-be-x-old::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-be"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/8/85/Flag_of_Belarus.svg );
}

/* BG (български) */
.interwiki-bg::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-bg"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/9/9a/Flag_of_Bulgaria.svg );
}

/* BN (বাংলা) */
.interwiki-bn::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-bn"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/8/80/Bengali_language.svg );
}

/* BS (Bosanski) */
.interwiki-bs::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-bs"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/b/bf/Flag_of_Bosnia_and_Herzegovina.svg );
}

/* CA (Català) */
.interwiki-ca::before,
:is(.page-header__languages ul li a, .page-footer__languages a)[data-tracking-label^="lang-ca"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/c/ce/Flag_of_Catalonia.svg );
}

/* CS (čeština) */
.interwiki-cs::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-cs"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/c/cb/Flag_of_the_Czech_Republic.svg );
}

/* CY (Cymraeg) */
.interwiki-cy::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-cy"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/d/dc/Flag_of_Wales.svg );
}

/* DA (dansk) */
.interwiki-da::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-da"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/9/9c/Flag_of_Denmark.svg );
}

/* DE (Deutsch) */
:is(.interwiki-de, .interwiki-de2)::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-de"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/a/a2/Flag_of_Germany_and_Austria.svg );
}

/* EL (Ελληνικά) */
.interwiki-el::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-el"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/5/5c/Flag_of_Greece.svg );
}

/* EN2 (English) */
.interwiki-en2::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-en2"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/a/a4/Flag_of_the_United_States.svg );
}

/* EN-GB (British English) */
.interwiki-en-gb::before,
.interwiki-en-GB::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-en-gb" i]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/a/a5/Flag_of_the_United_Kingdom_%281-2%29.svg );
}

/* EO (Esperanto) */
.interwiki-eo::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-eo"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/f5/Flag_of_Esperanto.svg );
}

/* ES (español) */
.interwiki-es::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-es"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/4/49/Flag_of_Spanish_language_%28ES-MX%29.svg );
}

/* ET (eesti) */
.interwiki-et::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-et"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/8/8f/Flag_of_Estonia.svg );
}

/* EU (euskara) */
.interwiki-eu::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-eu"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/2/2d/Flag_of_the_Basque_Country.svg );
}

/* FA (فارسی) */
.interwiki-fa::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-fa"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/c/ca/Flag_of_Iran.svg );
}

/* FI (suomi) */
.interwiki-fi::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-fi"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/b/bc/Flag_of_Finland.svg );
}

/* FR (français) */
.interwiki-fr::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-fr"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/3/3e/Flag_of_French_language_%28QC-FR%29.svg );
}

/* GA (Gaeilge) */
.interwiki-ga::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-ga"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/4/45/Flag_of_Ireland.svg );
}

/* GAN (贛語) */
.interwiki-gan::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-gan"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_the_People%27s_Republic_of_China.svg );
}

/* GAN-HANS (赣语(简体)) */
.interwiki-gan-hans::before,
.interwiki-gan-Hans::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-gan-hans" i]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_the_People%27s_Republic_of_China.svg );
}

/* GAN-HANT (贛語(繁體)) */
.interwiki-gan-hant::before,
.interwiki-gan-Hant::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-gan-hant" i]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_the_People%27s_Republic_of_China.svg );
}

/* GL (Galego) */
.interwiki-gl::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-gl"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/6/64/Flag_of_Galicia.svg );
}

/* HE (עברית) */
.interwiki-he::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-he"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/d/d4/Flag_of_Israel.svg );
}

/* HI (हिन्दी) */
.interwiki-hi::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-hi"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/4/41/Flag_of_India.svg );
}

/* HR (hrvatski) */
.interwiki-hr::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-hr"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/1/1b/Flag_of_Croatia.svg );
}

/* HU (magyar) */
.interwiki-hu::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-hu"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/c/c1/Flag_of_Hungary.svg );
}

/* HY (հայերեն) */
.interwiki-hy::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-hy"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/2/2f/Flag_of_Armenia.svg );
}

/* ID (Bahasa Indonesia) */
.interwiki-id::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-id"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/9/9f/Flag_of_Indonesia.svg );
}

/* IS (íslenska) */
.interwiki-is::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-is"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/c/ce/Flag_of_Iceland.svg );
}

/* IT (italiano) */
.interwiki-it::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-it"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/0/03/Flag_of_Italy.svg );
}

/* JA (日本語) */
.interwiki-ja::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-ja"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/9/9e/Flag_of_Japan.svg );
}

/* KA (ქართული) */
.interwiki-ka::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-ka"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/0/0f/Flag_of_Georgia.svg );
}

/* KK (қазақша) */
.interwiki-kk::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-kk"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/d/d3/Flag_of_Kazakhstan.svg );
}

/* KN (ಕನ್ನಡ) */
.interwiki-kn::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-kn"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/4/41/Flag_of_India.svg );
}

/* KO (한국어) */
.interwiki-ko::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-ko"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/0/09/Flag_of_South_Korea.svg );
}

/* LA (Latina) */
.interwiki-la::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-la"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/fc/Flag_of_the_Vatican_City_%282001–2023%29.svg );
}

/* LI (Limburgs) */
.interwiki-li::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-li"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/d/d1/Flag_of_Limburg_%28Netherlands%29.svg );
}

/* LT (lietuvių) */
.interwiki-lt::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-lt"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/1/11/Flag_of_Lithuania.svg );
}

/* LV (latviešu) */
.interwiki-lv::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-lv"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/8/84/Flag_of_Latvia.svg );
}

/* LZH (文言) */
.interwiki-lzh::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-lzh"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/8/89/BCP_47_flag_lzh.svg );
}
/* currentColor won't work */
.theme-fandomdesktop-dark .interwiki-lzh::before,
.theme-fandomdesktop-dark :is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-lzh"]::before {
	background-image: url( 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 3 24 18" fill="none"><title>lzh</title><rect x="1" y="4" rx="2" width="22" height="16" fill="%23cccccc" fill-opacity="0.44" /><!-- 文 --><path fill="%23ffffff" fill-opacity="0.88" d="M12.9945 8.039C12.8125 7.493 12.3705 6.661 11.9805 6.05L10.9795 6.336C11.3695 6.973 11.7855 7.844 11.9415 8.377ZM14.6975 9.352C14.0475 11.107 13.1765 12.537 12.0195 13.707C10.7975 12.485 9.8615 11.003 9.1855 9.352ZM17.8305 9.352V8.403H6.1825V9.352H8.1845C8.9385 11.315 9.9655 13.005 11.3045 14.383C9.8875 15.579 8.1455 16.463 6.0005 17.074C6.1955 17.295 6.4815 17.737 6.5985 17.971C8.7565 17.282 10.5505 16.346 12.0065 15.072C13.4495 16.372 15.2175 17.321 17.3365 17.919C17.4925 17.646 17.7655 17.243 17.9995 17.022C15.9325 16.515 14.1775 15.592 12.7475 14.383C14.0475 13.044 15.0485 11.406 15.7895 9.352Z" /></svg>' );
}

/* MHR (Олык марий) - Used in Dev Wiki's main page */
.interwiki-mhr::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-mhr"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/a/a7/Flag_of_Mari_El.svg );
}

/* MK (македонски) */
.interwiki-mk::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-mk"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/7/79/Flag_of_North_Macedonia.svg );
}

/* MN (монгол) */
.interwiki-mn::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-mn"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/4/4c/Flag_of_Mongolia.svg );
}

/* MO (Молдовеняскэ) */
.interwiki-mo::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-mo"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/2/27/Flag_of_Moldova.svg );
}

/* MR (मराठी) */
.interwiki-mr::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-mr"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/4/41/Flag_of_India.svg );
}

/* MRJ (Кырык мары) - Used in Dev Wiki's main page */
.interwiki-mrj::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-mrj"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/a/a7/Flag_of_Mari_El.svg );
}

/* MS (Bahasa Melayu) */
.interwiki-ms::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-ms"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/6/66/Flag_of_Malaysia.svg );
}

/* MY (မြန်မာဘာသာ) */
.interwiki-my::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-my"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/8/8c/Flag_of_Myanmar.svg );
}

/* NB (norsk bokmål) */
.interwiki-nb::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-nb"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/d/d9/Flag_of_Norway.svg );
}

/* NL (Nederlands) */
.interwiki-nl::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-nl"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/2/20/Flag_of_the_Netherlands.svg );
}

/* NO (norsk (bokmål)) */
.interwiki-no::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-no"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/d/d9/Flag_of_Norway.svg );
}

/* NRF/NRM (Nouormand) - Used in Dev Wiki's main page */
.interwiki-nrf::before,
.interwiki-nrm::before,
:is(.page-header__languages ul li, .page-footer__languages) a:is([data-tracking-label^="lang-nrf"], [data-tracking-label^="lang-nrm"])::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/4/41/Flag_of_Normandie.svg );
}

/* OC (occitan) */
.interwiki-oc::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-oc"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/4/45/Flag_of_Occitania.svg );
}

/* PL (polski) */
.interwiki-pl::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-pl"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/1/12/Flag_of_Poland.svg );
}

/* PT (português) */
.interwiki-pt::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-pt"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/5/5c/Flag_of_Portugal.svg );
}

/* PT-BR (português do brasil) */
.interwiki-pt-br::before,
.interwiki-pt-BR::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-pt-br" i]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/0/05/Flag_of_Brazil.svg );
}

/* RO (Română) */
.interwiki-ro::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-ro"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/7/73/Flag_of_Romania.svg );
}

/* RO-Cyrl-MD (Молдовеняскэ) */
.interwiki-ro-cyrl-md::before,
.interwiki-ro-Cyrl-MD::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-ro-cyrl-md" i]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/2/27/Flag_of_Moldova.svg );
}

/* RU (Русский) */
.interwiki-ru::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-ru"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/f3/Flag_of_Russia.svg );
}

/* RUE (Русиньскый) */
.interwiki-rue::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-rue"]::before {
	background-image: url( https://static.wikia.nocookie.net/wlb/images/6/60/Small-rue.png/revision/latest?cb=20160306141614&format=original );
}
/* SH (srpskohrvatski / српскохрватски) */
.interwiki-sh::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-sh"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/e/e5/Flag_of_Yugoslavia_%281918%E2%80%931941%29.svg );
}

/* SK (slovenčina) */
.interwiki-sk::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-sk"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/e/e6/Flag_of_Slovakia.svg );
}

/* SL (slovenščina) */
.interwiki-sl::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-sl"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/f0/Flag_of_Slovenia.svg );
}

/* SQ (shqip) */
.interwiki-sq::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-sq"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/3/36/Flag_of_Albania.svg );
}

/* SR (Српски / Srpski) */
.interwiki-sr::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-sr"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/ff/Flag_of_Serbia.svg );
}

/* SR-EL (Srpski) */
.interwiki-sr-el::before,
.interwiki-sr-EL::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-sr-el" i]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/ff/Flag_of_Serbia.svg );
}

/* SS (SiSwati) */
.interwiki-ss::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-ss"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/fb/Flag_of_Eswatini.svg );
}

/* SV (svenska) */
.interwiki-sv::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-sv"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/en/4/4c/Flag_of_Sweden.svg );
}

/* TG (тоҷикӣ) */
.interwiki-tg::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-tg"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/d/d0/Flag_of_Tajikistan.svg );
}

/* TH (ไทย) */
.interwiki-th::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-th"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/a/a9/Flag_of_Thailand.svg );
}

/* TL (Tagalog) */
.interwiki-tl::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-tl"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/9/99/Flag_of_the_Philippines.svg );
}

/* TR (Türkçe) */
.interwiki-tr::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-tr"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/b/b4/Flag_of_Turkey.svg );
}

/* TT (татарча/tatarça) */
.interwiki-tt::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-tt"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/2/28/Flag_of_Tatarstan.svg );
}

/* UDM (Удмурт) - Used in Dev Wiki's main page */
.interwiki-udm::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-udm"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/c/c7/Flag_of_Udmurtia.svg );
}

/* UK (Українська) */
.interwiki-uk::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-uk"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/4/49/Flag_of_Ukraine.svg );
}

/* VI (Tiếng Việt) */
.interwiki-vi::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-vi"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/2/21/Flag_of_Vietnam.svg );
}

/* WUU (吴语) */
.interwiki-wuu::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-wuu"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_the_People%27s_Republic_of_China.svg );
}

/* WUU-HANS (吴语(简体)) */
.interwiki-wuu-hans::before,
.interwiki-wuu-Hans::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-wuu-hans" i]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_the_People%27s_Republic_of_China.svg );
}

/* WUU-HANT (吳語(正體)) */
.interwiki-wuu-hant::before,
.interwiki-wuu-Hant::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-wuu-hant" i]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_the_People%27s_Republic_of_China.svg );
}

/* YI (ייִדיש) - Used in Dev Wiki's main page */
.interwiki-yi::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-yi"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/d/d4/Flag_of_Israel.svg );
}

/* YUE (粵語) */
.interwiki-yue::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-yue"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_the_People%27s_Republic_of_China.svg );
}

/* YUE-HANS (粤语(简体)) */
.interwiki-yue-hans::before,
.interwiki-yue-Hans::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-yue-hans" i]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_the_People%27s_Republic_of_China.svg );
}

/* YUE-HANT (粵語(繁體)) */
.interwiki-yue-hant::before,
.interwiki-yue-Hant::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-yue-hant" i]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/5/5b/Flag_of_Hong_Kong.svg );
}

/**
 * ZH (中文)
 * Hani/Hans/Hant, depends on the wiki used
 */
.interwiki-zh::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-zh"]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/ff/BCP_47_flag_zh.svg );
}
/* currentColor won't work */
.theme-fandomdesktop-dark .interwiki-zh::before,
.theme-fandomdesktop-dark :is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-zh"]::before {
	background-image: url( 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 3 24 18" fill="none"><title>zh</title><rect x="1" y="4" rx="2" width="22" height="16" fill="%23cccccc" fill-opacity="0.44" /><!-- 中 --><path fill="%23ffffff" fill-opacity="0.88" d="M12.4745 12.858V9.413H16.2055V12.858ZM7.7555 12.858V9.413H11.4735V12.858ZM12.4745 8.464V6.150H11.4735V8.464H6.8065V14.613H7.7555V13.807H11.4735V18.02H12.4745V13.807H16.2055V14.548H17.1935V8.464Z" /></svg>' );
}

/* ZH-HANS (中文(简体)) */
.interwiki-zh-hans::before,
.interwiki-zh-Hans::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-zh-hans" i]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/7/75/BCP_47_flag_zh-Hans.svg );
}
/* currentColor won't work */
.theme-fandomdesktop-dark .interwiki-zh-hans::before,
.theme-fandomdesktop-dark .interwiki-zh-Hans::before,
.theme-fandomdesktop-dark :is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-zh-hans" i]::before {
	background-image: url( 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 3 24 18" fill="none"><title>zh-Hans</title><rect x="1" y="4" rx="2" width="22" height="16" fill="%23cccccc" fill-opacity="0.44" /><!-- 简 --><path fill="%23ffffff" fill-opacity="0.88" d="M7.944 7.224H11.909V8.043H7.944V7.224ZM12.858 7.237H17.59V8.069H12.858V7.237ZM8.178 6.054L9.101 6.288C8.62 7.64 7.788 8.94 6.93 9.772C6.748 9.616 6.358 9.356 6.124 9.239C7.008 8.472 7.749 7.289 8.178 6.054ZM13.248 6.067L14.171 6.288C13.794 7.536 13.118 8.745 12.39 9.525C12.208 9.356 11.818 9.096 11.584 8.966C12.325 8.264 12.923 7.198 13.248 6.067ZM8.919 7.848L9.738 7.549C10.089 8.082 10.492 8.836 10.648 9.291L9.79 9.642C9.647 9.161 9.27 8.407 8.919 7.848ZM14.249 7.822L15.055 7.497C15.484 8.056 15.991 8.823 16.199 9.343L15.354 9.72C15.159 9.213 14.691 8.407 14.249 7.822ZM10.05 13.828H13.989V14.543H10.05V13.828ZM6.878 11.111H7.827V18.027H6.878V11.111ZM10.05 10.019H16.667V10.89H10.05V10.019ZM7.463 9.993L8.178 9.512C8.737 9.98 9.374 10.643 9.673 11.098L8.919 11.631C8.646 11.176 8.009 10.474 7.463 9.993ZM16.16 10.019H17.109V16.87C17.109 17.416 16.992 17.676 16.602 17.819C16.212 17.962 15.575 17.975 14.587 17.962C14.548 17.715 14.418 17.351 14.275 17.104C15.003 17.13 15.705 17.13 15.887 17.117C16.095 17.104 16.16 17.052 16.16 16.87V10.019ZM10.492 12.736V15.713H13.56V12.736H10.492ZM9.647 11.969H14.431V16.467H9.647V11.969Z" /></svg>' );
}

/* ZH-HANT (中文(繁體)) */
.interwiki-zh-hant::before,
.interwiki-zh-Hant::before,
:is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-zh-hant" i]::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/f0/BCP_47_flag_zh-Hant.svg );
}
/* currentColor won't work */
.theme-fandomdesktop-dark .interwiki-zh-hant::before,
.theme-fandomdesktop-dark .interwiki-zh-Hant::before,
.theme-fandomdesktop-dark :is(.page-header__languages ul li, .page-footer__languages) a[data-tracking-label^="lang-zh-hant" i]::before {
	background-image: url( 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 3 24 18" fill="none"><title>zh-Hant</title><rect x="1" y="4" rx="2" width="22" height="16" fill="%23cccccc" fill-opacity="0.44" /><!-- 繁 --><path fill="%23ffffff" fill-opacity="0.88" d="M13.846 6.08L14.704 6.288C14.249 7.588 13.469 8.81 12.598 9.616C12.455 9.46 12.117 9.135 11.922 8.992C12.754 8.277 13.443 7.211 13.846 6.08ZM16.173 7.653L17.083 7.757C16.459 10.305 14.86 11.748 12.546 12.632C12.429 12.437 12.13 12.086 11.935 11.917C14.184 11.202 15.666 9.902 16.173 7.653ZM13.521 7.38H17.85V8.16H13.131L13.521 7.38ZM7.788 6.041L8.633 6.249C8.204 7.185 7.476 8.108 6.787 8.719C6.644 8.576 6.28 8.329 6.072 8.225C6.787 7.666 7.424 6.873 7.788 6.041ZM7.619 6.886H12.299V7.562H7.281L7.619 6.886ZM13.794 7.991C14.457 9.954 15.991 11.397 18.162 11.956C17.967 12.151 17.707 12.502 17.577 12.749C15.315 12.047 13.794 10.435 13.027 8.173L13.794 7.991ZM11.48 15.31H12.442V18.066H11.48V15.31ZM11.051 12.021L11.87 12.424C11.233 12.97 10.427 13.529 9.803 13.906L9.153 13.542C9.777 13.139 10.596 12.489 11.051 12.021ZM13.534 12.528L14.353 12.996C13.092 13.88 11.363 14.881 10.037 15.505L9.426 15.089C10.765 14.439 12.507 13.347 13.534 12.528ZM7.645 13.503L8.308 12.97C9.257 13.36 10.479 13.997 11.129 14.478L10.414 15.076C9.829 14.608 8.607 13.932 7.645 13.503ZM13.937 14.166L14.587 13.698C15.692 14.205 17.07 15.011 17.772 15.622L17.083 16.155C16.42 15.557 15.055 14.712 13.937 14.166ZM13.742 16.376L14.431 15.843C15.523 16.181 16.94 16.792 17.694 17.286L16.953 17.871C16.264 17.403 14.86 16.753 13.742 16.376ZM6.332 14.959C8.763 14.959 12.728 14.907 16.472 14.816L16.42 15.531C12.767 15.635 8.867 15.739 6.371 15.778L6.332 14.959ZM9.335 15.882L10.193 16.22C9.309 16.87 7.944 17.507 6.852 17.897C6.683 17.728 6.345 17.39 6.124 17.234C7.268 16.922 8.542 16.415 9.335 15.882ZM7.294 8.173H8.074C7.879 9.434 7.58 11.072 7.346 12.06L6.553 11.969C6.8 10.981 7.112 9.369 7.294 8.173ZM9.166 8.381H9.868C9.777 9.317 9.621 10.513 9.478 11.254L8.776 11.228C8.919 10.461 9.088 9.291 9.166 8.381ZM7.58 8.173H11.363V8.758H7.58V8.173ZM6.085 9.499H12.52V10.11H6.085V9.499ZM7.086 10.929H12.507V11.527H7.086V10.929ZM11.103 8.173H11.857C11.857 8.173 11.844 8.394 11.831 8.524C11.675 11.046 11.493 11.982 11.194 12.307C10.999 12.502 10.804 12.593 10.505 12.606C10.258 12.619 9.816 12.619 9.374 12.58C9.361 12.398 9.283 12.112 9.179 11.943C9.634 11.995 10.037 11.995 10.206 11.995C10.375 11.995 10.466 11.982 10.57 11.865C10.791 11.631 10.947 10.721 11.103 8.29V8.173Z" /></svg>' );
}

/* ZH-HANS-CN (ZH-CN) (中文(中国大陆)) */
.interwiki-zh-cn::before,
.interwiki-zh-Hans-CN::before,
:is(.page-header__languages ul li, .page-footer__languages) a:is([data-tracking-label^="lang-zh-cn" i], [data-tracking-label^="lang-zh-hans-cn" i])::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_the_People%27s_Republic_of_China.svg );
}

/* ZH-HANT-HK (ZH-HK) (中文(香港)) */
.interwiki-zh-hk::before,
.interwiki-zh-Hant-HK::before,
:is(.page-header__languages ul li, .page-footer__languages) a:is([data-tracking-label^="lang-zh-hk" i], [data-tracking-label^="lang-zh-hant-hk" i])::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/5/5b/Flag_of_Hong_Kong.svg );
}

/* ZH-HANT-MO (ZH-MO) (中文(澳門)) */
.interwiki-zh-mo::before,
.interwiki-zh-Hant-MO::before,
:is(.page-header__languages ul li, .page-footer__languages) a:is([data-tracking-label^="lang-zh-mo" i], [data-tracking-label^="lang-zh-hant-mo" i])::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/6/63/Flag_of_Macau.svg );
}

/* ZH-HANS-MY (ZH-MY) (中文(马来西亚)) */
.interwiki-zh-my::before,
.interwiki-zh-Hans-MY::before,
:is(.page-header__languages ul li, .page-footer__languages) a:is([data-tracking-label^="lang-zh-my" i], [data-tracking-label^="lang-zh-hans-my" i])::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/6/66/Flag_of_Malaysia.svg );
}

/* ZH-HANS-SG (ZH-SG) (中文(新加坡)) */
.interwiki-zh-sg::before,
.interwiki-zh-Hans-SG::before,
:is(.page-header__languages ul li, .page-footer__languages) a:is([data-tracking-label^="lang-zh-sg" i], [data-tracking-label^="lang-zh-hans-sg" i])::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/4/48/Flag_of_Singapore.svg );
}

/* ZH-HANT-TW (ZH-TW) (中文(臺灣)‬) */
.interwiki-zh-tw::before,
.interwiki-zh-Hant-TW::before,
:is(.page-header__languages ul li, .page-footer__languages) a:is([data-tracking-label^="lang-zh-tw" i], [data-tracking-label^="lang-zh-hant-tw" i])::before {
	background-image: url( https://upload.wikimedia.org/wikipedia/commons/7/72/Flag_of_the_Republic_of_China.svg );
}
Advertisement