Module talk:Countries/Europe
Examples
[edit]{{#invoke:Countries|main|Europe}}
(normal invokation) gives:{{#invoke:Countries/sandbox|main|Europe}}
(sandbox version if needed to test changes) gives:Countries of Europe: Albania · Andorra · Armenia‡ · Austria · Azerbaijan‡ · Belarus · Belgium · Bosnia and Herzegovina · Bulgaria · Croatia · Cyprus‡ · Czech Republic · Denmark · Estonia · Finland · France‡ · Georgia‡ · Germany · Greece · Hungary · Iceland · Ireland · Italy · Kazakhstan‡ · Latvia · Liechtenstein · Lithuania · Luxembourg · Malta · Moldova · Monaco · Montenegro · Netherlands‡ · North Macedonia · Norway · Poland · Portugal‡ · Romania · Russia‡ · San Marino · Serbia · Slovakia · Slovenia · Spain‡ · Sweden · Switzerland · Turkey‡ · Ukraine · United Kingdom · Vatican City
Specific status: Akrotiri and Dhekelia‡ · Faroe Islands · Gibraltar · Bailiwick of Guernsey · Isle of Man · Jersey · Svalbard – Limited recognition: Abkhazia‡ · Gagauzia · Kosovo · South Ossetia‡ · Transnistria · Northern Cyprus‡ · United Nations Buffer Zone in Cyprus‡
‡: partly located in Europe
Check the results for other user languages by reloading this page in other languages with the "?uselang=xx" parameter added to the URL. For example:
af: Afrikaans · gsw: Alemannisch · az: azərbaycanca · an: aragonés · id: Bahasa Indonesia · ms: Bahasa Melayu · nan: 閩南語 / Bân-lâm-gú · jv: Jawa · su: Sunda · bar: Boarisch · bs: bosanski · br: brezhoneg · ca: català · ceb: Cebuano · cs: čeština · sn: chiShona · co: corsu · da: dansk · se: davvisámegiella · de: Deutsch · dsb: dolnoserbski · et: eesti · en: English · es: español · eo: Esperanto · ext: estremeñu · eu: euskara · fr: français · fy: Frysk · ga: Gaeilge · gd: Gàidhlig · gl: galego · haw: Hawaiʻi · hmn: Hmong · hsb: hornjoserbsce · hr: hrvatski · ig: Igbo · xh: isiXhosa · zu: isiZulu · is: íslenska · it: italiano · kl: kalaallisut · rw: Ikinyarwanda · sw: Kiswahili · ku: kurdî · la: Latina · lv: latviešu · lb: Lëtzebuergesch · lt: lietuvių · lij: Ligure · li: Limburgs · hu: magyar · mt: Malti · mi: Māori · mwl: Mirandés · nap: Napulitano · nl: Nederlands · nds-nl: Nedersaksies · nb: norsk bokmål · nn: norsk nynorsk · nov: Novial · oc: occitan · om: Oromoo · uz: oʻzbekcha / ўзбекча · nds: Plattdüütsch · pl: polski · pt: português · crh: qırımtatarca · ro: română · rmy: romani čhib · rm: rumantsch · sc: sardu · sco: Scots · st: Sesotho · sq: shqip · sk: slovenčina · sl: slovenščina · so: Soomaaliga · fi: suomi · sv: svenska · tl: Tagalog · vi: Tiếng Việt · chy: Tsetsêhestâhese · tr: Türkçe · tk: Türkmençe · ug: ئۇيغۇرچە / Uyghurche · vec: vèneto · vls: West-Vlams · zea: Zeêuws · el: Ελληνικά · pnt: Ποντιακά · ab: аԥсшәа · bg: български · be: беларуская · be-tarask: беларуская (тарашкевіца) · os: ирон · kk: қазақша · ky: кыргызча · mk: македонски · mn: монгол · ce: нохчийн · rue: русиньскый · ru: русский · sr: српски / srpski · tt: татарча / tatarça · tg: тоҷикӣ · uk: українська · ka: ქართული · hy: հայերեն · hi: हिन्दी · ne: नेपाली · new: नेपाल भाषा · sa: संस्कृतम् · mr: मराठी · as: অসমীয়া · bn: বাংলা · gu: ગુજરાતી · pa: ਪੰਜਾਬੀ · kn: ಕನ್ನಡ · ta: தமிழ் · th: ไทย · km: ភាសាខ្មែរ · lo: ລາວ · my: မြန်မာဘာသာ · bo: བོད་ཡིག · ko: 한국어 · ja: 日本語 · zh-hans: 中文(简体) · zh-hant: 中文(繁體) · yue: 粵語 · ii: ꆇꉙ · am: አማርኛ · ti: ትግርኛ · iu: ᐃᓄᒃᑎᑐᑦ / inuktitut · chr: ᏣᎳᎩ · he: עברית · yi: ייִדיש · ar: العربية · fa: فارسی · ps: پښتو · ur: اردو · sd: سنڌي · dv: ދިވެހިބަސް ·
North Macedonia in Greek
[edit]Hi Verdy p, could you please explain why you have undone my edit Special:Diff/339025737? 4nn1l2 (talk) 10:15, 15 February 2019 (UTC)
- I have not "undone" it but fixed other data (notably for restoring the automatic sort which was disabled and now works). But thre was modifications in both the naormal and the sandbox version, and did not saw your single code reorder specific for Greek. verdy_p (talk) 14:49, 15 February 2019 (UTC)
- Okay, I see that you have restored my edit now: Special:Diff/339076985/next. 4nn1l2 (talk) 15:12, 15 February 2019 (UTC)
- You forgot to use the sandbox, I was changing things using the sandbox (initially equal to the normal version) and then applied it as it was working as intended. As instructed, you should test changes in the sandbox version, not directly in the normal version. verdy_p (talk) 15:15, 15 February 2019 (UTC)
- That's right. I will do that from now on. Thanks. 4nn1l2 (talk) 15:40, 15 February 2019 (UTC)
- There's a version check on Module:Countries which shows modules that differ from their sandbox version and then shows the differences. I had just resynchronized them a few days ago.But there's still a fix to do for the "all=1" option (untranslated, unsorted) which no longer works completely to list all variant names used in Commons, since it the older templates were converted to modules; unfortunately that conversion was done by someone that diod not understand the "all=1" effect completely and then did not allow more than one link to be displayed for the same country with that option (except handling of article "the"), so there are now missing links for this special mode. But fixing that requires rewriting the base module significantly (I have first synchronized the logic for the presentation and for conditional sections, and made it work completely without that special option, but all=1 is more complex to handle and the existing code is not easy to refactor). verdy_p (talk) 15:43, 15 February 2019 (UTC)
Font size
[edit]@Brateevsky: Countries like Russia and Turkey are the exception, not the norm. Most countries of the world lie on just one continent.
The current font-size is so tiny that I have difficulty reading the text. I know that at least another user has the same problem. To reach a compromise, I suggest to make the font size 88% just like navboxes of the English Wikipedia:
font-size:smaller
gives:font-size:88%
gives:Countries of Europe: Albania · Andorra · Armenia‡ · Austria · Azerbaijan‡ · Belarus · Belgium · Bosnia and Herzegovina · Bulgaria · Croatia · Cyprus‡ · Czech Republic · Denmark · Estonia · Finland · France‡ · Georgia‡ · Germany · Greece · Hungary · Iceland · Ireland · Italy · Kazakhstan‡ · Latvia · Liechtenstein · Lithuania · Luxembourg · Malta · Moldova · Monaco · Montenegro · Netherlands‡ · North Macedonia · Norway · Poland · Portugal‡ · Romania · Russia‡ · San Marino · Serbia · Slovakia · Slovenia · Spain‡ · Sweden · Switzerland · Turkey‡ · Ukraine · United Kingdom · Vatican City
Specific status: Akrotiri and Dhekelia‡ · Faroe Islands · Gibraltar · Bailiwick of Guernsey · Isle of Man · Jersey · Svalbard – Limited recognition: Abkhazia‡ · Gagauzia · Kosovo · South Ossetia‡ · Transnistria · Northern Cyprus‡ · United Nations Buffer Zone in Cyprus‡
‡: partly located in Europefont-size not defined
gives:Countries of Africa: Algeria · Angola · Benin · Botswana · Burkina Faso · Burundi · Cameroon · Cape Verde · Central African Republic · Chad · Comoros · Democratic Republic of the Congo · Republic of the Congo · Djibouti · Egypt‡ · Equatorial Guinea · Eritrea · Eswatini · Ethiopia · Gabon · The Gambia · Ghana · Guinea · Guinea-Bissau · Ivory Coast · Kenya · Lesotho · Liberia · Libya · Madagascar · Malawi · Mali · Mauritania · Mauritius · Morocco · Mozambique · Namibia · Niger · Nigeria · Rwanda · São Tomé and Príncipe · Senegal · Seychelles · Sierra Leone · Somalia · South Africa · South Sudan · Sudan · Tanzania · Togo · Tunisia · Uganda · Zambia · Zimbabwe
Limited recognition: Ambazonia · Azawad · Puntland · Sahrawi Arab Democratic Republic · Somaliland – Other areas: Bir Tawil · Canary Islands · Ceuta · Madeira · Mayotte · Melilla · Réunion · Saint Helena, Ascension and Tristan da Cunha · Scattered Islands in the Indian Ocean · Western Sahara
‡: partly located in Africa
4nn1l2 (talk) 06:09, 4 April 2019 (UTC)
- @4nn1l2: : well, not only Russia and Turkey, but also Kazakhstan and Egypt (Asia & Africa). =) OK, I agree about statement that most countries of the world lie on just one continent. So I agree to make the size of font at 88%, but not more. I suppose you use Farsi (Persian) script, it requires the size of 100% to read even for me. But most of languages uses Latin script (the Greek and languages on Cyrillic are similar to Latin at 20-30%), so we must get into accordance these scripts. Anyway, I plan to return the initial size (70% ?) of script for only 4 countries (in categories related only to Russia, Turkey, etc.), but I don't know now how to make this. --Brateevsky {talk} 09:27, 4 April 2019 (UTC)
- The module has no procedure to allow different font sizes for different countries. If there was a discussion at a noticeboard that involved several people concluding it was necessary, I could look at what would be involved. Johnuniq (talk) 04:16, 5 April 2019 (UTC)
- @Brateevsky and Verdy p: As discussed above, only Kazakhstan, Russia and Turkey are usually considered to be partly located in Europe. It is very peculiar to have other countries flagged as such (Denmark, France, Iceland, Netherlands, Spain, UK). After all, if this is due to the presence of oversseas territories, Spain is not listed among countries of Africa or the Netherlands among countries of the Americas. Only their overseas territories are. I therefore removed this mention in sandbox, and will do it on the main page if there is no opposition. Place Clichy 10:10, 20 September 2019 (UTC)
- I don't see the problem at all about font sizes, given they are already set at 88% (knowing that "smaller" is browser-dependent) for the content. Tweaking font sizes per script was never done before, but the Arabic script is not enlarged compared to Latin even in Arabic wikis (even for those using its nastaliq style), but only for some South-Est Asian scripts.
- Tweaking the font size is not easy if the content is multilingual (and there's no easy way to determine which script will be returned from translations, given that most languages will just show a fallback, most often English but sometimes French, Spanish, Russian, all of them using the same font metrics shared between Latin/Greek/Cyrillic/Arabic/Hebrew scripts).
- Labels also avoid using italics as much as possible for the list of links (they are just used for leading labels).
- Those having problems reading should blame Mediawiki for using by default a font size smaller than the recommended browser default: those users must then use the browser zoom in/out option for visiting wikis, or set their browser font size to a larger size.
- As well you should state clearly which platform (OS, browser, version, and screen size you have: may be this is not a problem of the wikis but incorrect settings of your device, or lack of support for the device to render the web correctly). As well you should tell which Mediawiki UI you use (mobile or desktop) and skin: your user settings on this wiki may be the cause and in fact it's not a problem of this template but you have the same problem for all contents of this wiki, and properly settting your device (or resetting it it to its defaults, uninstalling some custom "skins" which are generally just pollution: if you need a background desktop photo, you don't need skins for that, download your preferred image from Commons or other free photo sharing site, or from you own personal photos/graphics should be preferred, you'll also avoid many adwares built in with many phone customizers). Finally learn to use the two-finger gesture to zoom in/out and make sure you use the mobile version of this site because the standard/desktop version is not tuned at all for small screens. verdy_p (talk) 16:23, 20 September 2019 (UTC)
- @Place Clichy: Why remove Denmark from "‡" marked countries? Greenland can't be considered as a part of Europe under any circumstances? --Liuxinyu970226 (talk) 15:15, 15 October 2019 (UTC)
- @Liuxinyu970226: You are correct about Greenland, just as Aruba, New Caledonia or Saint Helena cannot be considered part of Europe. However, their metropolitan countries (resp. Denmark, Netherlands, France and the UK) would not be considered to be "countries of North America" (resp. Oceania and Africa), even partly. They are not mentioned as such on the country templates for other continents. The ‡ mark was designed for countries whose mainland spans between Europe and Asia, namely Kazakhstan, Russia and Turkey. It would not be logical to expand its use to countries who have overseas parts outside of Europe, because that is precisely what overseas means. Place Clichy 15:33, 15 October 2019 (UTC)
- @Place Clichy: Why remove Denmark from "‡" marked countries? Greenland can't be considered as a part of Europe under any circumstances? --Liuxinyu970226 (talk) 15:15, 15 October 2019 (UTC)
Artsakh
[edit]Is there something in this module that is categorizing Commons:Currency/Europe (and others) in Category:Countries in the Caucasus, Category:Unrecognized or largely unrecognized states, Category:Artsakh, Category:Political geography of Armenia, and Category:Political geography of Azerbaijan? Thanks. - Themightyquill (talk) 07:22, 12 June 2019 (UTC)
- No, those categories do not come from anything related to Module:Countries. Consider two of the countries for Europe, Abkhazia and Artsakh. The former redirects to Аҧсны while the latter redirects to Category:Republic of Artsakh (and Artsakh is the only country in Europe which redirects to a category). Abkhazia works with no problem, while Artsakh goes crazy. Module:TNTExpandByCountries effectively does the following for the two countries:
{{Translatable template|CUR Country2|Abkhazia}}
{{Translatable template|CUR Country2|:Category:Republic of Artsakh}}
- The first works and gives a sensible result, while the second gives garbage, including the bogus categories. You can see that in Special:ExpandTemplates. I'm not sure what the fix should be. A simple workaround would be to create a page for Artsakh but the underlying problem in the module would remain. Johnuniq (talk) 07:58, 13 June 2019 (UTC)
- Why on earth is Module:Countries/Europe/sandbox linking to Republic of Artsakh? Where is it getting that input from?! - Themightyquill (talk) 15:43, 14 June 2019 (UTC)
- It was an edit on 23 May 2019 by Verdy p that introduced 'Republic of Artsakh' and 'Nagorno-Karabakh'. Your recent edit to the sandbox removed them. If there is still a problem, please spell it out. Bear in mind that Module:Countries/Europe still has 'Republic of Artsakh' and if a suitable page exists, it will be used for the link. Johnuniq (talk) 02:10, 15 June 2019 (UTC)
- Why on earth is Module:Countries/Europe/sandbox linking to Republic of Artsakh? Where is it getting that input from?! - Themightyquill (talk) 15:43, 14 June 2019 (UTC)
@Johnuniq: This is my first time editing modules, so maybe I'm confused. When I preview Module:Countries/Europe/sandbox with Commons:Currency/Europe, should it apply the edits I've made in the sandbox? Or if I make the same changes I made in the sandbox (removing "Republic of Artsakh", linking to Artsakh (Q4070921)) to Module:Countries/Europe and preview Commons:Currency/Europe without saving, should that reflect the changes? I believe in both cases, the module is still sending through the name "Republic of Artsakh" instead of just "Artsakh." Where is it getting that expanded name from?- Themightyquill (talk) 04:53, 15 June 2019 (UTC)
- @Themightyquill: If you edit Commons:Currency/Europe and look under "Templates used on this page" at the bottom, you will see that page uses Module:Countries and Module:Countries/Europe. That is, it does not use Module:Countries/Europe/sandbox. Therefore, the last point you made (edit Module:Countries/Europe then preview) is correct. You can see the effect of your edit to the module sandbox by comparing the countries listed at the top of Template:Countries of Europe and Template:Countries of Europe/sandbox. Johnuniq (talk) 05:16, 15 June 2019 (UTC)
- @Johnuniq: If you can make it work, I'd appreciate it. Nothing I do seems to work. - Themightyquill (talk) 19:59, 15 June 2019 (UTC)
- I reverted your edit at Module:Countries/Europe because it should not be needed now you edited Artsakh so it does not redirect to a category. Any page (such as Commons:Currency/Europe) that you want to test needs to be purged after editing a template or module. An easy way to do that is to edit the whole page (edit Commons:Currency/Europe) and save it (publish) without entering an edit summary and without making any changes. That causes the display to be updated. Commons:Currency/Europe looks as if it is working to me. If there is a problem, please spell it out. There were two problems with your edit to the module. First, a stray tab character got into the name "Republic of Artsakh". Second,
the = true
only works on the first item. That means "Republic of Artsakh" has to be first. That is a limitation in the module. Johnuniq (talk) 04:10, 16 June 2019 (UTC)- @Johnuniq: Thanks for reverting my edit if it das malformed. I can see how you can say that Commons:Currency/Europe is working properly. It has a dead link to Commons:Copyright rules by territory/Republic of Artsakh instead of to Commons:Copyright rules by territory/Artsakh. -- Themightyquill (talk) 08:17, 16 June 2019 (UTC)
- I saw that but Commons:Currency/Europe is now working. Before, it was showing total junk and bogus categories. I mentioned that the real problem is what Module:TNTExpandByCountries is doing—it makes assumptions about what Module:Countries outputs, assumptions that are not always correct. Further, there is no reason to expect that what Module:Countries outputs will agree with the subpages of Commons:Copyright rules by territory. A workaround for the current issue is to move Commons:Copyright rules by territory/Artsakh to Commons:Copyright rules by territory/Republic of Artsakh. That would match the fact that Artsakh redirects to Republic of Artsakh. Johnuniq (talk) 10:02, 16 June 2019 (UTC)
- @Johnuniq: Thanks for reverting my edit if it das malformed. I can see how you can say that Commons:Currency/Europe is working properly. It has a dead link to Commons:Copyright rules by territory/Republic of Artsakh instead of to Commons:Copyright rules by territory/Artsakh. -- Themightyquill (talk) 08:17, 16 June 2019 (UTC)
- I reverted your edit at Module:Countries/Europe because it should not be needed now you edited Artsakh so it does not redirect to a category. Any page (such as Commons:Currency/Europe) that you want to test needs to be purged after editing a template or module. An easy way to do that is to edit the whole page (edit Commons:Currency/Europe) and save it (publish) without entering an edit summary and without making any changes. That causes the display to be updated. Commons:Currency/Europe looks as if it is working to me. If there is a problem, please spell it out. There were two problems with your edit to the module. First, a stray tab character got into the name "Republic of Artsakh". Second,
- @Johnuniq: If you can make it work, I'd appreciate it. Nothing I do seems to work. - Themightyquill (talk) 19:59, 15 June 2019 (UTC)
Guernsey
[edit]Category:Guernsey is about the island, which has no "specific status" and is certainly not a country by any definition. Could this please be changed to Category:Bailiwick of Guernsey. I did this already at Module:Countries/United Kingdom and it worked fine, but I realized that I should have written on the talk page first. I assume Countries/Europe is used even more than that one. - Themightyquill (talk) 11:16, 17 June 2019 (UTC)
English names
[edit]This may be the wrong place to ask about this, but. My interface language is nb, and the countries are sorted according to the countries' names in Norwegian, but their names are displayed in English. What's the reason for this? Jon Harald Søby (talk) 12:25, 21 August 2019 (UTC)
- I figured it out, if anyone's wondering. It's because MediaWiki:Lang/no and MediaWiki:Lang/nb use "no" instead of "nb". "no" isn't really used any more in Wikimedia projects except for here in Commons (and the URL of various sister projects), and is not used in Wikidata, where the names come from. I have made the appropriate edit request. Jon Harald Søby (talk) 10:28, 22 August 2019 (UTC)
Åland, Svalbard and Northern Ireland
[edit]I looked into the List of sovereign states and dependent territories in Europe and I noticed something. Every country, but also every mostly unrecognized country and dependent territories were brought into the module, but what about the "special areas of internal sovereignty"? Shouldn't they also be incorporated? Maybe just one or two of them (I specially thought about Åland and Svalbard), but I prefer to use all three of them. Welkend (talk) 18:32, 4 September 2021 (UTC)
Should we use XK for Kosovo instead of RSKM or not?
[edit]@Verdy p no idea whether this need consensus, afaik several IT-related organizations adopted XK as a temporary country code for it. Liuxinyu970226 (talk) 03:40, 23 November 2022 (UTC)
- The codes are used internally by the module (they just have to be unique; we used ISO codes as much as possible; codes are used to be short keys only). verdy_p (talk) 09:08, 23 November 2022 (UTC)
Vaticano
[edit]See Commons:Freedom of panorama/Europe#United Kingdom (in English): the next section should be Vatican (or Vatican City) but it says "Vaticano" instead, which I assume is Italian. Thanks. —howcheng {chat} 22:37, 13 April 2023 (UTC)
Inclusion of former countries
[edit]I'm trying to use the Template:Countries of Europe on World War II topics, but the template is missing former countries that were playing a significant role in WWII, such as the Soviet Union. Could someone add those former countries? (Maybe or maybe not with the option of hiding former countries where they are not needed -- either way is fine with me.) There are also other use-cases for former countries, for example, in the field of sports. Here was a discussion on the inclusion with some (potentially) helpful information (e.g. country codes and list of former countries): Template talk:Countries of Europe#Soviet Union. Nakonana (talk) 13:12, 10 February 2024 (UTC)