Документација модула[прикажи] [уреди] [историја] [освежи]
За овај шаблон потребна документација.
Please document this template by describing its purpose and usage on the documentation page.

local export = {}

function export.show(frame)
	local title = mw.title.getCurrentTitle()
	local rootpagename = title.rootText
	local isSubpage = title.isSubpage
	local subpagename = title.subpageText
	mw.log(rootpagename, isSubpage, subpagename)
	
	local lang, canonicalName
	if isSubpage then
		lang = require("Модул:languages").getByCode(subpagename)
	end
	
	local listName, matches
	if rootpagename then
		listName, matches = mw.ustring.gsub(rootpagename, "list:", "")
	end
	if lang then
		if matches == 1 then
				return "Ово је листа од " .. listName .. " у " .. lang:getCanonicalName() .. " језику."
		else
			return "Ово је листа у " .. lang:getCanonicalName() .. " језику."
		end
	end
end

return export