وحدة:Chembox Identifiers

من موسوعة المزرعة
اذهب إلى التنقل اذهب إلى البحث


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

في قالب: {{معرفات مركب كيميائي}}.

مثال[عدل]

مثال في صفحة (Q37129): خطأ لوا في وحدة:Identifiers على السطر 137: attempt to index field 'wikibase' (a nil value).

مثال2[عدل]

مثال في صفحة (Q155890): خطأ لوا في وحدة:Identifiers على السطر 137: attempt to index field 'wikibase' (a nil value).

جدول[عدل]

خطأ لوا في وحدة:Uses_Wikidata على السطر 71: attempt to index field 'wikibase' (a nil value).



local p = {}
local Identifier = require('Module:Identifiers')

local props ={'P1578' ,'P1579' ,'P1668' ,'P1931' ,'P1978'  ,'P2027' ,'P2057' ,'P2062' ,'P2063' ,'P2064' ,'P2065' ,'P2072' ,'P2083' ,'P2084' ,'P2085' ,'P2086' ,'P2115' ,'P2153' ,'P231' ,'P232'  ,'P2566' ,'P2646' ,'P267' ,'P2840' ,'P2877' ,'P2926' ,'P3073' ,'P3076' ,'P3117' ,'P3350' ,'P3519' ,'P3550' ,'P3717' ,'P3890' ,'P3978' ,'P4168' ,'P4393' ,'P4732' ,'P592' ,'P595' ,'P628' ,'P639' ,'P652' ,'P657' ,'P661' ,'P662' ,'P665' ,'P679' ,'P683' ,'P695' ,'P700' ,'P715'
	--,'P235','P2017','P233' ,'P234'
}

local propslabel ={
	['P2926'] = 'InterPro ID',
	['P3073'] = 'CosIng number',
	['P3978'] = 'IECIC 2015 ID',
	['P4732'] = 'IUPAC GoldBook ID',
	['P679'] = 'ZVG number',
	['P231'] = 'CAS Number',
	['P232'] = 'EC no.',
	['P235'] = 'InChIKey',
	['P233'] = 'canonical SMILES',
	['P234'] = 'InChI',
	['P592'] = 'ChEMBL ID',
	['P595'] = 'Guide to Pharmacology Ligand ID',
	['P628'] = 'E number',
	['P639'] = 'RefSeq RNA ID',
	['P652'] = 'UNII',
	['P657'] = 'RTECS number',
	['P661'] = 'ChemSpider ID',
	['P267'] = 'ATC code',
	['P662'] = 'PubChem CID',
	['P665'] = 'KEGG ID',
	['P700'] = 'Kemler code',
	['P715'] = 'Drugbank ID',
	['P1578'] = 'Gmelin number',
	['P683'] = 'ChEBI ID',
	['P695'] = 'UN number',
	['P4168'] = 'IEDB Epitope ID',
	['P4393'] = 'Anvisa drug ID',
	['P1579'] = 'Beilstein Registry Number',
	['P1668'] = 'ATCvet',
	['P1931'] = 'NIOSH Pocket Guide ID',
	['P1978'] = 'USDA NDB number',
	['P2017'] = 'isomeric SMILES',
	['P2027'] = 'Colour Index International constitution ID',
	['P2057'] = 'HMDB ID',
	['P2062'] = 'HSDB ID',
	['P2063'] = 'LIPID MAPS ID',
	['P2064'] = 'KNApSAcK ID',
	['P2065'] = 'NIAID ChemDB ID',
	['P2072'] = 'CDB Chemical ID',
	['P2083'] = 'Leadscope ID',
	['P2084'] = 'ZINC ID',
	['P2085'] = 'Nikkaji',
	['P2086'] = 'CDD Public ID',
	['P2115'] = 'NDF-RT ID',
	['P2153'] = 'PubChem Substance ID (SID)',
	['P2566'] = 'ECHA',
	['P2646'] = 'mirTarBase ID',
	['P2840'] = 'NSC number',
	['P2877'] = 'SureChEMBL ID',
	['P3076'] = 'Open Beauty Facts category ID',
	['P3117'] = 'DSSTOX substance identifier',
	['P3350'] = 'WHO international non-proprietary names ID',
	['P3519'] = 'Pfam ID',
	['P3550'] = 'Australian Register of Therapeutic Goods ID',
	['P3717'] = 'MEROPS enzyme ID',
	['P3890'] = 'MetaboLights Compound ID',
}

local patterns ={
	--['P2752'] = '[http://www.nzor.org.nz/names/$1 NZOR ID]'  ,
	}
	
local url_labels ={
	['P234'] = 'InChI'
	}
	
local i8 = {
	["tracking"] = '[[تصنيف:معرفات مركب كيميائي]]',
	["without"]= "[[تصنيف:معرفات مركب كيميائي غير موجودة]]",
	["g1"]=   "معرفات كيميائية",
	["name"]=  "معرفات كيميائية",
	}

function p.t( frame )
    local options = frame.args
	t = {}
	t.Props = props
	t.Propslabel = propslabel
	t.Patterns = patterns
	t.Url_labels = url_labels
	t.I8 = i8
	ab = Identifier.Statement_from_lua( options , t )
	return ab
end

function p.list( frame )
	return Identifier.make_list( props )
end
return p