Module talk:Lang-zh: Difference between revisions

Content deleted Content added
Line 134:
 
Hiya! I've just only now noticed that if you pass {{tl|lang-zh}} and pals an unnamed parameter in addition to any other parameter (like {{para|p}}, fr.ex.), the unnamed parameter does not display, rather than being aliased to {{para|c}}.{{pb}}This '''is''' in the documentation, but what's the reason for this behaviour? I'm struggling to imagine any case where an editor calls {{tl|lang-zh}} with an unnamed parameter alongside any other parameter, and puts anything in the {{para|1}} spot other than the Chinese text to display (the basic purpose of the template).{{pb}}Happy to hear I'm just dumb and have overlooked an obvious use case, but if no one knows of any can we just map {{para|1}} to {{para|c}} excepting where one or more of {{mset|{{para|c}}, {{para|t}}, {{para|s}}}} is passed to the template? [[User:Folly Mox|Folly Mox]] ([[User talk:Folly Mox|talk]]) 18:08, 25 January 2025 (UTC)
 
:@[[User:Folly Mox|Folly Mox]] I fully agree with your request. I have no idea why <code><nowiki>{{lang-zh|实验|p=shíyàn}}</nowiki></code> displays as {{lang-zh|实验|p=shíyàn}}, instead of {{lang-zh|c=实验|p=shíyàn}}. {{lang-zh|实验}} and {{lang-zh|实验|labels=no}} work, though. [[User:Toadspike|<span style="color:#21a81e;font-variant: small-caps;font-weight:bold;">'''Toadspike'''</span>]] [[User talk:Toadspike|<span style="color:#21a81e;font-variant: small-caps;font-weight:bold;">[Talk]</span>]] 21:19, 30 January 2025 (UTC)
 
== Use / between simplified and traditional when labels=no ==