Difference between revisions of "Module:Taxonbar/conf"

From Eat Every Plant
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision: Empetrum nigrum)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
local p = {}
 
local p = {}
  
--In this order: name of the parameter, label, propertyId in Wikidata or URL
+
--Database entry format: { parameter name, label to display, propertyId in Wikidata or URL }
--If propertyId is a Wikidata property ID, it must be a number without quotes
+
--
--If propertyId is 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')
+
-----------------------------------------------------------------------------------------------
--If propertyId is an interwiki URL, put the interwiki name, a colon, and $1 in quotes (e.g. 'en:$1')
+
--| If propertyId is...    | then...                                                          |
--If propertyId is set to 0 that database will be hidden in the template but will not display an error message if used
+
--|------------------------|------------------------------------------------------------------|
 +
--| 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 link            |
 +
--| set to its negative    | that database won't show unless forced; with link                |
 +
-----------------------------------------------------------------------------------------------
 
p.databases = {
 
p.databases = {
--Biology
 
 
{ 'Wikidata', '[[Wikidata|Wd]]', 'Wikidata:$1' },
 
{ 'Wikidata', '[[Wikidata|Wd]]', 'Wikidata:$1' },
 +
 +
--Wikidata properties for identifing taxa
 
{ 'ADW', '[[Animal Diversity Web|ADW]]', 4024 },
 
{ 'ADW', '[[Animal Diversity Web|ADW]]', 4024 },
 
{ 'AlgeaBase', '[[AlgaeBase]]', 1348 },
 
{ 'AlgeaBase', '[[AlgaeBase]]', 1348 },
{ 'APDB', 'APDB', 2036 },
+
{ 'APDB', 'APDB', 2036 }, ---[[African Plant Database]] DNE
{ 'Araneae', 'Araneae', 3594 },
+
{ 'Araneae', 'Araneae', 3594 }, ---[[]] DNE
 
{ 'ARKive', '[[ARKive]]', 2833 },
 
{ 'ARKive', '[[ARKive]]', 2833 },
{ 'Avibase', 'Avibase', 2026 },
+
{ 'Avibase', 'Avibase', 2026 }, ---[[]] DNE
 
{ 'BacDive', '[[BacDive]]', 2946 },
 
{ 'BacDive', '[[BacDive]]', 2946 },
 +
{ 'Bamona', 'BAMONA', 3398 }, ---[[Butterflies and Moths of North America]] DNE
 
{ 'BHL', '[[Biodiversity Heritage Library|BHL]]', 687 },
 
{ 'BHL', '[[Biodiversity Heritage Library|BHL]]', 687 },
{ 'BioLib', 'BioLib', 838 },
+
{ 'BioLib', 'BioLib', 838 }, ---[[]] DNE
 +
{ 'BOLD', 'BOLD', 3606 }, ---[[BOLD Systems]] DNE
 
{ 'BugGuide', '[[BugGuide]]', 2464 },
 
{ 'BugGuide', '[[BugGuide]]', 2464 },
 
{ 'ButMoth', '[[Natural History Museum#Butterflies and Moths of the World|ButMoth]]', 3060 },
 
{ 'ButMoth', '[[Natural History Museum#Butterflies and Moths of the World|ButMoth]]', 3060 },
{ 'Conifers', 'Conifers.org', 1940 },
+
{ 'Calflora', 'Calflora', 3420 }, ---[[]] DNE
 +
{ 'CNPS', '[[California Native Plant Society|CNPS]]', 4194 },
 +
{ 'Conifers', 'Conifers.org', 1940 }, ---[[]] DNE
 
{ 'eBird', '[[eBird]]', 3444 },
 
{ 'eBird', '[[eBird]]', 3444 },
 
{ 'EoL', '[[Encyclopedia of Life|EoL]]', 830 },
 
{ 'EoL', '[[Encyclopedia of Life|EoL]]', 830 },
{ 'FaunaEuropaea', '[[Fauna Europaea]]', 0 }, --Disabled wikidata lookup because website is down, property ID was 1895
+
{ 'EPPO', '[[EPPO Code|EPPO]]', 3031 },
 +
{ 'FaunaEuropaea', '[[Fauna Europaea]]', 1895 },  
 
{ 'FishBase', '[[FishBase]]', 938 },
 
{ 'FishBase', '[[FishBase]]', 938 },
 
{ 'FloraBase', '[[FloraBase]]', 3101 },
 
{ 'FloraBase', '[[FloraBase]]', 3101 },
{ 'Fossilworks', '[[Fossilworks]]', 842 },
 
 
{ 'FNA', '[[Flora of North America|FNA]]', 1727 },
 
{ 'FNA', '[[Flora of North America|FNA]]', 1727 },
{ 'FoAO', 'FoAO', 3100 },
+
{ 'FoAO', '[[Flora of Australia|FoAO]]', 3100 },
 
{ 'FoC', '[[Flora of China|FoC]]', 1747 },
 
{ 'FoC', '[[Flora of China|FoC]]', 1747 },
 +
{ 'Fossilworks', '[[Fossilworks]]', 842 },
 
{ 'Fungorum', '[[Index Fungorum|Fungorum]]', 1391 },
 
{ 'Fungorum', '[[Index Fungorum|Fungorum]]', 1391 },
 
{ 'GBIF', '[[Global Biodiversity Information Facility|GBIF]]', 846 },
 
{ 'GBIF', '[[Global Biodiversity Information Facility|GBIF]]', 846 },
Line 38: Line 52:
 
{ 'iNaturalist', '[[iNaturalist]]', 3151 },
 
{ 'iNaturalist', '[[iNaturalist]]', 3151 },
 
{ 'IPNI', '[[International Plant Names Index|IPNI]]', 961 },
 
{ 'IPNI', '[[International Plant Names Index|IPNI]]', 961 },
 +
{ 'IRMNG', 'IRMNG', 5055 }, ---[[Interim Register of Marine and Nonmarine Genera]] DNE
 
{ 'ITIS', '[[Integrated Taxonomic Information System|ITIS]]', 815 },
 
{ 'ITIS', '[[Integrated Taxonomic Information System|ITIS]]', 815 },
 
{ 'IUCN', '[[IUCN Red List|IUCN]]', 627 },
 
{ 'IUCN', '[[IUCN Red List|IUCN]]', 627 },
{ 'LepIndex', '[[Natural History Museum#The Global Lepidoptera Names Index|LepIndex]]', 3064 },
+
{ 'LepIndex', '[[The Global Lepidoptera Names Index|LepIndex]]', 3064 },
 
{ 'LPSN', '[[List of Prokaryotic names with Standing in Nomenclature|LPSN]]', 1991 },
 
{ 'LPSN', '[[List of Prokaryotic names with Standing in Nomenclature|LPSN]]', 1991 },
 
{ 'MSW', '[[Mammal Species of the World|MSW]]', 959 },
 
{ 'MSW', '[[Mammal Species of the World|MSW]]', 959 },
 
{ 'MycoBank', '[[MycoBank]]', 962 },
 
{ 'MycoBank', '[[MycoBank]]', 962 },
 
{ 'NCBI', '[[National Center for Biotechnology Information|NCBI]]', 685 },
 
{ 'NCBI', '[[National Center for Biotechnology Information|NCBI]]', 685 },
{ 'Panartic', 'Panartic Flora', 2434 },
+
{ 'NZOR', 'NZOR', 2752 }, ---[[New Zealand Organisms Register]] DNE
{ 'Plantarium', 'Plantarium', 3102 },
+
{ 'Paldat', 'PalDat', 4122 }, ---[[Palynological Database]] DNE
 +
{ 'Panartic', 'Panartic Flora', 2434 }, ---[[]] DNE
 +
{ 'PfaF', '[[Plants for a Future|PfaF]]', 4301 },
 +
{ 'Plantarium', 'Plantarium', 3102 }, ---[[]] DNE
 
{ 'PlantList', '[[The Plant List|Plant List]]', 1070 },
 
{ 'PlantList', '[[The Plant List|Plant List]]', 1070 },
 
{ 'PLANTS', '[[Natural Resources Conservation Service#Plants|PLANTS]]', 1772 },
 
{ 'PLANTS', '[[Natural Resources Conservation Service#Plants|PLANTS]]', 1772 },
 
{ 'Plazi', '[[Plazi]]', 1992 },
 
{ 'Plazi', '[[Plazi]]', 1992 },
 +
{ 'POWO', '[[Plants of the World Online|POWO]]', 5037 },
 
{ 'Species+', '[[CITES|Species+]]', 2040 },
 
{ 'Species+', '[[CITES|Species+]]', 2040 },
 
{ 'SPRAT', '[[Species Profile and Threats Database|SPRAT]]', 2455 },
 
{ 'SPRAT', '[[Species Profile and Threats Database|SPRAT]]', 2455 },
 
{ 'Tropicos', '[[Tropicos]]', 960 },
 
{ 'Tropicos', '[[Tropicos]]', 960 },
{ 'VASCAN', 'VASCAN', 1745 },
+
{ 'uBio', 'uBio', 4728 }, ---[[Universal Biological Indexer and Organizer]] DNE
{ 'Watson', 'Watson & Dallwitz', 1761 },
+
{ 'VASCAN', 'VASCAN', 1745 }, ---[[Vascular Plants of Canada]] DNE
 +
{ 'Watson', 'Watson & Dallwitz', 1761 }, ---[[]] DNE
 
{ 'WCSP', '[[World Checklist of Selected Plant Families|WCSP]]', 3591 },
 
{ 'WCSP', '[[World Checklist of Selected Plant Families|WCSP]]', 3591 },
 
{ 'WoRMS', '[[World Register of Marine Species|WoRMS]]', 850 },
 
{ 'WoRMS', '[[World Register of Marine Species|WoRMS]]', 850 },
 
{ 'WSC', '[[World Spider Catalog|WSC]]', 3288 },
 
{ 'WSC', '[[World Spider Catalog|WSC]]', 3288 },
{ 'Xeno-canto', 'Xeno-canto', 2426 },
+
{ 'Xeno-canto', '[[Xeno-canto]]', 2426 },
 
{ 'ZooBank', '[[ZooBank]]', 1746 },
 
{ 'ZooBank', '[[ZooBank]]', 1746 },
 +
 +
--URLs (parameter must be manually specified on each Wikipedia article)
 +
{ 'AntWeb', '[[AntWeb]]', 'https://www.antweb.org/description.do?taxonName=$1' },
 
{ 'eMonocot', '[[eMonocot]]', 'http://e-monocot.org/taxon/urn:kew.org:wcs:taxon:$1' },
 
{ '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' },
 
{ 'emonocotfamily', '[[eMonocot]]', 'http://e-monocot.org/taxon/urn:kew.org:wcs:family:$1' },
{ 'uBio', 'uBio', 'http://www.ubio.org/browser/details.php?namebankID=$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 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 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' },
 
{ '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' },
{ 'Wikispecies', '[[Wikispecies]]', 'Wikispecies:$1' }
+
{ 'Wikispecies', '[[Wikispecies]]', 'Wikispecies:$1' },
 +
 +
--hidden by default (usually b/c !English, see Taxonbar/doc#Excluded databases)
 +
{ 'ABA', '[[American Birding Association|ABA]]', -4526 },
 +
{ 'CoL-Taiwan', 'CoL-Taiwan', -3088 },
 +
{ 'Dyntaxa', 'Dyntaxa', -1939 },
 +
{ 'FOIH', '', -4311 },
 +
{ 'Hepaticarum', 'Index Hepaticarum', -2794 },
 +
{ 'TAXREF', 'TAXREF', -3186 },
 +
{ 'Titan', 'Titan', -4125 },
 +
{ 'Vlinderstichting', 'Vlinderstichting', -3322 },
 
}
 
}
  
--In this order: alternate name, name of parameter from databases table
+
--Alias entry format: { alias, parameter name in p.databases }
 
p.aliases = {
 
p.aliases = {
 
{ 'Wd', 'Wikidata' },
 
{ 'Wd', 'Wikidata' },
 
{ 'FE', 'FaunaEuropaea' },
 
{ 'FE', 'FaunaEuropaea' },
{ 'PaleoDB', 'Fossilworks' },
 
 
{ 'FW', 'Fossilworks' },
 
{ 'FW', 'Fossilworks' },
 +
{ 'grinurl', 'GRIN' },
 
{ 'indexfungorum', 'Fungorum' },
 
{ 'indexfungorum', 'Fungorum' },
 +
{ 'NameBank', 'uBio' },
 +
{ 'PaleoDB', 'Fossilworks' },
 
{ 'species', 'Species+' },
 
{ 'species', 'Species+' },
 
{ 'WCSPF', 'WCSP' },
 
{ 'WCSPF', 'WCSP' },
{ 'Xenocanto', 'Xeno-canto' },
 
{ 'NameBank', 'uBio' },
 
{ 'wsc-sp', 'WSC species'},
 
 
{ 'wsc-gen', 'WSC genus' },
 
{ 'wsc-gen', 'WSC genus' },
 
{ 'wsc-fam', 'WSC family' },
 
{ 'wsc-fam', 'WSC family' },
{ 'grinurl', 'GRIN' },
+
{ 'wsc-sp', 'WSC species'},
 +
{ 'Xenocanto', 'Xeno-canto' },
 
}
 
}
  
 
return p
 
return p

Revision as of 00:17, 5 May 2018

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 link | --| set to its negative | that database won't show unless forced; with link |


p.databases = { { 'Wikidata', 'Wd', 'Wikidata:$1' },

--Wikidata properties for identifing taxa { 'ADW', 'ADW', 4024 }, { 'AlgeaBase', 'AlgaeBase', 1348 }, { 'APDB', 'APDB', 2036 }, ---African Plant Database DNE { 'Araneae', 'Araneae', 3594 }, ---[[]] DNE { 'ARKive', 'ARKive', 2833 }, { 'Avibase', 'Avibase', 2026 }, ---[[]] DNE { 'BacDive', 'BacDive', 2946 }, { 'Bamona', 'BAMONA', 3398 }, ---Butterflies and Moths of North America DNE { 'BHL', 'BHL', 687 }, { 'BioLib', 'BioLib', 838 }, ---[[]] DNE { 'BOLD', 'BOLD', 3606 }, ---BOLD Systems DNE { 'BugGuide', 'BugGuide', 2464 }, { 'ButMoth', 'ButMoth', 3060 }, { 'Calflora', 'Calflora', 3420 }, ---[[]] DNE { 'CNPS', 'CNPS', 4194 }, { 'Conifers', 'Conifers.org', 1940 }, ---[[]] DNE { 'eBird', 'eBird', 3444 }, { 'EoL', 'EoL', 830 }, { 'EPPO', 'EPPO', 3031 }, { 'FaunaEuropaea', 'Fauna Europaea', 1895 }, { 'FishBase', 'FishBase', 938 }, { 'FloraBase', 'FloraBase', 3101 }, { 'FNA', 'FNA', 1727 }, { 'FoAO', 'FoAO', 3100 }, { 'FoC', 'FoC', 1747 }, { 'Fossilworks', 'Fossilworks', 842 }, { 'Fungorum', 'Fungorum', 1391 }, { 'GBIF', 'GBIF', 846 }, { 'GrassBase', 'GrassBase', 1832 }, { 'GRIN', 'GRIN', 1421 }, { 'IBC', 'IBC', 3099 }, { 'ICTV', 'ICTV', 1076 }, { 'iNaturalist', 'iNaturalist', 3151 }, { 'IPNI', 'IPNI', 961 }, { 'IRMNG', 'IRMNG', 5055 }, ---Interim Register of Marine and Nonmarine Genera DNE { 'ITIS', 'ITIS', 815 }, { 'IUCN', 'IUCN', 627 }, { 'LepIndex', 'LepIndex', 3064 }, { 'LPSN', 'LPSN', 1991 }, { 'MSW', 'MSW', 959 }, { 'MycoBank', 'MycoBank', 962 }, { 'NCBI', 'NCBI', 685 }, { 'NZOR', 'NZOR', 2752 }, ---New Zealand Organisms Register DNE { 'Paldat', 'PalDat', 4122 }, ---Palynological Database DNE { 'Panartic', 'Panartic Flora', 2434 }, ---[[]] DNE { 'PfaF', 'PfaF', 4301 }, { 'Plantarium', 'Plantarium', 3102 }, ---[[]] DNE { 'PlantList', 'Plant List', 1070 }, { 'PLANTS', 'PLANTS', 1772 }, { 'Plazi', 'Plazi', 1992 }, { 'POWO', 'POWO', 5037 }, { 'Species+', 'Species+', 2040 }, { 'SPRAT', 'SPRAT', 2455 }, { 'Tropicos', 'Tropicos', 960 }, { 'uBio', 'uBio', 4728 }, ---Universal Biological Indexer and Organizer DNE { 'VASCAN', 'VASCAN', 1745 }, ---Vascular Plants of Canada DNE { 'Watson', 'Watson & Dallwitz', 1761 }, ---[[]] DNE { 'WCSP', 'WCSP', 3591 }, { 'WoRMS', 'WoRMS', 850 }, { 'WSC', 'WSC', 3288 }, { 'Xeno-canto', 'Xeno-canto', 2426 }, { 'ZooBank', 'ZooBank', 1746 },

--URLs (parameter must be manually specified on each Wikipedia article) { 'AntWeb', 'AntWeb', 'https://www.antweb.org/description.do?taxonName=$1' }, { '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' }, { 'Wikispecies', 'Wikispecies', 'Wikispecies:$1' },

--hidden by default (usually b/c !English, see Taxonbar/doc#Excluded databases) { 'ABA', 'ABA', -4526 }, { 'CoL-Taiwan', 'CoL-Taiwan', -3088 }, { 'Dyntaxa', 'Dyntaxa', -1939 }, { 'FOIH', , -4311 }, { 'Hepaticarum', 'Index Hepaticarum', -2794 }, { 'TAXREF', 'TAXREF', -3186 }, { 'Titan', 'Titan', -4125 }, { 'Vlinderstichting', 'Vlinderstichting', -3322 }, }

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

return p