Bu modul uchun Modul:AdjustSortKey/doc nomli hujjat sahifasini yaratishingiz mumkin

local p = {}

function p.main(frame)
	local title = mw.title.getCurrentTitle().text;
	for k, v in pairs(frame.args) do
		if type(k) == "number" then
			local start = mw.text.trim(v) .. " ";
			local startLen = mw.ustring.len(start);
			if mw.ustring.sub(title, 1, startLen) == start then
				local key = mw.text.trim(mw.ustring.sub(title, startLen + 1));
				if mw.ustring.len(key) > 0 then
					frame:callParserFunction("DEFAULTSORT", key);
					return;
				end
			end
		end
	end
end

return p