Content deleted Content added
Add lang-span etc. to case with no named params |
Add support for setting the default ordering for articles |
||
Line 7:
}
local t1st = {
["228 Incident"] = true,
["Bao'an County"] = true,
["Lippo Centre, Hong Kong"] = true,
["Republic of China"] = true,
["Republic of China at the 1924 Summer Olympics"] = true,
["Taiwan"] = true,
["Taiwan (island)"] = true,
["Taiwan Province"] = true,
["Wei Boyang"] = true,
}
function p.getParent()
Line 34 ⟶ 45:
local l = args["l"] or ""
local no = args["links"] == "no"
local t1 = args["first"] == "t"▼
local title = mw.title.getCurrentTitle()
▲ local t1 = args["first"] == "t" or t1st[title.text]
if (c > "" or (s > "" and s == t)) then -- if simplified and traditional the same they are merged into Chinese.
|