Module:Airport statistics filtered/configure

Lua
CodeDiscussionEditHistoryLinksLink count Subpages:DocumentationTestsResultsSandboxLive code All modules

Documentation for this module may be created at Module:Airport statistics filtered/configure/doc

Code

-- Config page. Format:
-- langcode.project = {
--  ref = true if references are required, otherwise false
--  part = true if property "applies to part" (P518) is required, false if it should be excluded, or both if you don't mind either way.
-- }
-- Do not translate any words.
local p = {}

wikilang = {
	["en.Wikipedia"] = {
		ref = "true",
		part = "both" 
	},
	["is.Wikipedia"] = {
		ref = "true",
		part = "false"
	},
	default = { -- This is the behaviour from Template:Airport-statistics.
		ref = "false",
		part = "both"
	}
}

function p.tr(arg1, arg2)
	if not wikilang[arg1] then
		return wikilang["default"][arg2]
	else
		return wikilang[arg1][arg2]
	end
end

return p