Module talk:Lang-zh/Archive 4: Difference between revisions

Content deleted Content added
mNo edit summary
fix transclusion of non-existent template
Line 34:
: I had thought of that before: doing it based on region rather than a single switch, first=t. The problem is it's quite disruptive – all existing instances of first=t would have to be found and updated, changed to region=tw or region=hk based on the article, and I don't know how you'd find them. Or you leave both first=t and region=xx in the template which introduces redundancy as with Cantonese=first, and seems overkill for something that there's no obvious need for - the only instances of {{tl|zh-full}} with ordering unsupported by {{tl|zh}} were with Jyutping first.
 
: The editor specifying the order is another way of doing it. The way it would work is with an extra option, ordered=no. If the module detects this it doesn't use a fixed order but the order is the same as the parameters passed to the template. Essentially the same as how {{tlzhtl|zh-full}} works but done in code not templates within templates as for that. It also introduces redundancy but can be thought of as two levels: a switch for simple cases, an option to use any order for more specialised cases.
 
: I don't think replacing labels is a good idea. It would make the template much more complex and be little used (it wasn't used at all within {{tl|zh-full}}). If editors need that degree of control over labels, links, formatting they need not use the template, or can use it for some languages but use {{tl|lang}} with their own labels and formatting for those they want customised.--<small>[[User:JohnBlackburne|JohnBlackburne]]</small><sup>[[User_talk:JohnBlackburne|words]]</sup><sub style="margin-left:-2.0ex;">[[Special:Contributions/JohnBlackburne|deeds]]</sub> 16:22, 25 May 2014 (UTC)