This template is within the scope of WikiProject Geography, a collaborative effort to improve the coverage of geography on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.GeographyWikipedia:WikiProject GeographyTemplate:WikiProject Geographygeography
Hmm, creating a redirect seems to have fixed the issue for New Zealand, but it'd still be nice to deal with this in case there are other country pages (now or in the future) with this issue. {{u|Sdkb}}talk23:38, 29 November 2020 (UTC)[reply]
Redirects seem as good a place as any to record that information about labor is filed under "labour", and they also have the usual other benefits. Certes (talk) 00:43, 30 November 2020 (UTC)[reply]
I've enhanced Module:World topic/sandbox to vary national links using parameters of the form |link_United_States=American Foo. Would anyone like to check this over before I put it live? New template {{Football in the World}} shows an example of its use: the Canada and U.S. links work only with the sandbox version. I've also taken the opportunity to refactor the relevant function, which is now called links(). Certes (talk) 21:20, 3 December 2022 (UTC)[reply]
@Certes: It is an interesting choice to loop through all the args looking for country link overrides vs. looping through the countries looking for country link overrides in args. The module controls the list of countries but it has no control over the args. Looping over the args causes all the args to be expanded (even if they are otherwise not used). Some side effects of your choice (besides the args expansions) include |link_United States= being an alias for |link_United_States= and that |link_=, |link__=, |link_xyzzy= causes (unused) entries in override[''],override[' '],override['xyzzy'] to exist. Another minor issue is if both |link_United States= and |link_United_States= are given, there is no way to know which will actually be used as the traversal order over args is not fixed (and whichever is last will write over the earlier one). It seems to me it would have made more sense to use the country codes as the parameter names as is done in other topic templates like {{Europe topic}}, where one can override the link for Spain with |ES= (including specifying it empty to have the link removed). —Uzume (talk) 15:13, 28 May 2023 (UTC)[reply]
@Uzume: Please feel free to re-implement the change using a technique similar to Europe topic if you feel that's better. {{Football in the World}} seems to be the only user of |link_*= so, with a simple change there, the topic change needn't be backwards compatible. Certes (talk) 15:29, 28 May 2023 (UTC)[reply]
Yes, I decided it wasn't immediately obvious how to translate |US= into "United States", which is why the module is how it is. I don't think looping through the args and expanding them all is a major performance problem: even a relatively complicated call like the football one passes only five args. Certes (talk) 18:25, 28 May 2023 (UTC)[reply]
Does the "image" parameter work as intended?
I tried to include an image in this template using the "image" parameter:
But then the image doesn't appear. The template's documentation doesn't explain how this parameter should be used; does it still work as intended? Jarble (talk) 19:20, 7 December 2022 (UTC)[reply]
It seems to work if you make a link and supply any extra parameters.
Is there an option to show countries grouped by continent?
I've seen templates like this one that show lists of countries grouped by continent. I'd like to refactor some of these templates using the "World topic" template; does it have an option to group the countries this way? Jarble (talk) 23:41, 9 December 2022 (UTC)[reply]
You could just call the continental templates from one wrapper template, though you might need options to exclude places like Ceuta which don't appear on the World template. Certes (talk) 16:40, 10 December 2022 (UTC)[reply]
@Certes: Is it possible to include a continental template as a "child navbox" within another template? I tried to do this, but it didn't display correctly:
@Jarble: That depends on the template. As luck would have it, you can with {{Asia topic}} but you cannot accomplish that via |1= but rather via |border=. {{Navbox}} does allow one to use |1= as an alias for |border= and although {{Asia topic}} passes |border= through it also uses |1= for something else.
Is there an option to add a space to the suffix (and omit the space from the prefix) so that these page titles display correctly? Jarble (talk) 15:33, 14 June 2023 (UTC)[reply]
As for the prefix, Module:World topic#L-223 adds a space after any prefix. My recent change didn't touch that part of the code, and there's no obvious way to get rid of it other than by enhancing the module thinking carefully about backwards compatibility. As for the suffix, MediaWiki strips leading (and trailing) spaces from named template parameters but replacing them by works, e.g. |suffix= relations. Certes (talk) 19:18, 8 July 2023 (UTC)[reply]
@Certes and Timrollpickering: Is this a bug that can't be easily corrected? The template doesn't add a space to suffixes that are formatted this way:
@Certes: The space should be omitted when the suffix starts with a - or ' character. I can't think of any other cases where it should be omitted.
But this parameter's behavior is so confusing and unintuitive that this workaround should be mentioned in the template's documentation. Jarble (talk) 00:50, 10 May 2025 (UTC)[reply]
Resolving category redirects
As noted above at #Dealing with spelling variations, redirects are used in some cases, but in the case of category redirects they are not resolved automatically. E.g. see the link to Thailand at the end of List of strikes.
Bringing this request up again, as it has not been addressed yet. The section #Dealing with spelling variations above shows that links to pages have been fixed by using redirects, but the template currently does not resolve links to category redirects.
Renaming the articles seems best, as titles are written in sentence case on Wikipedia. If that's not possible for some reason (perhaps Intangible Cultural Heritage of Somewhere is a proper noun used widely in English-language sources) then a redirect from sentence case is second choice. Certes (talk) 17:31, 16 September 2023 (UTC)[reply]
UNESCO also capitalises "Need of Urgent Safeguarding". I think they're just Using Capitals Everywhere to make them Sound More Important, but if that's the off-wiki usage then redirects do the job. Certes (talk) 10:42, 17 September 2023 (UTC)[reply]
Refactoring continent-specific templates
@Snævar: Can we add a "continent" parameter to this template in order to refactor {{Africa topic}} and the other continent-specific templates?