local export = {}
local m_zh = require("Modül:zh")
local conventional_names = {
= "Beginning Mandarin",
= "Elementary Mandarin",
= "Intermediate Mandarin",
= "Advanced Mandarin",
= "Çince antonymous compounds",
= "Çince disyllabic morphemes",
= "Çince variant forms",
= "Çince simplified forms",
= "Çince obsolete terms",
= "Wasei kango",
= "Çince twice-borrowed terms",
= "Çincede Geleneksel Çin tıbbı",
= "Çince phrasebook",
= "Çince kısa biçimler",
= "Çince genericized trademarks",
= "Çince terms arising from taboo avoidance",
= "Triplicated Çince characters",
= "Duplicated Çince characters",
= "Quadruplicated Çince characters",
= "Thirty-Six Stratagems",
= "Çince juxtapositional idioms",
= "Çince pseudo-idioms",
= "Çince contranyms",
= "Çince xiehouyu",
= "Çince terms making reference to character shapes",
= "Mandarin dili günlük konuşma dili",
= "Çince reduplicative diminutive nouns",
= "Çince reduplicative diminutive proper nouns",
= "Çince reduplicative diminutive pronouns",
}
function export.generateClsLink(text, doNotUsePagename)
local trad = doNotUsePagename and text or mw.title.getCurrentTitle().text
local simp = m_zh.ts(trad)
return "Kategori:Çince " .. (trad ~= simp and (trad .. "/" .. simp) or trad) .. " tarafından sınıflandırılan adlar"
end
function export.categorize(frame)
local args = type(frame) == "table" and frame:getParent().args or { frame }
local PAGENAME = mw.title.getCurrentTitle().text
local sortkey = require("Modül:zh-sıraanahtarı").makeSortKey(PAGENAME)
local text = ""
for _, cat in ipairs(args) do
if mw.ustring.match(cat, "Sınıflandırıcı") then
local parts = mw.text.split(cat, ":")
text = text .. ", true) .. "|" .. sortkey .. "]]"
elseif conventional_names then
text = text .. " .. "|" .. sortkey .. "]]"
else
text = text .. "]"
end
end
return (mw.title.getCurrentTitle().nsText == "" and text or "")
end
function export.clsCat(frame)
local PAGENAME = mw.title.getCurrentTitle().text
local part = mw.text.split(PAGENAME, " ")
local character = part
local sortkey = require("Modül:zh-sıraanahtarı").makeSortKey(character)
return "Çince sınıflandırıcı olarak " .. m_zh.link(frame, nil, { character, tr = "-" }, character) ..
" karakterini kullanan adlar.\n]"
end
return export