وحدة:External links/conf/Medical

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

الاستخدام[تعديل]

مش ممكن تستخد الوحده دى مباشر راجع ازاى تستخدمها وحدة:External links.

ويكي بيانات[تعديل]

خطأ: الوظيفة "usestable" غير موجودة.



local configured_claims = {}

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

configured_claims['arz'] = {
	{ prop='P373',  message="[$2 ''$1''] – صور وتسجيلات صوتيه و مرئيه على [[ويكيميديا كومنز]]$3", short="[$2 Wikimedia Commons]", langcode='en', url_f=commons_formatter },

-- General
    { prop='P1395', message='[$2 $1] على موقع كيور(المعهد الوطني للسرطان )ا - cancer$3', short='[$2 cancer.gov]', langcode='en' },
	-----'NCI ID',
	{ prop='P1461', message='[$2 $1] على موقع [[Patientplus]]$3', short='[$2 Patientplus]', langcode='en' },   -----'Patientplus ID',
	{ prop='P1583', message='[$2 $1] (قاموس المعهد الوطني للسرطان)على موقع [[MalaCards]]$3', short='[$2 MalaCards]', langcode='en' },   -----'MalaCards ID',
	{ prop='P1748', message='[$2 $1] على موقع [[NCI Thesaurus]]$3', short='[$2 NCI Thesaurus]', langcode='en' },   -----'NCI Thesaurus ID',
	{ prop='P1930', message='[$2 $1] على موقع [[DSM-V]]$3', short='[$2 DSM-V]', langcode='en' },   -----'DSM-V',
	{ prop='P2004', message='[$2 $1] على موقع [[NALT]]$3', short='[$2 NALT]', langcode='en' },   -----'NALT ID',
	{ prop='P2074', message='[$2 $1] على موقع [[internetmedicin.se]]$3', short='[$2 internetmedicin]', langcode='en' },   -----'internetmedicin.se ID',
	{ prop='P2892', message='[$2 $1] على موقع [[UMLS CUI]]$3', short='[$2 UMLS]', langcode='en' },   -----'UMLS CUI',
	{ prop='P3329', message='[$2 $1] على موقع [[CIViC variant]]$3', short='[$2 CIViC V]', langcode='en' },   -----'CIViC variant ID',
	{ prop='P4233', message='[$2 $1] على موقع [[PatientLikeMe condition]]$3', short='[$2 PatientLikeMe c]', langcode='en' },   -----'PatientLikeMe condition ID',
	{ prop='P4235', message='[$2 $1] على موقع [[PatientLikeMe treatment]]$3', short='[$2 PatientLikeMe t]', langcode='en' },   -----'PatientLikeMe treatment ID',
	{ prop='P4236', message='[$2 $1] على موقع [[PatientLikeMe symptom]]$3', short='[$2 PatientLikeMe s]', langcode='en' },   -----'PatientLikeMe symptom ID',
	{ prop='P4317', message='[$2 $1] على موقع [[GARD rare]]$3', short='[$2 GARD rare]', langcode='en' },   -----'GARD rare disease ID',
	{ prop='P4670', message='[$2 $1] على موقع [[Sjukvårdsrådgivningen]]$3', short='[$2 Sjukvårdsrådgivningen]', langcode='se' },   -----'Sjukvårdsrådgivningen Category ID',
	{ prop='P486', message='[$2 $1] على موقع [[MeSH]]$3', short='[$2 MeSH]', langcode='en' },   -----'MeSH ID',
	{ prop='P492', message='[$2 $1] على موقع [[OMIM]]$3', short='[$2 OMIM]', langcode='en' },   -----'OMIM ID',
	{ prop='P493', message='[$2 $1] على موقع [[ICD]]$3', short='[$2 ICD]', langcode='en' },   -----'ICD-9',
	{ prop='P494', message='[$2 $1] على موقع [[ICD]]$3', short='[$2 ICD]', langcode='en' },   -----'ICD-10',
	{ prop='P508', message='[$2 $1] على موقع [[BNCF]]$3', short='[$2 BNCF]', langcode='en' },   -----'BNCF',
	{ prop='P557', message='[$2 $1] على موقع [[DiseaseDB]]$3', short='[$2 DiseaseDB]', langcode='en' },   -----'DiseaseDB',
	{ prop='P592', message='[$2 $1] على موقع [[ChEMBL]]$3', short='[$2 ChEMBL]', langcode='en' },   -----'ChEMBL ID',
	{ prop='P595', message='[$2 $1] على موقع [[Guide to Pharmacology Ligand]]$3', short='[$2 GPL]', langcode='en' },   -----'Guide to Pharmacology Ligand ID',
	{ prop='P604', message='[$2 $1] على موقع [[MedlinePlus]]$3', short='[$2 Medline+]', langcode='en' },   -----'MedlinePlus ID',
	{ prop='P663', message='[$2 $1] على موقع [[DSM-IV]]$3', short='[$2 DSM-IV]', langcode='en' },   -----'DSM-IV',
	{ prop='P673', message='[$2 $1] على موقع [[eMedicine]]$3', short='[$2 eMedicine]', langcode='en' },   -----'eMedicine',
	{ prop='P699', message='[$2 $1] على موقع [[Disease ontology]]$3', short='[$2 Disease ontology]', langcode='en' },   -----'Disease ontology',
	{ prop='P704', message='[$2 $1] على موقع [[Ensembl Transcript]]$3', short='[$2 Ensembl Transcript]', langcode='en' },   -----'Ensembl Transcript ID',
	{ prop='P950', message='[$2 $1] على موقع [[BNE]]$3', short='[$2 BNE]', langcode='en' },   -----'BNE ID'
}

local messages_conf = {}
messages_conf['arz'] = {
	['short-list-separator'] = ' — ',
	['with-data-cat']              = '[[تصنيف:مقالات بتستعمل روابط طبيه ببيانات من ويكيداتا]]',
--[[Articles using sports links with data from Wikidata]]

	['no-data-text']               = "''مافيش بيانات للمقاله دى على ويكيداتا تخص الفن''",
--"''This article has no properties for sports databases in Wikidata''",
	['no-data-cat']                = '[[تصنيف:مقالات بتستعمل روابط طبيه بدون بيانات على ويكيداتا]]',
--'[[Category:Articles using sports links with no data in Wikidata]]',
	['no-wikilink']                = "''مقالات بتستعمل روابط طبيه بدون صله مع ويكيداتا''",
--"''This article has no link in Wikidata''",
	['no-wikilink-cat']            = "[[تصنيف:مقالات بتستعمل روابط طبيه بدون صله مع ويكيداتا]]",
--"[[Category:Articles using sports links with no link in Wikidata]]",

	['with-local-cat']             = "[[تصنيف:مقالات بتستعمل روابط طبيه بناءا على بيانات محليه]]",
--'[[Category:Articles using sports links with local values]]',

	['track-cat-wd-wd']            = '[[تصنيف:صفحات بتستخدم خاصية $1]]',
--'[[Category:Articles using sports links with $1 from Wikidata]]',

	['track-cat-local-local']      = '[[تصنيف:مقالات بتستعمل روابط طبيه ب $1 من بيانات محليه]]',
--'[[Category:Articles using sports links with $1 from local value]]',

	['track-cat-wd-local']         = '[[تصنيف:مقالات بتستعمل روابط طبيه ب $1 من ويكيداتا مع وجود بيانات محليه]]',
--'[[Category:Articles using sports links with $1 from Wikidata but has local value]]',

	['track-cat-local-wd']         = '[[تصنيف:مقالات بتستعمل روابط طبيه ب $1 من بيانات محليه مع وجود ويكيداتا]]',
--'[[Category:Articles using sports links with $1 from local value but has Wikidata]]',

	['track-cat-local-wd-equal']   = '[[تصنيف:مقالات بتستعمل روابط طبيه ب $1 من بيانات محليه مطابقه لويكيداتا]]',
--"[[Category:Articles using sports links with $1 from local value same as Wikidata]]",

	['track-cat-local-wd-unequal'] = '[[تصنيف:مقالات بتستعمل روابط طبيه ب $1 من بيانات محليه مختلفه عن ويكيداتا]]',
--"[[Category:Articles using sports 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