Mòideal:Wikidata4Bio/doc
Coltas
This is the documentation page for Mòideal:Wikidata4Bio
Mòideal:Wikidata4Bio (talk⧼dot-separator⧽edit⧼dot-separator⧽hist⧼dot-separator⧽links⧼dot-separator⧽doc⧼dot-separator⧽subpages⧼dot-separator⧽tests / results⧼dot-separator⧽sandbox⧼dot-separator⧽all modules)
- Usage
- This module is used by:
- {{VN}}, {{VNIncluded}}, {{VNNoDisplay}} to display all the different language vernacular names
- {{VN}}, {{VNIncluded}}, {{VNNoDisplay}} to detect some issues on Wikidata values. When an issue is detected, an error is displayed and Roinn-seòrsa:Pages with biology property incorrect on Wikidata is added.
- Some templates of Biology external link templates (like {{NCBI}}) to compare their identifier parameter with the identifier stored in wikidata. When they are different, an error is displayed and Roinn-seòrsa:Pages with biology property different than on Wikidata is added.
- Mòideal:Wikidata4Bio/sandbox is the sandbox of this module (to test new developments) which is used in the sandbox template {{VN/sandbox}}
- Functions and their usage
-
- dumpWikidata() to display all wikidata data accessible (not associated with wikidata)
- getVN() is called by {{VN}}
- getVNTitle() is called by {{VN}} to display '[modify wikidata]'
- getLanguagesManagedByVN() is called by {{VN/doc}} to display all languageCodes managed by VN.
- Wikidata checks (See here all wikidata properties for databases):
- compareAvibaseIdWithWikidata() is called by {{Avibase}} with sciname
- compareBioLibIdWithWikidata() is called by {{BioLib}} with decoratedSciname
- compareEOLIdWithWikidata() is called by {{EOL}} with decoratedSciname
- compareFaunaeurIdWithWikidata() is called by {{Faunaeur}} with decoratedSciname
- compareFishBaseSpeciesIdWithWikidata() is called by {{FishBase species}} with sciname
- compareFungorumIdWithWikidata() is called by {{Fungorum species}}, {{Fungorum genus}} and {{Fungorum taxon}} with sciname
- compareGBIFIdWithWikidata() is called by {{GBIF}} with decoratedSciname
- compareGRINURLWithWikidata() is called by {{GRIN species}}, {{GRIN genus}}, {{GRIN subtribe}}, {{GRIN tribe}}, {{GRIN subfamily}} and {{GRIN family}} with sciname
- compareGymnospermDatabaseIdWithWikidata() is called by {{Gymnosperm Database}} with sciname
- compareIPNIIdWithWikidata() is NOT called by {{IPNI}}, which should be renamed {{IPNI search}} because it does not use an id
- compareITISIdWithWikidata() is called by {{ITIS}} with decoratedSciname
- compareIUCNIdWithWikidata() is called by {{IUCN}} with sciname
- compareLPSNUrlWithWikidata() is called by {{LPSN}} with sciname
- compareMSWIdWithWikidata() is called by {{MSW}} with decoratedSciname
- compareMycoBankIdWithWikidata() is called by {{MycoBank}} with sciname
- compareNCBIIdWithWikidata() is called by {{NCBI}} with decoratedSciname
- compareNRCSPlantsIdWithWikidata() is called by {{NRCS Plants}} with sciname
- compareThePlantListIdWithWikidata() is called by {{ThePlantList species}} with sciname
- compareTPDBIdWithWikidata() is called by {{TPDB}} with decoratedSciname
- compareTropicosIdWithWikidata() is called by {{Tropicos}} with sciname
- compareWoRMSIdWithWikidata() is called by {{WRMS}} and {{WRMS species}} with decoratedSciname
- How to improve and test this module
-
- develop your modification in Mòideal:Wikidata4Bio/sandbox, the sandbox of this module
- verify your changes in Mòideal:Wikidata4Bio/sandbox/testcases
- verify your changes in {{VN}} in :
- Ailanthus altissima by replacing {{VN}} by {{VN/sandbox}}
- Bombycillidae, Cinclidae: multiple VN: Only the global one with useWikidata=true should have interwiki in VN
- Rhipiduridae: multiple VN though inclusion of Rhipidura: Only the global one with useWikidata=true should use wikidata in VN
- Eremogone congesta: the scientific name is Eremogone congesta but also Arenaria congesta
- verify your changes in {{ITIS}} in :
- Chionis alba: 2 ITIS should not display error
- Pternistis, Merlangius merlangus, Boreogadus saida: 2 ITIS should not display error even if included from their category (still a bug)
- report your modifications in Mòideal:Wikidata4Bio
- verify your changes in Mòideal:Wikidata4Bio/testcases
- verify your changes in Ailanthus altissima with normal {{VN}}