Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a29f8ddcf8df2da2

Jump to content

Template talk:Country2nationality

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Module talk:Country2nationality)
Latest comment: 1 year ago by Jonesey95 in topic Silent failure; tracking category requested

Template-protected edit request on 20 March 2022

[edit]

There is no reason to close a tag, merely to immediately reopen it

</noinclude><noinclude> Jerimee (talk) 04:14, 20 March 2022 (UTC)Reply

 Done; agreed, and categories have been transferred to the /doc page. P.I. Ellsworth- ed. put'r there 13:02, 20 March 2022 (UTC)Reply

Silent failure; tracking category requested

[edit]

When this template fails to find a country name, it fails silently, outputting the input:

{{Country2nationality|[[Freedonia]]}} Freedonia (output at this writing: Freedonia)

It should probably output an error-tracking category so that misspelled country names, former country names, fictional country names, and other unrecognized names can be tracked and fixed, either by correcting them or by adding them to the module's custom data list. I don't know how to add such a tracking category in Lua. – Jonesey95 (talk) 15:22, 4 February 2025 (UTC)Reply

Ahecht, do you know how to do this? – Jonesey95 (talk) 20:31, 4 February 2025 (UTC)Reply
@Jonesey95 Module:ISO 3166 already uses the tracking categories at Module:ISO_3166/doc#Tracking_categories but I was inadvertently stripping them out. They should now be passed through correctly. However, if Module:ISO 3166 recognizes a country but Module:Iso2nationality doesn't, it still will just fail silently for now. Not sure if I'd want to use the same tracking categories or start a new one for that. --Ahecht (TALK
PAGE
)
20:57, 4 February 2025 (UTC)Reply
@Jonesey95 I also added |nocat=true to Template:Infobox film/short description, since it was being triggered every time a film was listed as coming from more than one country. --Ahecht (TALK
PAGE
)
21:20, 4 February 2025 (UTC)Reply
Thanks for working on it. Ideally, pages like Zapomniana melodia, which uses an unrecognized country, would be placed in a tracking category so that their short descriptions could be fixed or made local to the article. – Jonesey95 (talk) 00:48, 5 February 2025 (UTC)Reply