模板:Taxonbar
此模板被引用于约120,000个页面。 为了避免造成大规模的影响,所有对此模板的编辑应先于沙盒、测试样例或您的沙盒上测试。 测试后无误的版本可以一次性地加入此模板中,但是修改前请务必于讨论页发起讨论。 模板引用数量会自动更新。 |
此模板使用Lua语言: |
相关页面 |
---|
简介
This metadata template links Wikipedia articles to various biological and taxonomic databases. 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 each taxon's corresponding Wikidata entry, but can be overridden in individual articles with locally entered data. Adding the data to Wikidata is preferable.
This project is based on the work of {{Authority Control}} and Wikidata:WikiProject Taxonomy. If you are a template editor or Wikipedia administrator, you may contribute at Module:Taxonbar. Please discuss ideas/thoughts for improvement or use on Template:Taxonbar/talk.
位置
Please place Taxonbar correctly. As a metadata template, Taxonbar should be placed:
- Below all references, footnotes, and external links.
- Below all navigation templates—except Authority control
- Above the Authority control template.
- Above all [[Category:]] and stub template codes in the editor.
使用方法
Add Taxonbar to an article:
- In Source editing mode, insert
{{Taxonbar}}
below all other navigation templates except Authority control. - Click "Show preview" 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 Wikidata:WikiProject Taxonomy and Wikidata:WikiProject Taxonomy/Tutorial.
Basic code:
{{Taxonbar}}
Taxon example
{{Taxonbar}}
when placed in the Scarlet macaw article:
Basic use samples
Taxon identifiers
The template can automatically get its information from the following properties on Wikidata. This is configured in Module:Taxonbar/conf.
参数 | 维基数据ID | 数据库 | 说明 |
---|---|---|---|
aba | P4526 | identifier for a bird taxon, issued by the American Birding Association | |
adw | P4024 | 动物多样性网(ADW)上赋予各动物分类单元的识别码(标识符) | |
afd | P6039 | 澳大利亚动物名录网站中赋予各动物分类单元的识别码(标识符) | |
afromoths | P6093 | identifier for a species on the AfroMoths website | |
algaebase | P1348 | 网站AlgaeBase的连结网址 | |
amphibiaweb | P5036 | 两栖动物网数据库中赋予某个物种的识别码 | |
antweb | P5299 | AntWeb生物分类标识符 | |
aoi | P5003 | 在“印度两栖动物”数据库中,一种两栖类物种的标识符 | |
aofp | P6159 | identifier for a species on the Atlas of Florida Plants website | |
apa | P6137 | identifier for a species on the Alabama Plant Atlas website | |
apdb | P2036 | identifier for a plant taxon, in the Conservatoire et Jardin botaniques de Genève's African Plant Database of scientific names | |
apni | P5984 | 澳大利亚植物名称索引(APNI)中的植物标识符 | |
apsa | P2809 | identifier for a pollen or spore in the Australasian Pollen and Spore Atlas, managed by the Australian National University | |
araneae | P3594 | identifier for a taxon in araneae.nmbe.ch | |
arkive | P2833 | ARKive 数据库中分类单元的标识符 | |
asw | P5354 | identifier for a taxon in the Amphibian Species of the World database | |
atrf | P6904 | Australian Tropical Rainforest Plants | identifier for a plant taxon, in the Australian Tropical Rainforest plants database |
ausfungi | P9076 | identifier for a taxon (a fungus), in the Australian 'Fungi' database | |
auslichen | P9093 | identifier for a taxon (a lichen), in the Australian Lichen database | |
avibase | P2026 | identifier for a species, subspecies, or genus in the global bird database Avibase | |
bacdive | P2946 | identifier for a microorganism, in the BacDive database | |
bamona | P3398 | identifier for taxa in the "Butterflies and Moths of North America" database | |
bhl | P687 | 生物多样性历史文献图书馆 | 生物多样性历史文献图书馆(BHL)中赋予各文献页面的识别码 |
biolib | P838 | 生物分类学数据库BioLib中赋予各分类单元的识别码 | |
birdlife | P5257 | 国际鸟盟数据库为该鸟类分配的标识符 | |
birdlife-australia | P6040 | identifier for a species on the BirdLife Australia website | |
bold | P3606 | 在boldsystems.org 中分类单元的标识符 | |
bto | P4798 | identifier for a bird species or sub-species in the BTO Birds of Britain/ BirdFacts database | |
bugguide | P2464 | BugGuide数据库中赋予各分类单元的识别码 | |
butmoth | P3060 | identifier for a butterfly or moth genus in the UK Natural History Museum's 'Butterflies and Moths of the World' database | |
calflora | P3420 | identifier for a taxon in Calflora | |
cal-ipc | P6176 | identifier for a species on the California Invasive Plant Council website | |
center | P6003 | identifier for a taxon on the Center for Biological Diversity website | |
cms | P6033 | identifier for a taxon on the 'Convention on the Conservation of Migratory Species of Wild Animals' website | |
cnps | P4194 | identifier in the California Native Plant Society database | |
cockroach species file | P6052 | identifier for a taxon on the Cockroach Species File website (old archived version) | |
col-taiwan | P3088 | 台湾物种名录 | 旧版台湾物种名录(taibnet.sinica.edu.tw)中赋予每个物种及种下分类单元的编号 |
conifers | P1940 | identifier for a taxon in the conifers.org database | |
coreoidea species file | P6053 | identifier for a taxon on the Coreoidea Species File website | |
bow | P3444 | identifier for a species or subspecies, in the eBird database | |
ebird | P3444 | identifier for a species or subspecies, in the eBird database | |
ecocrop | P4753 | identifier of a plant used as an agricultural crop in the Ecocrop database | |
ecos | P6030 | identifier for a taxon on the United States' 'Environmental Conservation Online System' website | |
eflorasa | P6933 | identifier for a plant taxon, in the Australian 'South Australian electronic Flora' database | |
eol | P830 | 网络生命大百科项目参考编号 | |
eppo | P3031 | identifier for a taxon in the EPPO Global Database | |
eunis | P6177 | identifier for a species on the European Nature Information System website | |
euring | P3459 | 此物种或亚种在Euring数据库的编号 | |
faunaeuropaea | P1895 | identifier for a taxon in Fauna Europaea | |
faunaeuropaeanew | P4807 | identifier for a taxon at the Fauna Europaea portal launched end of 2016 | |
feis | P6044 | identifier for a taxon on the Fire Effects Information System website | |
fishbase | P938 | 世界鱼类数据库(FishBase)中赋予每个物种的识别码 | |
florabase | P3101 | identifier for a plant taxon, in the Government of Western Australia's FloraBase database | |
flow | P6096 | identifier for a species on the Fulgoromorpha Lists On the Web website | |
fna | P1727 | identifier for a taxon in the Flora of North America database | |
foao | P3100 | identifier for a plant taxon, in the Flora of Australia Online | |
foao2 | P6756 | identifier for a plant taxon, in an Australian Commonwealth database | |
foc | P1747 | Flora of China | 中国植物志英文版(Flora of China)中分类单元的标识符 |
foio | P3795 | identifier for a plant taxon or cultivar in the Flora of Israel Online database | |
fossilworks | P842 | Fossilworks数据库中赋予各分类单元的识别码 | |
fungorum | P1391 | Index Fungorum | Index Fungorum数据库中赋予各真菌分类单元的识别码(标识符) |
gbif | P846 | 全球生物多样性信息网络(GBIF)中赋予各分类单元的识别码(标识符) | |
gisd | P5626 | identifier for a taxon in the IUCN's Global Invasive Species Database | |
gnab | P4715 | identifier for a bird taxon in the Guide to North American Birds on the National Audubon Society website | |
goniat | P5216 | 在古生代菊石在线数据库系统中,一个分类群的标识符 | |
grassbase | P1832 | 草基地中的标识符 - 在线世界草地植物群 | |
grin | P1421 | GRIN 植物分类学 | 网站美国种质资源信息网络的网址 |
ibc | P3099 | identifier for a species of bird, in the Internet Bird Collection database | |
ictv | P1076 | ||
inaturalist | P3151 | iNaturalist数据库中赋予各分类单元的识别码(标识符) | |
ipa | P6161 | identifier for a species on the Invasive Plant Atlas of the United States website | |
ipni | P961 | 国际植物名称索引数据库(IPNI)中赋予各植物分类单元的识别码 | |
irmng | P5055 | 海洋和非海洋属临时登记簿 (IRMNG) 数据库中的学名标识符 | |
isc | P5698 | identifier for a taxon datasheet in the Invasive Species Compendium, produced by the Centre for Agriculture and Bioscience International | |
itis | P815 | 整合分类学信息系统(ITIS)中赋予某个分类单元的识别码 | |
iucn | P627 | 国际自然保护联盟数据库中一个分类单元的标识符; 保护状态来源 | |
lepindex | P3064 | 全球鳞翅目名称索引 | identifier for a Lepidoptera taxon, in the UK Natural History Museum's 'Global Lepidoptera Names Index' |
lob | P5862 | identifier in the Catalogue of Lepidoptera of Belgium | |
lpsn | P1991 | 原核生物标准命名列表 | URL for the website List of Prokaryotic names with Standing in Nomenclature (LPSN) |
mantodea species file | P6055 | identifier for a taxon on the Mantodea Species File website | |
michiganflora | P6103 | 密歇根州植物园网站上物种的标识符 | |
mobotpf | P6034 | identifier for a taxon in Plant Finder, on the Missouri Botanical Garden website | |
mol | P6092 | identifier for a taxon on the Map of Life website | |
mnhn | P6046 | identifier for a taxon on the Muséum national d'histoire naturelle website | |
mona | P4758 | 霍奇斯名录(即“墨西哥以北美洲鳞翅目核对名录”,以及随后的修订版)中的鳞翅目物种的标识符 | |
msw | P959 | 来自世界哺乳动物物种数据库的标识符 | |
mycobank | P962 | 提供权威和全面的真菌名称列表的 MycoBank 数据库给予的编号 | |
nas | P6163 | identifier for a species in the Nonindigenous Aquatic Species database, on the U.S. Geological Survey website | |
nbn | P3240 | identifier of a taxon in the National Biodiversity Network (UK) | |
ncbi | P685 | 美国国家生物技术信息中心生物分类编号 | |
neotropical | P6047 | identifier for a taxon on the Neotropical Birds website | |
noaa | P6049 | identifier for a species on the NOAA Fisheries website | |
nswflora | P3130 | identifier for a plant taxon, in the NSW Flora Online | |
ntflora | P5953 | identifier for a plant taxon, in the Northern Territory (Australia) 'NT Flora' database | |
nzbo | P6048 | identifier for a species on the New Zealand Birds Online website | |
nzor | P2752 | identifier for a taxon names in the New Zealand Organisms Register | |
nzpcn | P7496 | ID of a plant taxon held by the New Zealand Plant Conservation Network | |
obis | P6754 | identifier for a taxon, in the Ocean Biogeographic Information System | |
odnr | P6289 | identifier for a taxon in the Species Guide Index of the Ohio Department of Natural Resources website | |
orthoptera species file | P6050 | identifier for a taxon on the Orthoptera Species File Online website (old version now archived) | |
paldat | P4122 | identifier for a plant species in the Palynological Database (PalDat) for pollen of the University of Vienna | |
panartic | P2434 | identifier for a taxon in the Panarctic Flora | |
pfaf | P4301 | identifier for a plant taxon, in the Plants For A Future database of uses of plants and their parts | |
pfi | P6114 | identifier for a species on the Portal to the Flora of Italy website | |
phasmida species file | P4855 | identifier for a Phasmida taxon, in the Phasmida SpeciesFile website | |
ppe | P6061 | identifier for a taxon at the Plant Parasites of Europe database | |
plantlist | P1070 | 全球植物名录数据库(The Plant List)中赋予每个物种及种下分类单元的标识符(识别码) | |
plants | P1772 | 美国农业部植物数据库中的标识符 | |
plazi | P1992 | identifier for a taxon treatment at Plazi.org | |
powo | P5037 | 世界植物在线数据库(Plants of the World online)中赋予各植物分类单元的标识符(识别码) | |
rd | P5473 | 爬行动物数据库中所有现存爬行动物物种的标识符 | |
rhs | P8765 | identifier for plants listed on the Royal Horticultural Society website | |
sanbi | P6056 | identifier for a species on the Red List of South African Plants website | |
scc | P6057 | identifier for a taxon at the Systematic Catalog of Culicidae | |
sealifebase | P6018 | identifier for a taxon on the SeaLifeBase website | |
seinet | P6209 | identifier for a species on the SEINet website | |
species+ | P2040 | Species+ 数据库中赋予某个分类单元的识别码 | |
sprat | P2455 | 澳大利亚政府环境部管理的物种概况和威胁数据库的标识符 | |
steere | P6035 | identifier for a taxon on the Steere Herbarium website | |
tree of life | P5221 | 生命之树网络项目赋予某个分类单元的识别码 | |
tropicos | P960 | identifier for a taxon name in the Tropicos database | |
tsa | P5397 | identifier for a species in the Animal Sound Archive Berlin | |
ubio | P4728 | 在uBio“Namebank”数据库中的分类群的标识符 | |
vascan | P1745 | identifier for a taxon in the Database of Vascular Plants of Canada | |
watson | P1761 | familyID in Watson & Dallwitz: The families of flowering plants | |
wcsp | P3591 | 世界选定植物科别目录中赋予某个分类单元的识别码 | |
wio | P6285 | identifier for a taxon on the Weeds in Ontario website | |
wisflora | P6227 | identifier for a taxon on the Flora of Wisconsin website | |
woi | P3746 | identifier of a taxon in the Wildflowers of Israel database | |
wfo | P7715 | 世界在线植物志(World Flora Online)中赋予每个植物分类单元的标识符(识别码) | |
worms | P850 | 世界海洋物种目录数据库(WoRMS)中赋予各分类单元的标识符 | |
wsc | P3288 | identifier of a taxon in the World Spider Catalog | |
xeno-canto | P2426 | identifier of a bird species in the Xeno-canto database | |
zoobank | P1746 | 动物园银行(ZooBank )上的名称或命名行为的标识符 |
隐藏特定标识符 (可选)
Individual identifiers listed in the table above can be removed(hidden) from the bar by setting the corresponding parameter to no
. 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 {{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 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:
{{Taxonbar | foc = no | ipni = no| apdb = no }}
On Coffea arabica, the result is:
Excluded databases
These databases are available at Wikidata, but are excluded by default here (en.wiki) for reasons described below.
Wikidata property name | ID | Authority | Description | Language |
---|---|---|---|---|
Template:Taxonbar/ExcludedProperty | Spanish | |||
Template:Taxonbar/ExcludedProperty | Czech | |||
Template:Taxonbar/ExcludedProperty | French | |||
Template:Taxonbar/ExcludedProperty | French | |||
Template:Taxonbar/ExcludedProperty | Swedish | |||
Template:Taxonbar/ExcludedProperty | French | |||
Template:Taxonbar/ExcludedProperty | Catalan | |||
Template:Taxonbar/ExcludedProperty | German | |||
Template:Taxonbar/ExcludedProperty | Dutch | |||
Template:Taxonbar/ExcludedProperty | French | |||
Template:Taxonbar/ExcludedProperty | French | |||
Template:Taxonbar/ExcludedProperty | French | |||
Template:Taxonbar/ExcludedProperty | Russian | |||
Template:Taxonbar/ExcludedProperty | French | |||
Template:Taxonbar/ExcludedProperty | French | |||
Template:Taxonbar/ExcludedProperty | French | |||
Template:Taxonbar/ExcludedProperty | Dutch | |||
Template:Taxonbar/ExcludedProperty | Dutch | |||
Template:Taxonbar/ExcludedProperty | Portuguese |
Additional parameters
Some taxon identifiers not currently in Wikidata can be added via additional parameters, however, adding the data to Wikidata is preferable.
Example:
{{Taxonbar | emonocot = 280381 | Wikispecies = Lilium }}
On Lilium, the result is:
where the taxon identifier in the World Checklist of Selected Plant Families has been added to those picked up from Wikidata.
Parameter | Database | Property URL/Interwiki link |
---|---|---|
eMonocot | eMonocot | http://e-monocot.org/taxon/urn:kew.org:wcs:taxon:$1 |
emonocotfamily | eMonocot | http://e-monocot.org/taxon/urn:kew.org:wcs:family:$1 |
wsc-species | World Spider Catalog | http://www.wsc.nmbe.ch/search?sFamily=&fMt=begin&sGenus=&gMt=begin&sSpecies=&sMt=begin&mMt=exact&multiPurpose=slsid&sMulti=$1 |
wsc-genus | World Spider Catalog | http://www.wsc.nmbe.ch/search?sFamily=&fMt=begin&sGenus=&gMt=begin&sSpecies=&sMt=begin&mMt=exact&multiPurpose=glsid&sMulti=$1 |
wsc-family | World Spider Catalog | http://www.wsc.nmbe.ch/search?sFamily=&fMt=begin&sGenus=&gMt=begin&sSpecies=&sMt=begin&mMt=exact&multiPurpose=flsid&sMulti=$1 |
Wikispecies | Wikispecies | Wikispecies:$1 |
Multiple Wikidata entries
Some taxa will exist under multiple names (synonyms) on Wikidata. To add these synonyms, you can use the |from2=
, |from3=
, etc. parameters to specify their Wikidata IDs. The parameter |from=
/ |from1=
will be automatically determined by the associated Wikidata entry. While not required, it is preferable, from a maintenance perspective, to specify the Wikidata entry via the |from=
/ |from1=
parameter. Parameters |from2=
, etc., can be specified manually; this can be useful if the associated Wikidata entry differs from the taxon name of the en:Wikipedia article.
If there is more than one row, the taxon name from Wikidata will be shown in the leftmost column — to overwrite this, use the |title=
/ |title1=
, |title2=
, |title3=
, etc. parameters. You can add taxon identifiers not present in Wikidata by appending the appropriate number to the end of the parameter name — for example, to add emonocot to the second row, use |emonocot2=
.
For example, {{Taxonbar|from=Q26972265|from2=Q20717272}}
, when placed on the page Dog produces:
The same approach can be used when monotypic taxa have a single article, but there are multiple entries in Wikidata. For example, at Haptanthus, which covers the genus and its sole species, {{Taxonbar|from1=Q15715555|from2=Q133951}}
produces:
Basionyms
Basionyms available on Wikidata (via 基名 (P566)) are automatically appended. You may also manually specify the basionym via |from#=
to customize its location.
For example, both
{{Taxonbar|from1=Q43372357|from2=Q164254}}
and{{Taxonbar|from1=Q43372357|from2=Q164254|from3=Q21977691}}
would produce identical taxonbars for Ponerorchis cucullata:
or {{Taxonbar|from1=Q43372357|from2=Q21977691|from3=Q164254}}
for a customized location:
More taxon examples
Arabica coffee, Coffea arabica
Common Milkweed, Asclepias syriaca
Monarch butterfly, Danaus plexippus
Jaguar, Panthera onca
Eastern bluebird, Sialia sialis
Firefly, Lampyridae
fly agaric, Amanita muscaria
Module editing — to-do list
- Continue to add support for new, useful parameters (search)
Module editing — to-don't list
- Import synonym QIDs via 同物异名 (P1420) from Wikidata (talk)
另请参见
- 帮助:分类单元识别码
- 模块:Taxonbar——支持本模板运作的 Lua 脚本
- 模块:Taxonbar/sandbox
- 模板:Taxonbar/testcases
Other links
- {{ThePlantList}}
- {{Authority control}}
- {{Taxobox}}
- Wikipedia:Automated taxobox system/intro
- Other templates in Category:Biology external link templates
- Other templates in Category:Botany external link templates
Tracking categories
Maintenance required
- Category:Taxonbar pages requiring a Wikidata item(0)
- Category:Taxonbars desynced from Wikidata(0)
- Category:Taxonbars on possible non-taxon pages(0)
- Category:Taxonbars with duplicate from parameters(0)
- Category:Taxonbars with invalid from parameters(0)
- Category:Taxonbars with manual taxon IDs differing from Wikidata(0)
- Category:Taxonbars with unknown parameters(0)
Maintenance desired
- Category:Taxonbars without primary Wikidata taxon IDs(0) — find/add taxon IDs to the primary Wikidata item
- Category:Taxonbars without secondary Wikidata taxon IDs(0) — find/add taxon IDs to secondary Wikidata item(s)
- Category:Taxonbars using manual taxon IDs(0) — migrate IDs to Wikidata, if possible
- Category:Taxonbars with manual taxon IDs identical to Wikidata(0) — remove duplicate(s) on Wikipedia
- Category:Taxonbars without from parameter(0) — add from
Tracking only (no error)
- Category:Taxonbars using multiple manual Wikidata items(0)
- Category:Taxonbars with 20–24 taxon IDs(0)
- Category:Taxonbars with 25–29 taxon IDs(0)
- Category:Taxonbars with 30–34 taxon IDs(0)
- Category:Taxonbars with 35–39 taxon IDs(0)
- Category:Taxonbars with 40+ taxon IDs(0)
- Category:Taxonbars with automatically added basionyms(0)
- Category:Taxonbars with automatically added original combinations(0)
- Category:Taxonbars with automatically added monotypic genera(0)