پرش به محتوا

الگو:Taxonbar

از ویکی‌پدیا، دانشنامهٔ آزاد
توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

Inspired by Wikidata:Wikidata:WikiProject Taxonomy and {{داده‌های کتابخانه‌ای}}. If you can optimize the code or improve the template please contribute to the next phase of this project at پودمان:Taxonbar.

Please discuss ideas/thoughts for improvement or use on Template:Taxonbar/talk

Basic usage

[ویرایش]

This template can be used to add a bar of identifiers and links to other taxonomic databases where information regarding a particular آرایه (زیست‌شناسی) can be found. Much of the information is stored on the Wikidata entry for the taxon.

Often there is nothing to configure. Simply add this to the bottom of the taxon article:

{{Taxonbar}}


On درخت غول, the result is:


Position

[ویرایش]
As a metadata template, the Taxonbar template should be placed after the پیوند به بیرون section and الگوهای ناوبری, right before the الگو داده‌های کتابخانه‌ای.

Basic use samples

[ویرایش]

جیجاق کبود، قارچ خوراکی دکمه‌ای، بلوط سفید، گل کوکب کوهی، چینچیلا،چینچیلای دم‌کوتاه

Wikidata taxon identifiers

[ویرایش]

The template can automatically get its information from the following properties on ویکی‌داده:

ParameterDatabaseProperty ID
bacdiveBacDiveP2946
bhlBHLp687
biolibBioLibp838
eolEoLp830
gbifGBIFp846
plantlistPlant Listp1070
tropicosTropicosp960
itisITISp815
iucnIUCNp627
ncbiNCBIp685
grinGRINp1421
fossilworksFossilworksp842
wormsWoRMSp850
fishbasefishbasep938
mswMSWp959
ipniIPNI authorp586
ipniIPNIp961
mycobankMycoBankp962
algaebaseAlgaeBaseP1348
indexfungorumIndex Fungorump1391
fnaFNAp1727
focFOCp1747
zoobankZooBankp1746
watsonWatson & Dallwitzp1761
plantsPLANTSp1772
grassbasegrassbasep1832
faunaeuropaeaFauna Europaeap1895
conifersConifers.orgp1940
lpsnLPSNp1991
plaziPlazip1992
avibaseAvibasep2026
afpdAFPDp2036
speciesSpecies+p2040
xeno-cantoXeno-cantop2426
panarticPanarctic Florap2434


To remove a Wikidata taxon identifier (optional)

[ویرایش]

The identifiers listed in the table above can be removed from the bar by setting the corresponding parameter to no. This is useful when trying to keep the taxonbar on one line. 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 {{Taxonbar}} 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 some entries being removed if the goal is to keep the bar on one line.

Example: To remove FOC, IPNI, and AFPD, the code would look like:

{{Taxonbar| foc = no | ipni = no| afpd = no }}


On درخت غول, the result is:

Taxon identifiers not in Wikidata

[ویرایش]

Some taxon identifiers not at present in Wikidata can be added via extra parameters.

نمونه:

{{Taxonbar| wcsp = 280381}}


برای سوسن (سرده)، نتیجه این است:

where the taxon identifier in the World Checklist of Selected Plant Families has been added to those picked up from Wikidata.

DatabaseParameter nameParameter value
eMonocot taxonemonocotNumber following urn:kew.org:wcs:taxon: in the URL of the taxon page
eMonocot familyemonocotfamilyNumber following urn:kew.org:wcs:family: in the URL of the taxon page
uBioubio or namebankto be completed
World Checklist of Selected Plant FamilieswcspValue of name_id from the URL of the taxon page
World Spider Catalog specieswsc species or wsc-spNumber following urn:lsid:nmbe.ch:spidersp: of the LSID on the taxon page – not the number in the URL
World Spider Catalog genuswsc genus or wsc-genNumber following urn:lsid:nmbe.ch:spidergen: on the taxon page – not the number in the URL
World Spider Catalog familywsc family or wsc-famNumber following urn:lsid:nmbe.ch:spiderfam: on the taxon page – not the number in the URL

Template editing—to-do list

[ویرایش]
  • Add parameters to remove individual identifiers from taxonbar. This could help the box from becoming two lines when one line is desired.
  • Pull the formatter URLs from Wikidata.
  • Add ability to add identifiers not listed on Wikidata.
  • Add support for from= to show taxonbox as an example on pages without data, such as template documentation and userpages.
  • Hide taxonbar if empty.
  • Add support for other parameters.
    • See {{Taxonbar/testcases}}.
      • Add support for entering missing data with listed parameters above. Add documentation.
      • Add support for wcsp= Add documentation.
      • Add support for namebank= aka uBio Add documentation.
      • Add support for emonocot= Add documentation.
      • Add support for others=?
      • Add support forgrinurl= Add documentation that a URL must be entered for GRIN rather than ID.
  • Change "taxon identifiers" link to the Wikidata entry link.
  • Add tracking for entries not on Wikidata. Suggest differences be resolved.

جستارهای وابسته

[ویرایش]