MediaWiki extension NCBITaxonomyLookup

Clone this repo:
  1. de96e31 build: Updating mediawiki/mediawiki-phan-config to 0.15.0 by libraryupgrader · 3 weeks ago master
  2. 999ccf8 build: Updating cross-spawn to 7.0.6 by libraryupgrader · 7 weeks ago
  3. ea796c4 build: Updating mediawiki/mediawiki-codesniffer to 45.0.0 by libraryupgrader · 9 weeks ago
  4. bfb3ae8 build: Updating micromatch to 4.0.8 by libraryupgrader · 5 months ago
  5. 134fc4b build: Updating mediawiki/mediawiki-codesniffer to 44.0.0 by libraryupgrader · 5 months ago

NCBITaxonomyLookup

Setup

  • Clone the repository into the /extensions folder
  • Add wfLoadExtension('NCBITaxonomyLookup'); to the bottom of LocalSettings.php

Configuration

  • $wgNCBITaxonomyLookupCacheTTL = 0 time to keep the cached values (in seconds)
  • $wgNCBITaxonomyLookupApiURL the API url

Usage

The #taxonomy parser functions takes two arguments:

  • the taxonomy ID
  • the xpath of the XML element to print

Example:

{{#taxonomy:12345|Taxon/Rank}}
{{#taxonomy:12345|Taxon/ScientificName}}
{{#taxonomy:45678|Taxon/OtherNames/GenbankCommonName}}
  NODES
os 2