Template talk:Infobox Chinese

Request for Literal meaning Japanese field

edit

Following the example for Korean where there is a field lk for a literal meaning from Korean, a field such as lj would be useful and pertinent for literal meanings for the Japanese section. Waerloeg (talk) 08:26, 23 February 2022 (UTC)Reply

Seconded toobigtokale (talk) 22:06, 15 August 2023 (UTC)Reply
I assume this is still of interest, so I'm adding it to the to-do list. Remsense 00:35, 12 July 2024 (UTC)Reply

Template-protected edit request on 30 April 2023

edit

Add a "lang(x)_translit" field to compliment the lang(x)_content and lang(x) fields. Viewable via dropdown menu, like the languages already included in the template. Otherwise, add Kazakh and Kyrgyz fields to the template; I do not know why Tetum, a language spoken only on the island of Timor which has no significant Chinese community, is included in this infobox's fields, but not Kazakh or Kyrgyz which have their own autonomous areas in China. Yue🌙 07:06, 30 April 2023 (UTC)Reply

This template is not just for China nowadays and really should be named something like Infobox transcription but that RM failed. I agree with adding Kazakh and Kyrgyz since they are (usually at least) not written in the Latin script. I'm not quite sure what exactly a translit field would do though. Usually edit requests are only for implementing edits in the sandbox rather than suggesting features but I won't close it quite yet since a few more qualified eyes may come here if it's open. --Trialpears (talk) 12:11, 30 April 2023 (UTC)Reply
Closing per Trialpears' comment - it appears no qualified eyes are coming. * Pppery * it has begun... 16:59, 6 May 2023 (UTC)Reply
I assume this is still of interest, so I'm adding it to the to-do list. Remsense 00:36, 12 July 2024 (UTC)Reply

Lang of bpmf parameter

edit

I'm not sure where exactly it is implemented, but the value of the bpmf parameter ends up incorrectly marked up as zh-Latn instead of zh-Bopo. – MwGamera (talk) 12:03, 28 June 2023 (UTC)Reply

I also ran into this. Remsense 22:07, 11 February 2024 (UTC)Reply

Pe̍h-ōe-jī and Tâi-Lô

edit

Pe̍h-ōe-jī has now a variant tag in BCP 47: Its text should emit nan-Latn-pehoeji instead of just nan-Latn. -- Error (talk) 12:40, 22 May 2024 (UTC)Reply

Same about Tâi-uân Lô-má-jī Phing-im Hong-àn and nan-Latn-tailo --Error (talk) 12:49, 22 May 2024 (UTC)Reply

Template-protected edit request on 11 May 2024

edit

ENGVAR support: all I need is for labels to say "Romanisation" instead of "Romanization" (et al.) when an |engvar=b parameter is supplied, but I couldn't quite figure out how to do it in the corresponding module code. Remsense 08:07, 7 June 2024 (UTC)Reply

Issue in dark mode or inappropriate use of infobox

edit

It seems this infobox can sometimes have Chinese characters in the main image as in Kiwifruit and and sometimes photos as in Guanyin.

In dark mode (e.g. https://en.wikipedia.org/wiki/Guanyin?vectornightmode=1, not to be confused with gadget), the former works great as it is inverted, but the latter is broken. The invert doesn't appear to always work as in Hong_Kong.

Looks like the infobox description should be clarified to describe if photos are permitted and if so, be altered to support both use cases (only applying the invert when SVG text is given)

Thanks in advance for your help working on how to fix this! I am not sure how?

@User:Queen of Hearts fixed this like so but it would be good if there were clearer guidelines on this template about how to handle this situation! 🐸 Jdlrobson (talk) 18:53, 11 July 2024 (UTC)Reply

The invert doesn't appear to always work as in Hong_Kong. You forgot to make the inversion apply to pic2 in addition to pic in Special:Diff/1227937682. I imagine introducing a separate parameter to InfoboxImage to explicitly allow inverting would be a safe way to handle it. – MwGamera (talk) 20:06, 11 July 2024 (UTC)Reply
Not all SVGs are monochrome, so inversion won't fix them. Night mode is going to be a problem with any image with a transparent background (SVG or PNG), whether in an infobox or not.
It has long been common practice for the |pic= parameter of this template to contain an image of the object or person named if it can be depicted. Personally I think an image of characters is redundant. Kanguole 21:51, 11 July 2024 (UTC)Reply
I see that this change, intended to make images of characters work with night mode, broke other images in night mode. It should be reverted, or at least enabled only if some extra flag is set. Kanguole 21:58, 11 July 2024 (UTC)Reply
I know SVGs are cached as a raster render for display on pages, but surely there must be a sensible way to have currentColor (or unset) fills and strokes in SVGs render as a light tone in dark mode. Remsense 23:56, 11 July 2024 (UTC)Reply