Module talk:Lang-zh
![]() | Module:Lang-zh is permanently protected from editing because it is a heavily used or highly visible module. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit.
|
![]() | This module does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
![]() | To help centralise discussions and keep related topics together, Template talk:Lang-zh and Template talk:Lang-zh/doc redirect here. |
This page has archives. Sections older than 180 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
Template-protected edit request on 5 April 2024
[edit]![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I would like to enable the option "first=poj" analogously to "first=j". The "first=j" option allows Cantonese romanisations to be given before Mandarin romanisations, in articles where Cantonese is more relevant. The proposed "first=poj" option would allow Hokkien romanisation (POJ) to be given first, in articles where Hokkien more relevant, e.g. for Bukit Ho Swee, Hong-Gah Museum, Tamsui District.
I believe this could be achieved by adding the following:
From line 114, after:
local j1 = false -- whether Cantonese Romanisations go first
insert:
local poj1 = false -- whether Hokkien Romanisations go first
From line 121, after:
if (testChar == "j") then j1 = true end
insert:
if (testChar == "poj") then poj1 = true end
(The variable is named "testChar" but it is defined by the regular expression "%a+", which will match not only a single character but also longer strings.)
(On a separate note, there seems to be a superfluous space before "end" on lines 120 and 123.)
From line 137, after:
if (j1) then orderlist[4] = "j" orderlist[5] = "cy" orderlist[6] = "sl" orderlist[7] = "p" orderlist[8] = "tp" orderlist[9] = "w" end
insert:
if (poj1) then orderlist[4] = "poj" orderlist[5] = "p" orderlist[6] = "tp" orderlist[7] = "w" orderlist[8] = "j" orderlist[9] = "cy" orderlist[10] = "sl" end
This puts POJ before the Mandarin and Cantonese romanisations. Freelance Intellectual (talk) 08:49, 5 April 2024 (UTC)
Double-quotes around glosses
[edit]Is there a reason we use double-quotes rather than single-quotes to show the output of |tr=
? MOS:SIMPLEGLOSS suggests we should prefer singles. — OwenBlacker (he/him; Talk) 17:37, 18 June 2024 (UTC)
- Because
|l=
is used for literal translations & glosses, and|tr=
is (much more rarely) used for non-literal translations. Remsense诉 17:39, 18 June 2024 (UTC)- Aha, that makes sense. So I have probably been misusing
|tr=
when I should have been using|l=
. Thank you! — OwenBlacker (he/him; Talk) 18:03, 18 June 2024 (UTC)
- Aha, that makes sense. So I have probably been misusing
Commas within literal glosses
[edit]What should we do if there needs to be a comma within a literal translation? I noticed this on Yi Jian Mei (song), where the quotes should be placed around the whole comma-separated phrase, not individually around each side of the comma. pacificboy (talk) 03:56, 11 July 2024 (UTC)
- My assumption when adding this feature was that if one needed to add a comma, it should probably be treated as a proper translation, not a gloss. It turns out I never use this formatting, so I could very plausibly disable it. Remsense诉 05:49, 11 July 2024 (UTC)
- Ah, that makes sense! I’ll convert it to a translation. Thanks. pacificboy (talk) 02:45, 12 July 2024 (UTC)
Template-protected edit request on 17 August 2024
[edit]![]() | It is requested that an edit be made to the template-protected module at Module:Lang-zh. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to template-protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the module's sandbox before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
I propose the following changes to add Tâi-lô romanization support. Of course, POJ covers 95% of Hokkien/Minnan use cases (hence why I have added the "tailo" IANA subtag) but it could still be useful for Taiwanese-specific pages. Additions and modifications below:
--- Module:Lang-zh
+++ Module:Lang-zh
@@ after line 29 @@ local labels = {
["sl"] = "Sidney Lau",
["poj"] = "Pe̍h-ōe-jī",
+ ["tl"] = "Tâi-lô",
["zhu"] = "Zhuyin Fuhao",
["l"] = "lit.",
@@ after line 46 @@ local wlinks = {
["poj"] = "Pe̍h-ōe-jī",
+ ["tl"] = "Tâi-uân Lô-má-jī Phing-im Hong-àn",
@@ after line 63 @@ local ISOlang = {
["poj"] = "nan-Latn",
+ ["tl"] = "nan-Latn-tailo",
@@ after line 74 @@ local italic = {
["poj"] = true,
+ ["tl"] = true,
@@ at line 136 @@
- local orderlist = {"c", "s", "t", "p", "tp", "w", "j", "cy", "sl", "poj", "zhu", "l", "tr"}
+ local orderlist = {"c", "s", "t", "p", "tp", "w", "j", "cy", "sl", "poj", "tl", "zhu", "l", "tr"}
@@ after line 150 @@ if (poj1) then
orderlist[4] = "poj"
- orderlist[5] = "p"
- orderlist[6] = "tp"
- orderlist[7] = "w"
- orderlist[8] = "j"
- orderlist[9] = "cy"
- orderlist[10] = "sl"
+ orderlist[5] = "tl"
+ orderlist[6] = "p"
+ orderlist[7] = "tp"
+ orderlist[8] = "w"
+ orderlist[9] = "j"
+ orderlist[10] = "cy"
+ orderlist[11] = "sl"
end
MSG17 (talk) 15:53, 17 August 2024 (UTC)
Further romanization discussion
[edit]Coming off of my request to add Tâi-lô, what other romanization systems should be added to the template? I feel like Pha̍k-fa-sṳ annd Wugniu could be helpful. I don't see any IANA latn subtages for other Sinitic languages however. MSG17 (talk) 15:53, 17 August 2024 (UTC)
- Template-Class Writing system articles
- NA-importance Writing system articles
- Template-Class China-related articles
- NA-importance China-related articles
- Template-Class China-related articles of NA-importance
- WikiProject China articles
- Template-Class Taiwan articles
- NA-importance Taiwan articles
- WikiProject Taiwan articles
- Template-Class Hong Kong articles
- NA-importance Hong Kong articles
- WikiProject Hong Kong articles
- NA-Class Macau articles
- NA-importance Macau articles
- WikiProject Macau articles
- Template-Class Singapore articles
- NA-importance Singapore articles
- WikiProject Singapore articles
- Template-Class Malaysia articles
- NA-importance Malaysia articles
- WikiProject Malaysia articles
- Wikipedia template-protected edit requests