Difference between revisions 21306598 and 21306599 on frwiktionary

local export = {}

-- The main entry point.
-- This is the only function that can be invoked from a template.
function export.show(frame)
	if mw.title.getCurrentTitle().nsText == "Template" then
		return "(This template should be used on pages in the Category: namespace.)"
	elseif mw.title.getCurrentTitle().nsText ~= "Category" then
(contracted; show full)	elseif item == "parents" then
	elseif item == "display_name" then
	elseif item == "basic" then
	elseif item == "umbrella" then
	elseif item == "fundamental" then
	elseif item == "description" then
	elseif item == "umbrella_description" then

	elseif item:find("^sub[1-9][0-9]?$") then
	elseif item == "umbrella-categorization" then
	elseif item == "edit" then
	else
		require("Module:debug").track("category tree/unknown item")
	end
	
	return submodule.get_item(info, item)
end
(contracted; show full)			return mw.getCurrentFrame():expandTemplate{title = TOC_template.text, args = {}}
		end
	end
	
	return nil
end

return export