跳转到内容

模組:Taxonbar/conf/sandbox

维基百科,自由的百科全书

这是本页的一个历史版本,由白布飘扬留言 | 贡献2020年4月10日 (五) 04:02 建立内容为“local p = {} --Database entry format: { parameter name, label to display, propertyId in Wikidata or URL } -- --------------------------------------…”的新页面)编辑。这可能和当前版本存在着巨大的差异。

(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)
local p = {}

--Database entry format: { parameter name, label to display, propertyId in Wikidata or URL }
--
-----------------------------------------------------------------------------------------------
--| If propertyId is...    | then...                                                          |
--|------------------------|------------------------------------------------------------------|
--| a Wikidata property ID | it must be a number without quotes                               |
--| an external URL        | it must be in quotes and begin with http://, https://, or //     |
--|                        |   The ID should be represented by $1                             |
--|                        |   (e.g. 'https://en.wikipedia.org/wiki/$1')                      |
--| an interwiki URL       | put the interwiki name, a colon, and $1 in quotes (e.g. 'en:$1') |
--| set to 0               | that database won't show unless forced; without a taxon link     |
--| set to its negative    | that database won't show unless forced; with a taxon link        |
-----------------------------------------------------------------------------------------------
p.databases = {
	{ 'Wikidata', '[[維基數據]]', 'Wikidata:$1' },
	{ 'Wikispecies', '[[維基物種]]', 'Wikispecies:$1' },
	
	--Wikidata properties for identifing taxa
	{ 'ABA', '[[美国赏鸟协会|ABA]]', 4526 }, -- DNE: [[美國賞鳥協會/American Birding Association]]
	{ 'ADW', 'ADW', 4024 }, -- DNE: [[Animal Diversity Web]]
	{ 'AlgaeBase', '[[AlgaeBase]]', 1348 }, -- DNE: [[AlgaeBase]]
	{ 'AmphibiaWeb', '[[AmphibiaWeb]]', 5036 }, -- DNE: [[AmphibiaWeb]]
	{ 'AntWeb', '[[AntWeb]]', 5299 }, -- DNE: [[AntWeb]]
	{ 'APDB', 'APDB', 2036 }, -- DNE: [[African Plant Database]]
	{ 'Araneae', 'Araneae', 3594 }, -- DNE: [[Araneae]]
	{ 'ARKive', '[[ARKive]]', 2833 },
	{ 'Avibase', 'Avibase', 2026 }, -- DNE: [[Avibase]]
	{ 'BacDive', 'BacDive', 2946 }, -- DNE: [[BacDive]]
	{ 'Bamona', 'BAMONA', 3398 }, -- DNE: [[Butterflies and Moths of North America]]
	{ 'BHL', 'BHL', 687 }, -- DNE: [[Biodiversity Heritage Library]]
	{ 'BioLib', 'BioLib', 838 }, -- DNE: [[BioLib]]
	{ 'BirdLife', '[[國際鳥盟|BirdLife]]', 5257 },
	{ 'BOLD', 'BOLD', 3606 }, -- DNE: [[Barcode of Life Data Systems]]
	{ 'BTO', 'BTO', 4567 }, -- DNE: [[British Trust for Ornithology]]
	{ 'BugGuide', '[[BugGuide]]', 2464 }, -- DNE: [[BugGuide]]
	{ 'ButMoth', '[[自然史博物館|ButMoth]]', 3060 },
	{ 'Calflora', 'Calflora', 3420 }, -- DNE: [[Calflora]]
	{ 'CNPS', 'CNPS', 4194 }, -- DNE: [[California Native Plant Society]]
	{ 'Conifers', 'Conifers.org', 1940 }, -- DNE: [[Conifers.org]]
	{ 'eBird', '[[eBird]]', 3444 },
	{ 'EoL', '[[網絡生命大百科|EoL]]', 830 },
	{ 'EPPO', 'EPPO', 3031 }, -- DNE: [[EPPO Code]]
	{ 'FaunaEuropaea', 'Fauna Europaea', 1895 }, -- DNE: [[Fauna Europaea]]
	{ 'FishBase', '[[世界魚類數據庫|FishBase]]', 938 },
	{ 'FloraBase', 'FloraBase', 3101 }, -- DNE: [[FloraBase]]
	{ 'FNA', 'FNA', 1727 }, -- DNE: [[Flora of North America]]
	{ 'FoAO', 'FoAO', 3100 }, -- DNE: [[Flora of Australia]]
	{ 'FoC', 'FoC', 1747 }, -- DNE: [[Flora of China]]
	{ 'Fossilworks', 'Fossilworks', 842 }, -- DNE: [[Fossilworks]]
	{ 'Fungorum', 'Fungorum', 1391 }, -- DNE: [[Index Fungorum]]
	{ 'GBIF', 'GBIF', 846 }, -- DNE: [[Global Biodiversity Information Facility]]
	{ 'GONIAT', 'GONIAT', 5216 }, -- DNE: [[GONIAT]]
	{ 'GrassBase', 'GrassBase', 1832 }, -- DNE: [[GrassBase]]
	{ 'GRIN', '[[美國種質資源信息網絡|GRIN]]', 1421 },
	{ 'IBC', 'IBC', 3099 }, -- DNE: [[Handbook of the Birds of the World]]
	{ 'ICTV', '[[國際病毒分類委員會|ICTV]]', 1076 },
	{ 'iNaturalist', 'iNaturalist', 3151 }, -- DNE: [[iNaturalist]]
	{ 'IPNI', '[[國際植物名稱索引|IPNI]]', 961 },
	{ 'IRMNG', 'IRMNG', 5055 }, -- DNE: [[Interim Register of Marine and Nonmarine Genera]]
	{ 'ITIS', '[[整合分類學資訊系統|ITIS]]', 815 },
	{ 'IUCN', '[[國際自然保護聯盟瀕危物種紅色名錄|IUCN]]', 627 },
	{ 'LepIndex', 'LepIndex', 3064 }, -- DNE: [[The Global Lepidoptera Names Index]]
	{ 'LPSN', 'LPSN', 1991 }, -- DNE: [[List of Prokaryotic names with Standing in Nomenclature]]
	{ 'MONA', 'MONA', 4758 }, -- DNE: [[List of moths of North America]]
	{ 'MSW', 'MSW', 959 }, -- DNE: [[Mammal Species of the World]]
	{ 'MycoBank', '[[MycoBank]]', 962 },
	{ 'NBN', 'NBN', 3240 }, -- DNE: [[National Biodiversity Network]]
	{ 'NCBI', '[[美國國家生物技術資訊中心|NCBI]]', 685 },
	{ 'NZOR', 'NZOR', 2752 }, -- DNE: [[New Zealand Organisms Register]]
	{ 'Paldat', 'PalDat', 4122 }, -- DNE: [[Palynological Database]]
	{ 'Panartic', 'Panartic Flora', 2434 }, -- DNE: [[Panartic Flora]]
	{ 'PfaF', 'PfaF', 4301 }, -- DNE: [[Plants for a Future]]
	{ 'PSF', 'PSF', 4855 }, -- DNE: [[Phasmida Species File]]
	{ 'Plantarium', 'Plantarium', 3102 }, -- DNE: [[Plantarium]]
	{ 'PlantList', 'Plant List', 1070 }, -- DNE: [[The Plant List]]
	{ 'PLANTS', 'PLANTS', 1772 }, -- DNE: [[Natural Resources Conservation Service#Plants]]
	{ 'Plazi', 'Plazi', 1992 }, -- DNE: [[Plazi]]
	{ 'POWO', 'POWO', 5037 }, -- DNE: [[Plants of the World Online]]
	{ 'Species+', '[[瀕危野生動植物種國際貿易公約|Species+]]', 2040 },
	{ 'SPRAT', 'SPRAT', 2455 }, -- DNE: [[Species Profile and Threats Database]]
	{ 'Tropicos', 'Tropicos', 960 }, -- DNE: [[Tropicos]]
	{ 'Tree of Life', 'Tree of Life', 5221 }, -- DNE: [[Tree of Life Web Project]]
	{ 'uBio', 'uBio', 4728 }, -- DNE: [[Universal Biological Indexer and Organizer]]
	{ 'VASCAN', 'VASCAN', 1745 }, -- DNE: [[Vascular Plants of Canada]]
	{ 'Watson', 'Watson & Dallwitz', 1761 }, -- DNE: [[Watson & Dallwitz]]
	{ 'WCSP', 'WCSP', 3591 }, -- DNE: [[World Checklist of Selected Plant Families]]
	{ 'WOI', 'WOI', 3746 }, -- DNE: [[Wildflowers of Israel]]
	{ 'WoRMS', '[[世界海洋物種目錄|WoRMS]]', 850 },
	{ 'WSC', 'WSC', 3288 }, -- DNE: [[World Spider Catalog]]
	{ 'Xeno-canto', 'Xeno-canto', 2426 }, -- DNE: [[Xeno-canto]]
	{ 'ZooBank', '[[ZooBank]]', 1746 }, -- DNE: [[ZooBank]]
	
	--URLs (parameter must be manually specified on each Wikipedia article)
	{ 'eMonocot', '[[eMonocot]]', 'http://e-monocot.org/taxon/urn:kew.org:wcs:taxon:$1' },
	{ 'emonocotfamily', '[[eMonocot]]', 'http://e-monocot.org/taxon/urn:kew.org:wcs:family:$1' },
	{ 'WSC species', '[[World Spider Catalog]]', 'http://www.wsc.nmbe.ch/search?sFamily=&fMt=begin&sGenus=&gMt=begin&sSpecies=&sMt=begin&mMt=exact&multiPurpose=slsid&sMulti=$1' },
	{ 'WSC genus', '[[World Spider Catalog]]', 'http://www.wsc.nmbe.ch/search?sFamily=&fMt=begin&sGenus=&gMt=begin&sSpecies=&sMt=begin&mMt=exact&multiPurpose=glsid&sMulti=$1' },
	{ 'WSC family', '[[World Spider Catalog]]', 'http://www.wsc.nmbe.ch/search?sFamily=&fMt=begin&sGenus=&gMt=begin&sSpecies=&sMt=begin&mMt=exact&multiPurpose=flsid&sMulti=$1' },
	
	--hidden by default (usually b/c !English, see Taxonbar/doc#Excluded databases)
	{ 'CoL-Taiwan', 'CoL-Taiwan', 3088 }, -- DNE: [[CoL-Taiwan]]
	{ 'CONABIO', 'CONABIO', -4902 }, -- DNE: [[CONABIO]]
	{ 'Dyntaxa', 'Dyntaxa', -1939 }, -- DNE: [[Dyntaxa]]
	{ 'FOIH', 'FOIH', -4311 }, -- DNE: [[Flemish organization for Immovable Heritage]]
	{ 'Hepaticarum', 'Index Hepaticarum', -2794 }, -- DNE: [[Index Hepaticarum]]
	{ 'TAXREF', 'TAXREF', -3186 }, -- DNE: [[TAXREF]]
	{ 'Titan', 'Titan', -4125 }, -- DNE: [[Titan]]
	{ 'Vlinderstichting', 'Vlinderstichting', -3322 }, -- DNE: [[Vlinderstichting]]
}

--Alias entry format: { alias, parameter name in p.databases }
p.aliases = {
	{ 'AlgeaBase', 'AlgaeBase' },
	{ 'FE', 'FaunaEuropaea' },
	{ 'FW', 'Fossilworks' },
	{ 'grinurl', 'GRIN' },
	{ 'indexfungorum', 'Fungorum' },
	{ 'NameBank', 'uBio' },
	{ 'PaleoDB', 'Fossilworks' },
	{ 'species', 'Species+' },
	{ 'TOL', 'Tree of Life'},
	{ 'WCSPF', 'WCSP' },
	{ 'wsc-gen', 'WSC genus' },
	{ 'wsc-fam', 'WSC family' },
	{ 'wsc-sp', 'WSC species'},
	{ 'Xenocanto', 'Xeno-canto' },
}

return p