Difference between revisions of "Module:Taxonbar/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Mellis
(Taxonbar switched to Module.)
m (86 revisions imported)
 
(32 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{High-use|90000}}
+
{{t links|Taxonbar}}
 +
{{High-use|394398}}
 
{{Module rating|protected}}
 
{{Module rating|protected}}
== Usage ==
+
{{Main|Template:Taxonbar}}
'''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]].
+
{{Uses Wikidata|section=Taxon identifiers}}
 +
{{Lua|Module:Taxonbar/conf|Module:TaxonItalics|Module:ResolveEntityId|Module:Navbox|Module:No globals}}
 +
{{Lua sidebar}}
 +
{{TOC right}}
  
For testcases use: <code><nowiki>{{</nowiki>Taxonbar | from=QID}}</code> View testcases at [[Template:Taxonbar/testcases]]
+
This module contains the code of {{T|Taxonbar}}. To use Taxonbar, follow instructions at [[Template:Taxonbar/doc]].
  
=== Taxon Example: ===
+
==Configuration==
[[File:Scarlet Macaw RWD3.jpg|thumb|left|'''[[Scarlet macaw|Scarlet macaw (''Ara macao'')]]''']]{{clear|left}}
+
Parameters and databases are set by [[:Module:Taxonbar/conf]].
<code><nowiki>{{</nowiki>Taxonbar | from=[[:d:Q243761|Q243761]]}}</code>{{clear|left}}
+
 
'''Result:'''
+
==Taxon identifiers==
{{Taxonbar | from=Q243761}}
+
{{See|Template:Taxonbar/doc#Taxon identifiers}}
  
 
==Testcases==
 
==Testcases==
{{Seealso|Template:Taxonbar/testcases}}
+
{{See also|Template:Taxonbar/testcases|Module:Taxonbar/sandbox}}
 +
For testcases use: <code><nowiki>{{</nowiki>Taxonbar | from=QID}}</code>
 +
 
 
{{Purge page}}{{clear|left}}
 
{{Purge page}}{{clear|left}}
 
'''''[[Rhododendron maximum]]'''''
 
'''''[[Rhododendron maximum]]'''''
Line 22: Line 28:
 
'''[[Peach]] (''Prunus persica'')'''
 
'''[[Peach]] (''Prunus persica'')'''
 
{{Taxonbar|from=Q13189}}
 
{{Taxonbar|from=Q13189}}
'''[[Puma_(genus)]]'''
+
'''[[Puma (genus)]]'''
 
{{Taxonbar||from=Q270748}}
 
{{Taxonbar||from=Q270748}}
 
'''[[Dog]] (''Canis lupus familiaris'')'''
 
'''[[Dog]] (''Canis lupus familiaris'')'''
Line 36: Line 42:
 
'''Turkey tail (''[[Trametes versicolor]]'')'''
 
'''Turkey tail (''[[Trametes versicolor]]'')'''
 
{{Taxonbar|from=Q753833}}
 
{{Taxonbar|from=Q753833}}
'''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==
* Improve documentation
+
{{See|Template:Taxonbar/doc#Module editing — to-do list}}
* <s>Add parameters to remove individual identifiers from taxonbar. This could help the box from becoming two lines when one line is desired.</s> ''Can be suppressed by setting equal to <code>no</code> (e.g. {{para|eol|no}}). Should we suppress if set to blank (e.g. {{para|eol}})?''
 
* <s>Add support for parameters currently supported by {{T|Taxonbar}}.</s> ''Someone want to double-check [[:Module:Taxonbar/conf]] that we got them all?''
 
** See {{Tl|Taxonbar/testcases}}.
 
* 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 {{T|Taxonbar}} to [[Module:Taxonbar]] when it's ready and meets all needs.
 
  
 
==See also==
 
==See also==
* {{T|Taxonbar}} the original template.
+
* [[Module:Taxonbar/conf]] &ndash; the configuration module to add/remove/edit sources
* [[:Module:Taxonbar/conf]], Configuration of this module (Add or edit sources).
+
* {{tl|Taxonbar/exists}} &ndash; tests for {{tl|Taxonbar}} existence
* [[:Template_talk:Taxonbar]], Taxonbar discussion.
+
* {{tl|Taxonbar/candidate}} &ndash; categorize highly-likely and potentially-likely {{tl|Taxonbar}} candidates
* [[:Template:Taxonbar/testcases]], Taxonbar testcases.
+
* [[Module:Authority control]] &ndash; a {{tl|Taxonbar}}-like module for unique subjects
* [[:Template:Taxonbar]], Sandbox template implementing this module.
+
* [[:gl:Módulo:Taxonbar]] &ndash; original code source for this module
* [[:Module:Authority_control]].
 
* [[:gl:Módulo:Taxonbar]], original code source for this template.
 
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Latest revision as of 16:56, 29 September 2020

Taxonbar (edit talk history links # /subpages /doc /doc edit /sbox /sbox diff /test)

Template:Uses Wikidata

This module contains the code of Template:T. To use Taxonbar, follow instructions at Template:Taxonbar/doc.

Configuration

Parameters and databases are set by Module:Taxonbar/conf.

Taxon identifiers

Testcases

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

See also