Module talk:ISO 3166: Difference between revisions

Content deleted Content added
Line 242:
:*Hyphens are now significant, so input like 'GuineaBissau' no longer works. However, I'm not sure if this is really desired because quite a few subdivisions have hyphenated names that look like they might be used with spaces informally. For example, I can see one instance in the refs of [[Stoke-on-Trent]].
:**For reference, {{sl |insource:/[A-z]-[A-z]/ prefix:Module:ISO 3166/data |here's a search}} for all hyphenated names in the data
:*The way the UK data is stored ([[Module:ISO 3166/data/GB|here]]) makes the individual countries indistinguishable, so subdivisions belonging to the incorrect country like <code><nowiki>{{#invoke:ISO 3166|name|England|Glasgow}}</nowiki></code> work. How did this work in the original ISO standard?
:*Even though the top-level behaviour as seen in the tests remains largely unchanged, some of the underlying functions now handle things like <code>nil</code> vs <code>'<nowiki />'</code> differently. This might break direct invocations in other modules/templates (Hyrum's law, I suppose). Some searches for invocations:
:**{{sl |module: insource:"Module ISO 3166" |in modules}}