Pumunta sa nilalaman

Module:qualifier/templates

Mula Wiktionary

Ang dokumentasyon ng ng modyul na ito ay maaaring likhain sa Module:qualifier/templates/doc

local export = {}

function export.qualifier_t(frame)
	local args = {}
	for i, v in ipairs(frame:getParent().args) do
		args[i] = v
	end
	
--	local subvarieties = mw.loadData("Module:qualifier/subvarieties")
	
--	for i, label in ipairs(args) do
--		if subvarieties[label] then
--			require("Module:debug").track("qualifier/subvarieties")
--			--[[
--				currently not working:
--			local lang = subvarieties[label].languages[1]
--			require("Module:debug").track("qualifier/subvarieties/" .. lang)
--			]]
--		end
--	end

	return require("Module:qualifier").format_qualifier(args)
end

function export.non_gloss_definition_t_english_links(frame)
	local text = frame.args[1]
	if not mw.ustring.find(text, "%[%[") then return text end
	return require("Module:links").english_links(text)
end
	
return export