Module:Lang-zh: Difference between revisions

Content deleted Content added
Function requires strings: try this
disable as it's not working; try it without as unclear whether it's needed
Line 38:
if (c > "" or (s > "" and s == t)) then -- if simplified and traditional the same they are merged into Chinese.
c = c or s
-- p.fr.args[1], p.fr.args[2] = "zh", c
-- c = mw.language.fetchLanguageName("zh")
if (no) then -- handle "links=no"
body = body .. "Chinese: " .. c .. "; "
Line 51:
if (s ~= t) then -- if they are the same should under Chinese
if (s > "") then
-- p.fr.args[1], p.fr.args[2] = "zh-Hans", s
-- s = mw.language.fetchLanguageName("zh-Hans")
if (t > "") then -- only display full name if traditional also appears
name = "simplified Chinese"
Line 65:
end
if (t > "") then
-- p.fr.args[1], p.fr.args[2] = "zh-Hant", t
-- t = mw.language.fetchLanguageName("zh-Hant")
if (s > "") then -- only display full name if simplified also appears
name = "traditional Chinese"