توضیحات پودمان[ایجاد] [پاکسازی]
local configured_claims = {}

local function commons_formatter(id)
	return "https://commons.wikimedia.org/wiki/Category:" .. id:gsub(" ", "_")
end

configured_claims['fa'] = {

	-- { prop='P373',  message="[$2 ''$1''] – pictures, videos or audio در [[ویکی‌انبار]]$3", short="[$2 Wikimedia Commons]", langcode='en', url_f=commons_formatter },

-- international

	{ prop='P1566', message='[$2 $1] در Geonames.org$3', short='[$2 GeoNames geographical database]', langcode='en' },
    { prop='P3109', message='[$2 $1] در Peakbagger.com$3', short='[$2 Peakbagger]', langcode='en' },
    { prop='P2347', message='[$2 $1] در http://finto.fi$3', short='[$2 Finto]', langcode='fi' },
}

local messages_conf = {}

messages_conf['fa'] = {
	['short-list-separator'] = ', ',
	['no-data-text']               = "''This article has no properties for geo databases in Wikidata''",
	['no-data-cat']                = '[[رده:مقاله‌هایی که از پیوندهای جغرافیایی حاوی داده ناموجود در ویکی‌داده استفاده می‌کنند]]',
	['no-wikilink']                = "''This article has no link in Wikidata''",
	['no-wikilink-cat']            = "[[Category:Articles using geo links with no link in Wikidata]]",
	['with-local-cat']             = '[[Category:Articles using geo links with local values]]',
	['track-cat-wd-wd']            = '[[Category:Articles using geo links with $1 from Wikidata]]',
	['track-cat-local-local']      = '[[Category:Articles using geo links with $1 from local value]]',
	['track-cat-wd-local']         = '[[Category:Articles using geo links with $1 from Wikidata but has local value]]',
	['track-cat-local-wd']         = '[[Category:Articles using geo links with $1 from local value but has Wikidata]]',
	['track-cat-local-wd-equal']   = "[[Category:Articles using geo links with $1 from local value same as Wikidata]]",
	['track-cat-local-wd-unequal'] = "[[Category:Articles using geo links with $1 from local value different from Wikidata]]",
}
local limits = {
	['links-shown'] = 10,		-- maximum number of links shown in the article.
}

local p = {}

function p.getConfiguredClaims (self, lang)
	return configured_claims[lang]
end

function p.getLimits (self)
	return limits
end

function p.getMessage (self, lang, msg)
	return messages_conf[lang][msg] 
end

-- metatable for the export
local mt = {
	-- adjust the installation of the module
	['__call'] = function (self, lang)
		self.configured_claims = configured_claims[lang]
		self.messages_conf = messages_conf[lang]
		return self
	end
}

-- install the metatable
setmetatable(p, mt)

return p