Jump to content

टेम्पलेट:Taxonbar/doc

विकिपीडिया से

Inspired by Wikidata:Wikidata:WikiProject Taxonomy and {{Authority Control}}. If you can optimize the code or improve the template please contribute.

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

This can be used to add a bar of identifiers and links to other taxonomic databases where information regarding that taxon can be found. This information is all stored on the Wikidata entry for that species.

Nothing to configure unless some identifiers are to be removed. Simply add this to the bottom of the taxon article:

{{Taxonbar}}


Which on Sequoiadendron giganteum looks like:


To remove a taxon identifier (optional):
[संपादन करीं]

Below is a list of parameters to choose from to remove any identifier from the bar. 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 affect 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.

Full list of available parameters to remove individual identifiers:

| bhl = no | biolib = no | eol = no | gbif = no | plantlist = no | tropicos = no | itis = no | iucn = no | ncbi = no | grin = no | fossilworks = no | worms = no | fishbase = no | msw = no | ipni = no | mycobank = no | algaebase = no | indexfungorum = no | fna = no | foc = no | vascan = no | zoobank = no | watson = no | plants = no | grassbase = no | faunaeuropaea = no | conifers = no | lpsn = no | plazi = no | avibase = no | afpd = no | species = no | xeno-canto = no | panartic = no |

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

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


And on Sequoiadendron giganteum, the result:


As a metadata template, the Taxonbar template should be placed after the external links section and navigation templates, right before the Authority control template.

Blue jay, Agaricus bisporus, Quercus alba, Rudbeckia hirta, Chinchilla, Chinchilla chinchilla

The template can get its information from the following properties on Wikidata:

ParameterTypeProperty ID
bhlBHLp687
biolibBioLibp838
eolEoLp830
gbifGBIFp846
plantlistPlantListp1070
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


Template editing - Todo 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.

इहो देखल जाय

[संपादन करीं]