Aller au contenu

Module:Bases/vivant

Cette page fait l’objet d’une mesure de semi-protection étendue.
Une page de Wikipédia, l'encyclopédie libre.
Ceci est une version archivée de cette page, en date du 22 octobre 2018 à 08:30 et modifiée en dernier par Thierry Caro (discuter | contributions) (Nouvelle page : local p = {} local wikidata = require "Module:Wikidata" local bases = { -- { nom, propriété Wikidata, format URL} {"AlgaeBase", "P1348", "$1"}, {"Amphibians of India", "P5003",...). Elle peut contenir des erreurs, des inexactitudes ou des contenus vandalisés non présents dans la version actuelle.
(diff) ← Version précédente | Version actuelle (diff) | Version suivante → (diff)

 Documentation[voir] [modifier] [historique] [purger]

Ce module sert fournir la liste des bases au module {{Bases vivant}}.

Utilisation

Les différentes informations à renseigner sont visibles dans le tableau sur la page Modèle:Bases vivant#Utilisation, en particulier pour l'édition des colonnes Libellé et URL.

{{nom, langue du nom}, propriété Wikidata, format URL}
  • nom : colonne libellé de la documentation de la base ; texte affiché sur les pages où la base est utilisée.
  • langue du nom : code langue du libellé, pour l'accessibilité.
  • propriété Wikidata : colonne propriété.
  • format URL : colonne URL.
Pour renseigner la langue de la base et son accessibilité
  1. Pour l'affichage par le modèle de la ou les langues de rédaction du contenu de la bases (colonne langue) :
    depuis sa documentation cliquez sur la propriété wikidata correspondante, éditez le paramètre P1630 (« format de l'URL ») et ajoutez le qualifier P407 (« langue de l'œuvre, du nom ou du terme ») avec la ou les langues voulues. Regardez par exemple le résultat sur la page P3973 (« identifiant Petőfi Irodalmi Múzeum »).
  2. Pour l'accessibilité de la lecture de la langue du libellé de la base :
    éditer ce module pour chaque libellé qui n'est pas en français remplacer par exemple "BookBrainz" par {"BookBrainz", "en"}
Ajout d'une base

Tout ajout ou suppression de base doit passer par Wikipédia:Ateliers Bases.
De manière générale si vous n'êtes pas sûr de vos actions, faite une demande sur cette même discussion.
Les autres paramètres sont importés par le module depuis la page wikidata de la propriété.

local p = {}
local wikidata = require "Module:Wikidata"

local bases = {
-- { nom, propriété Wikidata, format URL}
{"AlgaeBase", "P1348", "$1"},
{"Amphibians of India", "P5003", "http://www.indianamphibians.org/#!/sp/$1"},
{"AmphibiaWeb", "P5036", "https://amphibiaweb.org/species/$1"},
{"Animal Diversity Web", "P4024", "https://animaldiversity.org/accounts/$1/"},
{"AntWeb", "P5299", "https://www.antweb.org/description.do?taxonName=$1"},
{"Araneae", "P3594", "https://araneae.nmbe.ch/data/$1"},
{"ARKive", "P2833", "http://www.arkive.org/$1/"},
{"Australasian Pollen and Spore Atlas", "P2809", "http://apsa.anu.edu.au/sample/$1"},
{"Australian Plant Name Index", "P5984", "https://id.biodiversity.org.au/name/apni/$1"},
{"Avibase", "P2026", "https://avibase.bsc-eoc.org/species.jsp?avibaseid=$1"},
{"BacDive", "P2946", "https://bacdive.dsmz.de/index.php?rd=$1"},
{"Base de données des plantes d'Afrique", "P2036", "http://www.ville-ge.ch/musinfo/bd/cjb/africa/details.php?langue=fr&id=$1"},
{"Biodiversity Heritage Library", "P687", "http://biodiversitylibrary.org/page/$1"},
{"BioLib", "P838", "https://www.biolib.cz/en/taxon/id$1"},
{"BirdFacts", "P4798", "https://app.bto.org/birdfacts/results/$1.htm"},
{"BirdLife International", "P5257", "http://datazone.birdlife.org/species/factsheet/$1"},
{"BOLD Systems", "P3606", "http://www.boldsystems.org/index.php/TaxBrowser_TaxonPage?taxid=$1"},
{"BugGuide", "P2464", "https://bugguide.net/node/view/$1"},
{"Butterflies and Moths of North America", "P3398", "https://www.butterfliesandmoths.org/$1"},
{"Butterflies and Moths of the World", "P3060", "http://www.nhm.ac.uk/jdsml/research-curation/research/projects/butmoth/GenusDetails.dsml?NUMBER=$1"},
{"Butterflies of India", "P4433", "http://www.ifoundbutterflies.org/sp/$1"},
{"Calflora", "P3420", "http://www.calflora.org/cgi-bin/species_query.cgi?where-calrecnum=$1"},
{"California Native Plant Society", "P4194", "http://www.rareplants.cnps.org/detail/$1.html"},
{"Catalogue of Life in Taiwan", "P3088", "http://taibnet.sinica.edu.tw/chi/taibnet_species_detail.php?name_code=$1"},
{"Catalogue of the Lepidoptera of Belgium", "P5862", "http://projects.biodiversity.be/lepidoptera/species/$1/"},
{"DORIS", "P4630", "http://doris.ffessm.fr/ref/specie/$1"},
{"Dyntaxa", "P1939", "https://www.dyntaxa.se/taxon/info/$1"},
{"eBird", "P3444", "https://ebird.org/species/$1"},
{"Ecocrop", "P4753", "http://ecocrop.fao.org/ecocrop/srv/en/cropView?id=$1"},
{"''Encyclopédie de la Vie''", "P830", "http://eol.org/pages/$1/overview"},
{"EPPO Global Database", "P3031", "https://gd.eppo.int/taxon/$1"},
{"EU-nomen", "P1895", "http://www.eu-nomen.eu/portal/taxon.php?GUID=urn:lsid:faunaeur.org:taxname:$1"},
{"The Families of Flowering Plants", "P1761", "http://delta-intkey.com/angio/www/$1.htm"},
{"Fauna Europaea", "P4807", "https://fauna-eu.org/cdm_dataportal/taxon/$1"},
{"FishBase", "P938", "http://www.fishbase.org/summary/$1"},
{"Flora Catalana", "P5179", "http://www.floracatalana.net/$1"},
{"Flora of Australia Online", "P3100", "http://www.anbg.gov.au/abrs/online-resources/flora/stddisplay.xsql?pnid=$1"},
{"Flora of China", "P1747", "http://www.efloras.org/florataxon.aspx?flora_id=2&taxon_id=$1"},
{"Flora of Israel Online", "P3795", "http://flora.org.il/en/plants/$1/"},
{"Flora of North America", "P1727", "http://www.efloras.org/florataxon.aspx?flora_id=1&taxon_id=$1"},
{"FloraBase", "P3101", "https://florabase.dpaw.wa.gov.au/browse/profile/$1"},
{"FloraNT", "P5953", "http://eflora.nt.gov.au/factsheet?id=$1"},
{"Fossilworks", "P842", "http://fossilworks.org/bridge.pl?a=taxonInfo&taxon_no=$1"},
{"Germplasm Resources Information Network", "P1421", "$1"},
{"Global Biodiversity Information Facility", "P846", "https://www.gbif.org/species/$1"},
{"Global Invasive Species Database", "P5626", "http://www.iucngisd.org/gisd/species.php?sc=$1"},
{"The Global Lepidoptera Names Index", "P3064", "http://www.nhm.ac.uk/our-science/data/lepindex/detail/?taxonno=$1"},
{"GONIAT", "P5216", "http://www.goniat.org/showTax.html?TaxId=$1"},
{"GrassBase", "P1832", "http://www.kew.org/data/grasses-db/www/$1.htm"},
{"Guide to North American Birds", "P4715", "https://www.audubon.org/field-guide/bird/$1"},
{"The Gymnosperm Database", "P1940", "https://conifers.org/$1.php"},
{"iNaturalist", "P3151", "https://www.inaturalist.org/taxa/$1"},
{"Index Fungorum", "P1391", "http://www.indexfungorum.org/names/NamesRecord.asp?RecordID=$1"},
{"Index Hepaticarum", "P2794", "http://www.ville-ge.ch/musinfo/bd/cjb/hepatic/detail.php?no_record=$1"},
{"Interim Register of Marine and Nonmarine Genera", "P5055", "http://www.irmng.org/aphia.php?p=taxdetails&id=$1"},
{"International Plant Names Index", "P961", "http://www.ipni.org/ipni/idPlantNameSearch.do?id=$1"},
{"Internet Bird Collection", "P3099", "https://www.hbw.com/ibc/species/$1"},
{"Invasive Species Compendium", "P5698", "https://www.cabi.org/isc/datasheet/$1"},
{"List of Prokaryotic names with Standing in Nomenclature", "P1991", "$1"},
{"Mammal Species of the World", "P959", "http://www.departments.bucknell.edu/biology/resources/msw3/browse.asp?s=y&id=$1"},
{"Moth Photographers Group", "P4758", "http://mothphotographersgroup.msstate.edu/species.php?hodges=$1"},
{"MycoBank", "P962", "http://www.mycobank.org/Biolomics.aspx?Table=Mycobank&MycoBankNr_=$1"},
{"Nálezová databáze ochrany přírody", "P5263", "https://portal.nature.cz/publik_syst/nd_nalez-public.php?idTaxon=$1"},
{"National Center for Biotechnology Information", "P685", "https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=$1"},
{"NBN Atlas", "P3240", "https://data.nbn.org.uk/Taxa/$1"},
{"Nederlands Soortenregister", "P3405", "https://www.nederlandsesoorten.nl/linnaeus_ng/app/views/species/nsr_taxon.php?id=$1"},
{"New South Wales Flora Online", "P3130", "http://plantnet.rbgsyd.nsw.gov.au/cgi-bin/NSWfl.pl?page=nswfl&lvl=sp&name=$1"},
{"New Zealand Organisms Register", "P2752", "http://www.nzor.org.nz/names/$1"},
{"Onroerend Erfgoed", "P4311", "https://id.erfgoed.net/thesauri/soorten/$1"},
{"PalDat", "P4122", "https://www.paldat.org/pub/$1"},
{"Phasmida Species File", "P4855", "http://phasmida.speciesfile.org/Common/basic/Taxa.aspx?TaxonNameID=$1"},
{"Plantarium", "P3102", "http://www.plantarium.ru/page/view/item/$1.html"},
{"PLANTS Database", "P1772", "https://plants.usda.gov/core/profile?symbol=$1"},
{"Plants For A Future", "P4301", "http://www.pfaf.org/user/Plant.aspx?LatinName=$1"},
{"Plants of the World Online", "P5037", "http://www.plantsoftheworldonline.org/taxon/$1"},
{"Plazi", "P1992", "http://treatment.plazi.org/id/$1"},
{"Species Profile and Threats Database", "P2455", "http://www.environment.gov.au/cgi-bin/sprat/public/publicspecies.pl?taxon_id=$1"},
{"Species+", "P2040", "https://speciesplus.net/#/taxon_concepts/$1/legal"},
{"Système d'information taxonomique intégré", "P815", "https://www.itis.gov/servlet/SingleRpt/SingleRpt?search_topic=TSN&search_value=$1"},
{"TAXREF", "P3186", "https://inpn.mnhn.fr/espece/cd_nom/$1"},
{"Tela Botanica", "P3105", "https://www.tela-botanica.org/bdtfx-nn-$1"},
{"Tierstimmenarchiv des Museums für Naturkunde Berlin", "P5397", "http://www.tierstimmen.org/en/database?field_spec_species_target_id_selective=$1"},
{"Titan", "P4125", "http://titan.gbif.fr/sel_genann1.php?numero=$1"},
{"Tree of Life Web Project", "P5221", "http://tolweb.org/$1"},
{"Tropicos", "P960", "http://www.tropicos.org/Name/$1"},
{"UKMOths", "P1743", "https://www.ukmoths.org.uk/species/$1/"},
{"Union internationale pour la conservation de la nature", "P627", "http://oldredlist.iucnredlist.org/details/$1/0"},
{"Universal Biological Indexer and Organizer", "P4728", "http://www.ubio.org/browser/details.php?namebankID=$1"},
{"VASCAN", "P1745", "http://data.canadensys.net/vascan/taxon/$1?lang=fr"},
{"VicFlora", "P5945", "https://vicflora.rbg.vic.gov.au/flora/taxon/$1"},
{"De Vlinderstichting", "P3322", "https://www.vlinderstichting.nl/vlinders/overzicht-vlinders/details-vlinder/?vlinder=$1"},
{"Wiki Aves", "P4664", "https://www.wikiaves.com.br/$1"},
{"Wildflowers of Israel", "P3746", "http://www.wildflowers.co.il/english/plant.asp?ID=$1"},
{"World Checklist of Selected Plant Families", "P3591", "http://wcsp.science.kew.org/namedetail.do?name_id=$1"},
{"World Register of Marine Species", "P850", "http://www.marinespecies.org/aphia.php?p=taxdetails&id=$1"},
{"World Spider Catalog", "P3288", "http://www.wsc.nmbe.ch/lsid/$1"},
{"Xeno-canto", "P2426", "https://www.xeno-canto.org/species/$1"},
{"ZooBank", "P1746", "http://zoobank.org/NomenclaturalActs/$1"},
}

function p.main(frame)	
	local id = frame.args.id
	if id == "" then
		id = nil
	end

	local entity = mw.wikibase.getEntityObject(id)
	if not entity then
		return nil
	end
	local vals = {}
	for i, base in pairs(bases) do
		local val = wikidata.formatStatements{entity = entity, text = base[1], property = base[2], urlpattern = base[3], numval = 1, addcat = true}
		if val then 
			table.insert(vals, val)
		end
	end
	if #vals == 0 then
		return nil
	end
	local header = ''
	if #vals > 1 then
		header = "Ressources relatives au vivant : "
	else
		header = "Ressource relative au vivant : "
	end
	return wikidata.addLinkBack(header .. table.concat( vals, ' • ' ), entity, "identifiers" ) -- lien vers la section approriété de Wikidata
end

return p