وحدة:External links/conf/Gene

من ويكيبيديا، الموسوعه الحره

يمكن إنشاء صفحة توثيق الوحدة في وحدة:External links/conf/Gene/شرح

local configured_claims = {}


configured_claims['arz'] = {
{ prop='P639', message='[$2 $1] معرف حمض نووى ريبوزى ناقل فى معرف تسلسل المرجع $3', short='', langcode='en' },
{ prop='P351', message='[$2 $1] معرف جين انتريه $3', short='', langcode='en' },
{ prop='P594', message='[$2 $1] معرف انزمبل جين $3', short='', langcode='en' },
{ prop='P704', message='[$2 $1] معرف نسخة انزمبل $3', short='', langcode='en' },
{ prop='P646', message='[$2 $1] معرف قاعدة البيانات الحره (Freebase) $3', short='', langcode='en' },
{ prop='P353', message='[$2 $1] رمز جين فى منظمة مشروع الجينوم البشرى $3', short='', langcode='en' },
{ prop='P354', message='[$2 $1] معرف لجنة تسميات جين هوجو $3', short='', langcode='en' },
{ prop='P492', message='[$2 $1] معرف وراثه مندليه بشريه $3', short='', langcode='en' },
{ prop='P6366', message='[$2 $1] معرف مايكروسوفت الاكاديمى $3', short='', langcode='en' },
}
local messages_conf = {}
messages_conf['arz'] = {
	['short-list-separator'] = ', ',
	['no-data-text']               = "المقال داه مالوش بيانات على ويكيداتا",
	['no-wikilink']                = "''المقال داه موش مرتبط بويكيداتا''",
	['track-cat-wd-wd']            =  '[[تصنيف:صفحات بتستخدم خاصية $1]]',

}
local limits = {
	['links-shown'] = 16,-- 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