Jump to content

Template talk:Nth century

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Questionable default

[edit]

Using {{CURRENTCENTURY}} as the default is leading to undetected errors. Some obvious century values such as "18" are not recognized in the switch statement ({{Nth century|18}} → 21th century), we get invalid values that are difficult to detect in a programmatic way. Perhaps the default should emit an error message and a tracking category instead of a value. – Jonesey95 (talk) 17:28, 22 November 2024 (UTC)[reply]

I have changed the default to use the input |1=. I think that will suffice. I added examples to the /doc page. – Jonesey95 (talk) 14:36, 23 November 2024 (UTC)[reply]