Open main menu
local matchlink = require("Module:Match link")

local p = {}

function p.city(frame)
	local args = frame.args
	if not (args.lang and mw.language.isSupportedLanguage(args.lang)) then 
		args.lang = frame:callParserFunction( "int", "lang" ) -- get user's chosen language 
	end
	args.place = mw.text.trim(args.place or args[1] or '')
	return matchlink._link(args.place, args.lang, args.link, "Module:City/data")
end

return p