Content deleted Content added
m Archiving 1 discussion(s) from Module talk:Zh) (bot |
m Archiving 1 discussion(s) from Module talk:Zh) (bot |
||
Line 145:
:The template has italicized pinyin since 2009. It's in line with common practice in academic writing and the usual treatment of foreign text in Wikipedia. [[User talk:Kanguole|Kanguole]] 19:46, 14 June 2014 (UTC)
:It would be useful if you could link to the article or articles you think have this problem. In my experience when articles look too busy with e.g. Chinese and Romanisations it's often down to other causes. Too much Chinese is a common one, for e.g. linked items which don't need Chinese and pinyin given (readers can just follow the link). Or the Chinese and Romanisations could be moved into an infobox and minimised in the text. Finally the {{para|labels|no}} option can be used to dramatically de-clutter second and subsequent uses of the template.--<small>[[User:JohnBlackburne|JohnBlackburne]]</small><sup>[[User_talk:JohnBlackburne|words]]</sup><sub style="margin-left:-2.0ex;">[[Special:Contributions/JohnBlackburne|deeds]]</sub> 20:53, 14 June 2014 (UTC)
== Capitalising the first letter ==
There are a few occasions where the zh template is actually used at the beginning of a sentence—such as when inside a table or a list, and so the first letter of the first word should be capitalised in these occasions. However, there is currently no way to do so. The result is that either editors must use the lang template and writing labels in full or else put up with the mess of incorrectly capitalised text. Could another tag be added to change the formatting in such cases. [[User:Rincewind42|Rincewind42]] ([[User talk:Rincewind42|talk]]) 13:39, 9 July 2014 (UTC)
: {{ping|Rincewind42}}: I just got round to this. A simple enough addition, to whatever label is first. It checks if 'scase' (short for [[sentence case]]) is set to anything and capitalises the first label if it is. I've added it to the sandbox and a test to [[Template:Zh/testcases]], copied below with another:
:* {{tlx|Zh/sandbox|s{{=}}中国|t{{=}}中國|p{{=}}zhōngguó|j{{=}}Gwong²zau¹|cy{{=}}Gwóngjàu|scase{{=}}t}}
:** {{Zh/sandbox|s=中国|t=中國|p=zhōngguó|j=Gwong²zau¹|cy=Gwóngjàu|scase=t}}
:* {{tlx|Zh/sandbox|s{{=}}中国|t{{=}}中國|p{{=}}zhōngguó|j{{=}}Gwong²zau¹|cy{{=}}Gwóngjàu|first{{=}}t,j|scase{{=}}yes}}
:** {{Zh/sandbox|s=中国|t=中國|p=zhōngguó|j=Gwong²zau¹|cy=Gwóngjàu|first=t,j|scase=yes}}
:--<small>[[User:JohnBlackburne|JohnBlackburne]]</small><sup>[[User_talk:JohnBlackburne|words]]</sup><sub style="margin-left:-2.0ex;">[[Special:Contributions/JohnBlackburne|deeds]]</sub> 20:21, 23 July 2014 (UTC)
:Looks OK. [[User:Rincewind42|Rincewind42]] ([[User talk:Rincewind42|talk]]) 00:46, 24 July 2014 (UTC)
{{edit template-protected|ans=y}}
Please update the module from its sandbox with the above change, as detailed above.--<small>[[User:JohnBlackburne|JohnBlackburne]]</small><sup>[[User_talk:JohnBlackburne|words]]</sup><sub style="margin-left:-2.0ex;">[[Special:Contributions/JohnBlackburne|deeds]]</sub> 20:33, 24 July 2014 (UTC)
:{{done}} – '''''<small>[[User:Paine Ellsworth|<span style="color:darkblue; font-family:Segoe Script">Paine Ellsworth</span>]]</small>''''' <sup><font size="1" color="blue">[[User talk:Paine Ellsworth|'''''C<small>LIMAX</small>!''''']]</font></sup> 13:55, 27 July 2014 (UTC)
|