Jump to content

Template talk:ISO 15924 code

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

Change suggestions

[edit]

@Drmccreedy: About {{ISO 15924 code}} I propose (see diff):

1. Remove "lc-first" enforcing: input should be formatted OK by itself. That is: "Xxxx". (Who knows what we accept when input is formatted wrong?)

Should be OK, but needs a check for mainspace effectrs (through/in {{here}}).
The way I read the uc/lc part is that it allows "latn", "LATN", or "lAtN" as input with the same result as "Latn". This seems friendly to editors who may not know the Xxxx convention. Not sure I'd remove that. Everything else seems fine. DRMcCreedy (talk) 21:45, 2 February 2021 (UTC)[reply]

2. Add code range option "Qaaa-Qabx", to be recognised. Same for numerical range 900-949.

3. minor: same #switch-options are on single line (no effect, more overview of code).

That range of ISO-codes could show better, for example in {{here}}. This addition does not alter existing options (including distinct Qaaa, Qabx), so these are safe and won't change effect. After this change we can change other templates to show "Qaaa-Qabx" data all right: as a single data entry.

Tests are {{here}}. BTW, both "-" and NDASH are recognised. What do you think? -DePiep (talk) 18:34, 2 February 2021 (UTC)[reply]

OK. -DePiep (talk) 22:26, 2 February 2021 (UTC)[reply]

Template-protected edit request on 2 February 2021

[edit]
Changes are:
(1) Put all same-#switch-hit in one line (minor change, zero effect)
(2) Add input options Qaaa-Qabx; 900-949, having "-" hyphen or "–" ndash.
Talks and ratio: "Add option single-line Qaaa-Qabx". See § Change suggestions. Testcases: /testcases. Ping @Drmccreedy:. DePiep (talk) 22:54, 2 February 2021 (UTC)[reply]
Done. DRMcCreedy (talk) 03:05, 3 February 2021 (UTC)[reply]

Code update

[edit]

Drmccreedy, could you update this template with the sandbox code please (diff)?

Change:
1. Add parameter |alpha4=, to spread named parameter usage to prevent confusion. Existing parameter |1= behaviour unchanged.
3. Not changed: the list itself.
-DePiep (talk) 23:54, 18 February 2021 (UTC)[reply]
Done DRMcCreedy (talk) 02:04, 19 February 2021 (UTC)[reply]