وحدة:Taxonbar

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


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

في قالب: {{معرفات الأصنوفة}}.

مثال[عدل]

مثال في صفحة (Q156563):

{{معرفات الأصنوفة|صفحة=Q156563}} ينتج: ←
خطأ لوا في وحدة: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 ={
	'P1070' ,'P1076' ,'P1348' ,'P1391' ,'P1421' ,'P1727' ,'P1743' ,'P1744' ,'P1745' ,'P1746' ,'P1747' ,'P1761' ,'P1772' ,'P1832' ,'P1895',
	'P1939' ,'P1940' ,'P1991' ,'P1992' ,'P2024' ,'P2026' ,'P2036' ,'P2040' ,'P2426' ,'P2434' ,'P2455' ,'P2464' ,'P2752' ,'P2794' ,'P2809' ,
	'P2833' ,'P2946' ,'P3060' ,'P3064' ,'P3088' ,'P3099' ,'P3100' ,'P3101' ,'P3102' ,'P3105' ,'P3151' ,'P3186' ,'P3240' ,'P3288' ,'P3322' ,
	'P3405' ,'P3420' ,'P3444' ,'P3459' ,'P3591' ,'P3594' ,'P3606' ,'P3746' ,'P4024' ,'P4194' ,'P4301'  ,'P627' ,'P685' ,'P687' ,
	'P815' ,'P830' ,'P838' ,'P842' ,'P846' ,'P850' ,'P938' ,'P959' ,'P960' ,'P961' ,'P962'--,'P586'
	}

local propslabel ={
	['P1070']= 'PlantList-ID',
	['P1391']= 'Index Fungorum ID',
	['P1421']= 'GRIN URL',
	['P1727']= 'FNA',
	['P1727']= 'Flora of North America taxon ID',
	['P1745']= 'VASCAN ID',
	['P1746']= 'ZooBank',
	['P1761']= 'Watson & Dallwitz family ID',
	['P1832']= 'GrassBase ID',
	['P1895']= 'Fauna Europaea ID',
	['P1939']= 'Dyntaxa ID',
	['P1940']= 'conifers.org ID',
	['P1992']= 'Plazi ID',
	['P2036']= 'APDB',
	['P2426']= 'Xeno-canto ID',
	['P2752']= 'NZOR ID',
	['P2794']= 'Index Hepaticarum ID',
	['P2809']= 'APSA Code',
	['P2833']= 'ARKive ID',
	['P2946']= 'BacDive ID',
	['P3060']= 'ButMoth ID',
	['P3088']= 'TaiBNET ID',
	['P3099']= 'IBC ID',
	['P3186']= 'TAXREF ID',
	['P3240'] = 'NBN',
	['P3288']= 'World Spider Catalog ID',
	['P3459']= 'Euring number',
	['P3591']= 'WCSPF ID',
	['P4024']= 'ADW taxon ID',
	['P4194']= 'CNPS ID',
	['P4301']= 'PfaF id',
	['P685']= 'NCBI',
	['P687']= 'BHL Page ID',
	['P815']= 'ITIS',
	['P830'] ='eol',
	['P838']= 'BioLib ID',
	['P842']= 'Fossilworks ID',
	['P846']= 'GBIF',
	['P850']= 'WoRMS-ID',
	['P938']= 'FishBase species ID',
	['P959']= 'MSW ID',
	['P960']= 'Tropicos ID',
	['P961']= 'IPNI plant ID',
	['P962']= 'MycoBank taxon name ID'
	}

local patterns ={
	['P2752'] = '[http://www.nzor.org.nz/names/$1 NZOR ID]'  ,
	['P2833'] = '[http://www.arkive.org/$1 ARKive ID]',
	}
	
local url_labels ={
	['P1421'] = 'GRIN Taxonomy ID'
	}
	
local i8 = {
	["tracking"]='[[تصنيف:معرفات الأصنوفة]]',
	["without"]= "[[تصنيف:معرفات الأصنوفة غير موجودة]]",
	["g1"]=  '[[d:Wikidata:WikiProject_Taxonomy|معرفات الأصنوفة]]',
	["name"]=  'Taxonomy bar',
	}
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