Difference between revisions of "Module:Taxonbar/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Mellis
(Taxonbar switched to Module.)
blackwiki>Mellis
(Doc update)
Line 2: Line 2:
 
{{High-use|90000}}
 
{{High-use|90000}}
 
{{Module rating|protected}}
 
{{Module rating|protected}}
== Usage ==
+
{{TOC right}}
'''At this time we request this module/template not be used on taxon pages''' until the module is implemented by {{t|Taxonbar}} through community consensus. The goal is to soon implement this Lua code to replace the existing {{T|Taxonbar}} template. Parameters and databases are set by [[:Module:Taxonbar/conf]].
 
  
For testcases use: <code><nowiki>{{</nowiki>Taxonbar | from=QID}}</code> View testcases at [[Template:Taxonbar/testcases]]
+
This module contains the code of the {{T|Taxonbar}} template, see its [[Template:Taxonbar/doc|documentation]]. This module is not to be used directly, instead use <code><nowiki>{{</nowiki>Taxonbar}}</code>. Parameters and databases are set by [[:Module:Taxonbar/conf]].
 
 
=== Taxon Example: ===
 
[[File:Scarlet Macaw RWD3.jpg|thumb|left|'''[[Scarlet macaw|Scarlet macaw (''Ara macao'')]]''']]{{clear|left}}
 
<code><nowiki>{{</nowiki>Taxonbar | from=[[:d:Q243761|Q243761]]}}</code>{{clear|left}}
 
'''Result:'''
 
{{Taxonbar | from=Q243761}}
 
  
 
==Testcases==
 
==Testcases==
 
{{Seealso|Template:Taxonbar/testcases}}
 
{{Seealso|Template:Taxonbar/testcases}}
 +
For testcases use: <code><nowiki>{{</nowiki>Taxonbar | from=QID}}</code>
 +
 
{{Purge page}}{{clear|left}}
 
{{Purge page}}{{clear|left}}
 
'''''[[Rhododendron maximum]]'''''
 
'''''[[Rhododendron maximum]]'''''
Line 38: Line 33:
 
'''Button/portobello mushroom ([[Agaricus_bisporus|''Agaricus bisporus'']])'''
 
'''Button/portobello mushroom ([[Agaricus_bisporus|''Agaricus bisporus'']])'''
 
{{Taxonbar|from=Q227690}}
 
{{Taxonbar|from=Q227690}}
 
==Wikidata taxon identifiers==
 
{| class="wikitable sortable"
 
|-
 
!Parameter!!Database!!Property ID
 
|-
 
|APDB||APDB||[[d:Property:P2036|p2036]]
 
|-
 
|AlgeaBase||[[AlgaeBase]]||[[d:Property:P1348|p1348]]
 
|-
 
|Araneae||Araneae||[[d:Property:P3594|p3594]]
 
|-
 
|ARKive||[[ARKive]]||[[d:Property:P2833|p2833]]
 
|-
 
|Avibase||Avibase||[[d:Property:P2026|p2026]]
 
|-
 
|BacDive||[[BacDive]]||[[d:Property:P2946|p2946]]
 
|-
 
|BHL||[[Biodiversity Heritage Library|BHL]]||[[d:Property:P687|p687]]
 
|-
 
|BioLib||BioLib||[[d:Property:P838|p838]]
 
|-
 
|BugGuide||[[BugGuide]]||[[d:Property:P2464|p2464]]
 
|-
 
|ButMoth||[[Natural History Museum#Butterflies and Moths of the World|ButMoth]]||[[d:Property:P3060|p3060]]
 
|-
 
|Conifers||Conifers.org||[[d:Property:P1940|p1940]]
 
|-
 
|eBird||[[eBird]]||[[d:Property:P3444|p3444]]
 
|-
 
|EoL||[[Encyclopedia of Life|EoL]]||[[d:Property:P830|p830]]
 
|-
 
|FaunaEuropaea||[[Fauna Europaea]]||[[d:Property:P1895|p1895]]
 
|-
 
|FishBase||[[FishBase]]||[[d:Property:P938|p938]]
 
|-
 
|FloraBase||[[FloraBase]]||[[d:Property:P3101|p3101]]
 
|-
 
|Fossilworks||[[Fossilworks]]||[[d:Property:P842|p842]]
 
|-
 
|FNA||[[Flora of North America|FNA]]||[[d:Property:P1727|p1727]]
 
|-
 
|FoAO||FoAO||[[d:Property:P3100|p3100]]
 
|-
 
|FoC||[[Flora of China|FoC]]||[[d:Property:P1747|p1747]]
 
|-
 
|Fungorum||[[Index Fungorum|Fungorum]]||[[d:Property:P1391|p1391]]
 
|-
 
|GBIF||[[Global Biodiversity Information Facility|GBIF]]||[[d:Property:P846|p846]]
 
|-
 
|GrassBase||[[GrassBase]]||[[d:Property:P1832|p1832]]
 
|-
 
|GRIN||[[Germplasm Resources Information Network|GRIN]]||[[d:Property:P1421|p1421]]
 
|-
 
|IBC||[[Handbook of the Birds of the World|IBC]]||[[d:Property:P3099|p3099]]
 
|-
 
|ICTV||[[International Committee on Taxonomy of Viruses|ICTV]]||[[d:Property:P1076|p1076]]
 
|-
 
|iNaturalist||[[iNaturalist]]||[[d:Property:P3151|p3151]]
 
|-
 
|IPNI||[[International Plant Names Index|IPNI]]||[[d:Property:P961|p961]]
 
|-
 
|IPNI2||[[International Plant Names Index|IPNI]] author||[[d:Property:P586|p586]]
 
|-
 
|ITIS||[[Integrated Taxonomic Information System|ITIS]]||[[d:Property:P815|p815]]
 
|-
 
|IUCN||[[IUCN Red List|IUCN]]||[[d:Property:P227|p227]]
 
|-
 
|LepIndex||[[Natural History Museum#The Global Lepidoptera Names Index|LepIndex]]||[[d:Property:P3064|p3064]]
 
|-
 
|LPSN||[[List of Prokaryotic names with Standing in Nomenclature|LPSN]]||[[d:Property:P1991|p1991]]
 
|-
 
|MSW||[[Mammal Species of the World|MSW]]||[[d:Property:P959|p956]]
 
|-
 
|MycoBank||[[MycoBank]]||[[d:Property:P962|p962]]
 
|-
 
|NCBI||[[National Center for Biotechnology Information|NCBI]]||[[d:Property:P685|p685]]
 
|-
 
|Panartic||Panartic Flora||[[d:Property:P2434|p2434]]
 
|-
 
|Plantarium||Plantarium||[[d:Property:P3102|p3102]]
 
|-
 
|PlantList||[[The Plant List|Plant List]]||[[d:Property:P1070|p1070]]
 
|-
 
|PLANTS||[[Natural Resources Conservation Service#Plants|PLANTS]]||[[d:Property:P1772|p1772]]
 
|-
 
|Plazi||[[Plazi]]||[[d:Property:P1992|p1992]]
 
|-
 
|Species+||[[CITES|Species+]]||[[d:Property:P2040|p2040]]
 
|-
 
|SPRAT||[[Species Profile and Threats Database|SPRAT]]||[[d:Property:P2455|p2455]]
 
|-
 
|Tropicos||[[Tropicos]]||[[d:Property:P960|p960]]
 
|-
 
|USDAPLANTS||[[Natural_Resources_Conservation_Service#Plants|PLANTS]]||[[d:Property:P1772|p1772]]
 
|-
 
|VASCAN||VASCAN||[[d:Property:P1745|p1745]]
 
|-
 
|Watson||Watson & Dallwitz||[[d:Property:P1761|p1761]]
 
|-
 
|WCSP||[[World Checklist of Selected Plant Families|WCSP]]||[[d:Property:P3591|p3591]]
 
|-
 
|WoRMS||[[World Register of Marine Species|WoRMS]]||[[d:Property:P850|p850]]
 
|-
 
|WSC||[[World Spider Catalog|WSC]]||[[d:Property:P3288|p3288]]
 
|-
 
|Xeno-canto||Xeno-canto||[[d:Property:P2426|p2426]]
 
|-
 
|ZooBank||[[ZooBank]]||[[d:Property:P1746|p1746]]
 
|}
 
{| class="wikitable sortable"
 
|-
 
!Parameter!!Database!!Property URL/Interwiki link
 
|-
 
|eMonocot||[[eMonocot]]||<nowiki>http://e-monocot.org/taxon/urn:kew.org:wcs:taxon:$1</nowiki>
 
|-
 
|emonocotfamily||[[eMonocot]]||<nowiki>http://e-monocot.org/taxon/urn:kew.org:wcs:family:$1</nowiki>
 
|-
 
|uBio||uBio||<nowiki>http://www.ubio.org/browser/details.php?namebankID=$1</nowiki>
 
|-
 
|WSC species||[[World Spider Catalog]]||<nowiki>http://www.wsc.nmbe.ch/search?sFamily=&fMt=begin&sGenus=&gMt=begin&sSpecies=&sMt=begin&mMt=exact&multiPurpose=slsid&sMulti=$1</nowiki>
 
|-
 
|WSC genus||[[World Spider Catalog]]||<nowiki>http://www.wsc.nmbe.ch/search?sFamily=&fMt=begin&sGenus=&gMt=begin&sSpecies=&sMt=begin&mMt=exact&multiPurpose=glsid&sMulti=$1</nowiki>
 
|-
 
|WSC family||[[World Spider Catalog]]||<nowiki>http://www.wsc.nmbe.ch/search?sFamily=&fMt=begin&sGenus=&gMt=begin&sSpecies=&sMt=begin&mMt=exact&multiPurpose=flsid&sMulti=$1</nowiki>
 
|-
 
|Wikispecies||[[Wikispecies]]||Wikispecies:$1
 
|}
 
  
 
==Module editing — to-do list==
 
==Module editing — to-do list==

Revision as of 01:16, 29 December 2017

This module contains the code of the Template:T template, see its documentation. This module is not to be used directly, instead use {{Taxonbar}}. Parameters and databases are set by Module:Taxonbar/conf.

Testcases

Template:Seealso For testcases use: {{Taxonbar | from=QID}}

Purge server cache

Rhododendron maximum Template:Taxonbar Asclepias syriaca Template:Taxonbar Peach (Prunus persica) Template:Taxonbar Puma_(genus) Template:Taxonbar Dog (Canis lupus familiaris) Template:Taxonbar Eastern bluebird (Sialia sialis) Template:Taxonbar Honey bee (Apis) Template:Taxonbar Western honey bee (Apis mellifera) Template:Taxonbar Clipper butterfly (Parthenos sylvia) Template:Taxonbar Turkey tail (Trametes versicolor) Template:Taxonbar Button/portobello mushroom (Agaricus bisporus) Template:Taxonbar

Module editing — to-do list

  • Improve documentation
  • Add parameters to remove individual identifiers from taxonbar. This could help the box from becoming two lines when one line is desired. Can be suppressed by setting equal to no (e.g. |eol=no). Should we suppress if set to blank (e.g. |eol=)?
  • Add support for parameters currently supported by Template:T. Someone want to double-check Module:Taxonbar/conf that we got them all?
  • Add documentation for grinurl=.
  • Continue to add support for new, useful parameters.
  • Add tracking for entries not on Wikidata? Suggest differences be resolved?
  • Program Module:Taxonbar to create it's own documentation table of parameters.
  • Program Module:Taxonbar to support disabled(hidden) databases which can shown when called.
  • Switch Template:T to Module:Taxonbar when it's ready and meets all needs.

See also