Module:Lang-zh is indefinitely protected from editing as 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:
This module falls within the scope of WikiProject Writing systems, a WikiProject interested in improving the encyclopaedic coverage and content of articles relating to writing systems on Wikipedia. If you would like to help out, you are welcome to drop by the project page and/or leave a query at the project’s talk page.Writing systemsWikipedia:WikiProject Writing systemsTemplate:WikiProject Writing systemsWriting system
This module is within the scope of WikiProject China, a collaborative effort to improve the coverage of China related articles on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.ChinaWikipedia:WikiProject ChinaTemplate:WikiProject ChinaChina-related
This module is within the scope of WikiProject Taiwan, a collaborative effort to improve the coverage of Taiwan on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.TaiwanWikipedia:WikiProject TaiwanTemplate:WikiProject TaiwanTaiwan
This module is within the scope of WikiProject Hong Kong, a project to coordinate efforts in improving all Hong Kong-related articles. If you would like to help improve this and other Hong Kong-related articles, you are invited to join this project.Hong KongWikipedia:WikiProject Hong KongTemplate:WikiProject Hong KongHong Kong
This module is within the scope of WikiProject Macau, an attempt to better organize and improve articles related to Macau.MacauWikipedia:WikiProject MacauTemplate:WikiProject MacauMacau
This module is within the scope of WikiProject Singapore, a collaborative effort to improve the coverage of articles related to Singapore on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.SingaporeWikipedia:WikiProject SingaporeTemplate:WikiProject SingaporeSingapore
This module is within the scope of WikiProject Malaysia, a collaborative effort to improve the coverage of Malaysia and Malaysia-related topics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.MalaysiaWikipedia:WikiProject MalaysiaTemplate:WikiProject MalaysiaMalaysia
This page has archives. Topics inactive for 180 days are automatically archived 1 or more at a time by Lowercase sigmabot III if there are more than 4.
Latest comment: 5 months ago3 comments3 people in discussion
Hi all! Could we please add Yale romanization of Mandarin to the template? Given that this is the English-language wikipedia, and the set of spelling/pronunciation rules used by Yale romanization of Mandarin is the closest to English's own spelling/pronunciation rules, it would be helpful if Yale romanization of Mandarin could be added to the template. In many cases, this would be helpful for native English speakers to pronounce Chinese words even if they haven't learnt any system of romaization of Mandarin before, as the system of Yale romanization of Mandarin was designed to be intuitive for English speakers. Many thanks! – 星球统领 (talk) 23:36, 11 February 2026 (UTC)Reply
It isn't this template's objective to require any particular transliteration - that is left to the MOS:PINYIN to decide. The template was designed to support common transliterations that may be required in an article, but it is not exhaustive. For less commonly used transliterations, alternative markup methods exist, such as Template:Transliteration and Template:Langx. Rincewind42 (talk) 13:14, 13 February 2026 (UTC)Reply
Latest comment: 4 months ago1 comment1 person in discussion
This is a request to add Pe̍h-ūe-jī (Teochew Church Romanisation) to the template. I have recently adding a lot of romanisations for people on singapore related articles and many have teochew names so it is quite frustrating to keep having to type " ; Pe̍h-ūe-jī: " for every single case of teochew usage. Warpswitch (talk) 21:51, 28 March 2026 (UTC)Reply
Requested move 7 May 2026
Latest comment: 1 month ago12 comments10 people in discussion
The following is a closed discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a move reviewafter discussing it on the closer's talk page. No further edits should be made to this discussion.
The result of the move request was: no consensus. This discussion has been open for well over a month, and I am not seeing any consensus to move. Editors may at any time propose the alternative move of Korean and Nihongo to lang-ko and lang-ja. (closed by non-admin page mover) BilledMammal (talk) 05:06, 16 June 2026 (UTC)Reply
Administrator note I have re-opened this discussion (closed without further commentary in Special:Diff/1355278435) as an uninvolved/individual admin action. This is for two main reasons: first, {{chinese}} is transcluded on almost 4k pages. Second (and as a result of the first), the discussion was started by a (now-)blocked sock and only commented on by a single other individual. Third, the final target template name in question is a redirect and should have been dealt with at WP:RFDbefore this RM was opened, but I probably will do so just for the sake of formality while this discussion is relisted again. Primefac (talk) 17:36, 22 May 2026 (UTC)Reply
Thank you for relisting this, Primefac. I hadn't seen this RM, as no Wikiprojects had been notified. The move makes some sense, since new editors will probably find the template more easily. Replacing it would be a pain, but it seems manageable. So, I guess I'm okay with it? But I'm generally not fussed either way. Toadspike[Talk]21:54, 22 May 2026 (UTC)Reply
I would agree with the Nihongo to Japanese moves. Those are out of the scope of this RM, but if anyone feels like proposing them, be my guest. Toadspike[Talk]09:11, 25 May 2026 (UTC)Reply
The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Wade–Giles superscripts
Latest comment: 2 months ago1 comment1 person in discussion
Discrepancy on testcases page regarding "doesn't handle self-inserted single-quotes"
Latest comment: 7 days ago1 comment1 person in discussion
The test case page included this, in case anyone is interested:
* {{Lang-zh|s=中国|t=中國|p=zhōngguó|l='Middle Kingdom, Central Kingdom; Central State|tr=China|j=Gwong2 zau1|cy=Gwóngjàu|first=t,j|labels=no|out=tr}}—{{strongbad|''doesn't handle self-inserted single-quotes''}}
I am changing it to be a copy of the sandbox case, instead:
* {{Lang-zh|s=中国|t=中國|p=zhōngguó|l='Middle Kingdom, Central Kingdom; Central State|tr=China|j=Gwong2 zau1|cy=Gwóngjàu|first=t,j|labels=no|out=tr}}
Dingolover6969 (talk) 00:09, 2 August 2026 (UTC)Reply
Template-protected edit request on 1 August 2026
Latest comment: 7 days ago1 comment1 person in discussion
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 |answered=yes parameter to deactivate the template.
Change
val = val:gsub("(%d)", "<sup>%1</sup>"):gsub("(%d)</sup>%*<sup>(%d)", "%1*%2"):gsub("<sup><sup>([%d%*]+)</sup></sup>", "<sup>%1</sup>")
I am not aware of any more elegant way to do this in lua.
I checked and lua %d means [0-9], or so the documentation implies. I also experimented with this in a lua sandbox online and found the same.
As we no longer use sup tags, this change drops some complicated sup tag handling from this line. Undoubtedly, this means some pages that erroneously use sup tags in {{zh}} will now be rendered with a superscript ² ( ² ) until they are fixed. It would be trivial to fix/mask this in the template, using a line val = val:gsub("<sup>([%d%*]+)</sup>", "%1") -- remove redundant html sups. But I'm not sure it's valuable to do so. If it is valuable, maybe it should also be done to jyutping, to remove any numbers that are superscripted erroneously? I defer this change to later.
I'm not really sure why the old code includes %* — which is an escaped (ergo: regular) asterisk in lua regex — the way it does. Why would the * be used like this? That's not even in Sidney Lau romanisation, which does use an asterisk. The testcases are not illuminating... wish someone had left a comment here. It seems to have been added without explanation, in the context of Wade-Giles, by User:Jc86035. Anyway, assuming normal asterisks are alright, the new code will still work... for whatever that's for...
Perhaps we should add a tracking category for zhs that use an asterisk, to see if we can find them?
In Sidney Lau romanisation, the * is an asterisk and the 0-like symbol is a ° (a "small circle"), so no special handling of these are needed. (In contrast, the 0-like character in the code above is a unicode superscript 0. I'm not aware of any system that uses a 0 tone marker, but we are prepared 🫡.)
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.