வார்ப்புரு:Taxonbar/doc
{{Documentation subpage}}
 &lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&gt;
 {{further|Help:Taxon identifiers}}
 This metadata template links Wikipedia articles to various biological and [[taxonomic database]]s. Taxonbar displays these links as short strings, indicating the unique [[identifier]] each database has assigned the taxon for catalogue purposes. Taxonomic identifiers of each taxon are stored and retrieved from the taxon's corresponding [[Wikidata]] entry, but can be overridden in individual articles with locally entered data. Adding the data to Wikidata is preferable.
 
 This template was inspired by {{Tl|Authority Control}} and the work of [[Wikidata:Wikidata:WikiProject Taxonomy]]. If you can optimize the code or improve the template please contribute to the next phase of this project at '''[[Module:Taxonbar]]'''. Please discuss ideas/thoughts for improvement or use on [[Template:Taxonbar/talk]].
 
 {{Uses Wikidata|section=Wikidata taxon identifiers}}
 [[File:Taxonbar layout placement on English Wikipedia - Cuckoo wasp.png|thumb|Taxonbar is placed below all [[Wikipedia:Navigation template|navigation templates]], except [[Wikipedia:Authority control|Authority control]] (not shown here).]]
 
 == Position ==
 {{See also|Wikipedia:Manual of Style/Layout|Wikipedia:Manual of Style/Layout#Standard appendices and footers}}
 '''Please place this template correctly'''. As a metadata template, Taxonbar should be placed:
 
 * Below all [[Wikipedia:References|references]], [[Wikipedia:Footnotes|footnotes]], and [[Wikipedia:External links|external links]].
 * Below all [[Wikipedia:Navigation template|navigation templates]]—except Authority control.
 * Above the [[Wikipedia:Authority control|Authority control]] template (if present).
 * Above the [[Wikipedia:Categories|&lt;nowiki&gt;[[Category:]]&lt;/nowiki&gt;]] codes in the editor.
 
 == Usage ==
 To add Taxonbar to a page:
 # Insert the &lt;code&gt;&lt;nowiki&gt;{{Taxonbar}}&lt;/nowiki&gt;&lt;/code&gt; code below other navigation templates.
 # Click &quot;Show preview&quot; to check placement and to see which Taxon identifiers are automatically pulled from Wikidata.
 # If you have more identifiers to add, consider adding them to the article's Wikidata item (so that all versions of Wikipedia will automatically benefit). Be careful not to edit the structure or names of Wikidata taxon until you have become familiar with [[d:Wikidata:WikiProject Taxonomy|Wikidata:WikiProject Taxonomy]] and [[d:Wikidata:WikiProject Taxonomy/Tutorial|Wikidata:WikiProject Taxonomy/Tutorial]].
 
 '''Basic code:'''
 &lt;pre&gt;&lt;nowiki&gt;{{Taxonbar}}&lt;/nowiki&gt;&lt;/pre&gt;
 On ''[[Sequoiadendron giganteum]]'', the result is:
 &lt;br&gt;
 {{taxonbar | from=Q149851}}
 
 == Basic use samples ==
 {{Seealso|Template:Taxonbar/testcases}}
 [[Blue jay]], ''[[Agaricus bisporus]]'', ''[[Quercus alba]]'', ''[[Rudbeckia hirta]]'', [[Chinchilla]], ''[[Chinchilla chinchilla]]''
 
 ==Wikidata taxon identifiers==
 {{For2|databases supported by Wikidata:WikiProject Taxonomy|[[d:Wikidata:WikiProject_Taxonomy#Databases]]}}
 The template can automatically get its information from the following properties on [[Wikidata]]:
 {| class=&quot;wikitable sortable&quot;
 |-
 !Parameter!!Database!!Property ID
 |-
 |ipni||[[International Plant Names Index|IPNI]] author||[[d:Property:P586|p586]]
 |-
 |iucn||[[International Union for Conservation of Nature|IUCN]]||[[d:Property:P627|p627]]
 |-
 |ncbi||[[National Center for Biotechnology Information|NCBI]]||[[d:Property:P685|p685]]
 |-
 |bhl||[[Biodiversity Heritage Library|BHL]]||[[d:Property:P687|p687]]
 |-
 |itis||[[Integrated Taxonomic Information System|ITIS]]||[[d:Property:P815|p815]]
 |-
 |eol||[[Encyclopedia of Life|EoL]]||[[d:Property:P830|p830]]
 |-
 |biolib||BioLib||[[d:Property:P838|p838]]
 |-
 |fossilworks||[[Fossilworks]]||[[d:Property:P842|p842]]
 |-
 |gbif||[[Global Biodiversity Information Facility|GBIF]]||[[d:Property:P846|p846]]
 |-
 |worms|||[[World Register of Marine Species|WoRMS]]||[[:d:Property:P850|p850]]
 |-
 |fishbase||[[FishBase]]||[[d:Property:P938|p938]]
 |-
 |msw||[[Mammal Species of the World|MSW]]||[[d:Property:P959|p959]]
 |-
 |tropicos||[[Tropicos]]||[[d:Property:P960|p960]]
 |-
 |ipni||[[International Plant Names Index|IPNI]]||[[d:Property:P961|p961]]
 |-
 |mycobank||[[MycoBank]]||[[d:Property:P962|p962]]
 |-
 |plantlist||[[The Plant List|Plant List]]||[[d:Property:P1070|p1070]]
 |-
 |ictv||[[International Committee on Taxonomy of Viruses|ICTV]]||[[d:Property:P1076|p1076]]
 |-
 |algaebase||[[AlgaeBase]]||[[d:Property:pP1348|P1348]]
 |-
 |indexfungorum||[[Index Fungorum]]||[[d:Property:P1391|p1391]]
 |-
 |grin||[[Germplasm Resources Information Network|GRIN]]||[[d:Property:P1421|p1421]]
 |-
 |fna||[[Flora of North America|FNA]]||[[d:Property:P1727|p1727]]
 |-
 |vascan||VASCAN||[[d:Property:P1745|p1745]]
 |-
 |zoobank||[[ZooBank]]||[[d:Property:P1746|p1746]]
 |-
 |foc||[[Flora of China (series)|FOC]]||[[d:Property:P1747|p1747]]
 |-
 |watson||Watson &amp; Dallwitz||[[d:Property:P1761|p1761]]
 |-
 |plants||[[Natural Resources Conservation Service#Plants|PLANTS]]||[[d:Property:P1772|p1772]]
 |-
 |grassbase||[[GrassBase]]||[[d:Property:P1832|p1832]]
 |-
 |faunaeuropaea||[[Fauna Europaea]] (currently disabled)||[[d:Property:P1895|p1895]]
 |-
 |conifers||Conifers.org||[[d:Property:P1940|p1940]]
 |-
 |lpsn||[[List of Prokaryotic names with Standing in Nomenclature|LPSN]]||[[d:Property:P1991|p1991]]
 |-
 |plazi||[[Plazi]]||[[d:Property:P1992|p1992]]
 |-
 |avibase||Avibase||[[d:Property:P2026|p2026]]
 |-
 |afpd||AFPD||[[d:Property:PP2036|p2036]]
 |-
 |species||[[CITES|Species+]]||[[d:Property:P2040|p2040]]
 |-
 |xeno-canto||[[Xeno-canto]]||[[d:Property:P2426|p2426]]
 |-
 |panartic||Panarctic Flora||[[d:Property:P2434|p2434]]
 |-
 |sprat||Species Profiles and Threats||[[d:Property:P2455|p2455]]
 |-
 |bugguide||BugGuide||[[d:Property:P2464|p2464]]
 |-
 |bacdive||[[BacDive]]||[[d:Property:P2946|P2946]]
 |-
 |butmoth||ButMoth||[[d:Property:P3060|p3060]]
 |-
 |lepindex||LepIndex||[[d:Property:P3064|p3064]]
 |-
 |ibc||Internet Bird Collection||[[d:Property:P3099|p3099]]
 |-
 |foao||Flora of Australia Online||[[d:Property:P3100|p3100]]
 |-
 |florabase||[[FloraBase]]||[[d:Property:P3101|p3101]]
 |-
 |plantarium||Plantarium||[[d:Property:P3102|p3102]]
 |-
 |inaturalist||[[iNaturalist]]||[[d:Property:P3151|p3151]]
 |-
 |wsc||[[World Spider Catalog]]||[[d:Property:P3288|p3288]]
 |-
 |bamona||Butterflies and Moths of North America||[[d:Property:P3398|p3398]]
 |-
 |ebird||[[eBird]]||[[d:Property:P3444|p3444]]
 |-
 |araneae||Araneae: Spiders of Europe||[[d:Property:P3594|p3594]]
 |-
 |adw||Animal Diversity Web||[[d:Property:P4024|p4024]]
 |-
 |arkive||ARKive||[[d:Property:P2833|p2833]]
 |}
 
 &lt;!-- If none of these is applicable, it can be forced with: &lt;nowiki&gt;{{Authority control |MBA={{#Property:P434}} }}&lt;/nowiki&gt; which for [[The Beatles]] would produce:
 {{Authority control |MBA=b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d }}
 Note that for The Beatles &lt;nowiki&gt;{{Authority control}}&lt;/nowiki&gt; would work out of the box already. --&gt;
 
 === To hide a Wikidata taxon identifier (optional) ===
 Individual identifiers listed in the table above can be removed(hidden) from the bar by setting the corresponding parameter to &lt;code&gt;no&lt;/code&gt;. This is useful when trying to reduce the number of links within Taxonbar. Spaces are optional.  There is no sense in removing too many identifiers, for example: removing plant or fungi identifiers from an animal taxon would have no effect as these parameters will not show up on an animal taxon in the first place.  It is best to preview &lt;nowiki&gt;{{Taxonbar}}&lt;/nowiki&gt; on the page and decide what entries provide little relevant data.  Plant species will have the most entries and are most likely in need of hiding some entries if the goal is to keep the bar on one line.
 
 Example:
 To remove FOC, IPNI, and AFPD, the code would look like:
 &lt;pre&gt;&lt;nowiki&gt;{{taxonbar | foc = no | ipni = no| afpd = no }}&lt;/nowiki&gt;&lt;/pre&gt;
 &lt;br&gt;
 On [[Sequoiadendron giganteum]], the result is:
 
 {{taxonbar | from=Q149851 | foc = no | ipni = no| afpd = no }}
 
 ==Taxon identifiers not in Wikidata==
 Some taxon identifiers not at present in Wikidata can be added via extra parameters, however adding the data to Wikidata is preferable.
 
 Example:
 &lt;pre&gt;&lt;nowiki&gt;{{taxonbar | wcsp = 280381}}&lt;/nowiki&gt;&lt;/pre&gt;
 &lt;br/&gt;
 On ''[[Lilium]]'', the result is:
 
 {{taxonbar | from=Q5194627 | wcsp = 280381 }}
 
 where the taxon identifier in the [[World Checklist of Selected Plant Families]] has been added to those picked up from Wikidata.
 
 {| class=&quot;wikitable&quot;
 |-
 ! Database !! Parameter name !! Parameter value
 |-
 |[[eMonocot]] taxon || &lt;code&gt;emonocot&lt;/code&gt; || Number following &lt;code&gt;&lt;nowiki&gt;urn:kew.org:wcs:taxon:&lt;/nowiki&gt;&lt;/code&gt; in the URL of the taxon page
 |-
 |eMonocot family || &lt;code&gt;emonocotfamily&lt;/code&gt; || Number following &lt;code&gt;&lt;nowiki&gt;urn:kew.org:wcs:family:&lt;/nowiki&gt;&lt;/code&gt; in the URL of the taxon page
 |-
 |uBio || &lt;code&gt;ubio&lt;/code&gt; ''or'' &lt;code&gt;namebank&lt;/code&gt; || ''to be completed''
 |-
 |[[World Checklist of Selected Plant Families]] || &lt;code&gt;wcsp&lt;/code&gt; || Value of &lt;code&gt;name_id&lt;/code&gt; from the URL of the taxon page
 |-
 |[[World Spider Catalog]] species || &lt;code&gt;wsc species&lt;/code&gt; ''or'' &lt;code&gt;wsc-sp&lt;/code&gt; || Number following &lt;code&gt;&lt;nowiki&gt;urn:lsid:nmbe.ch:spidersp:&lt;/nowiki&gt;&lt;/code&gt; of the LSID on the taxon page – &lt;em&gt;not&lt;/em&gt; the number in the URL
 |-
 |World Spider Catalog genus || &lt;code&gt;wsc genus&lt;/code&gt; ''or'' &lt;code&gt;wsc-gen&lt;/code&gt; || Number following &lt;code&gt;&lt;nowiki&gt;urn:lsid:nmbe.ch:spidergen:&lt;/nowiki&gt;&lt;/code&gt; on the taxon page – &lt;em&gt;not&lt;/em&gt; the number in the URL
 |-
 |World Spider Catalog family || &lt;code&gt;wsc family&lt;/code&gt; ''or'' &lt;code&gt;wsc-fam&lt;/code&gt; || Number following &lt;code&gt;&lt;nowiki&gt;urn:lsid:nmbe.ch:spiderfam:&lt;/nowiki&gt;&lt;/code&gt; on the taxon page – &lt;em&gt;not&lt;/em&gt; the number in the URL
 |}
 
 == Template editing—to-do list ==
 * Switch to [[Module:Taxonbar]] when it's ready and meets our needs.
 * Continue to add support for new, useful parameters.
 * Program [[Module:Taxonbar]] to 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.
 
 ==See also==
 * [[Help:Taxon identifiers]]
 * [[Module:Taxonbar]], a proposed, work-in-progress update to Taxonbar using Lua
 * [[:Template:Taxonbar/testcases]]
 * {{tl|Taxonbar/sandbox}}
 * {{tl|Taxonbar/sandbox2}}
 
 ==Other Links==
 * {{tl|TaxonIds}}
 * {{tl|ThePlantList}}
 * {{tl|Authority control}}
 * {{tl|Taxobox}}
 * [[Wikipedia:Automated_taxobox_system/intro]]
 * Other templates in [[:Category:Biology external link templates]]
 * Other templates in [[:Category:Flora external link templates]]
 
 &lt;includeonly&gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 &lt;!-- Categories below this line, please; interwikis at Wikidata --&gt;
 [[Category:Biology infobox templates]]
 [[Category:Botany infobox templates]]
 [[Category:Flora external link templates]]
 [[Category:Biology external link templates]]
 [[Category:External link templates using Wikidata]]
 [[Category:External link templates to linked data sites with reciprocal links]]