Template:Avibase/sandbox
Appearance
![]() | This is the template sandbox page for Template:Avibase (diff). See also the companion subpage for test cases. |
![]() | This template is a Citation Style 1 wrapper template based on {{Cite web}}. For centralised Citation Style 1 discussions, see Help talk:Citation Style 1. |
![](http://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Wikidata-logo.svg/40px-Wikidata-logo.svg.png)
This template uses the Wikidata property:
Avibase taxon ID (P2026) (see uses)
![]() | This template uses Lua: |
Purpose
[edit]The template is for making external links to the Avibase ornithology taxonomy database.
Format
[edit]|id=
- slug of Avibase page URL; if no value is entered, the template will attempt to fetch it from Wikidata|name=
- text to display; defaults to page name of no value is entered
{{avibase|id|name}}
The Avibase ID can be found in the search results for that species. (Note this is not the same as the Taxonomic Serial Number).
Example of usage
[edit]Get data from Wikidata
[edit]*{{avibase}}
Use page name
[edit]*{{avibase|1BB50DE8362A4963}}
will be displayed as
- "Avibase/sandbox". Avibase.
Full
[edit]*{{avibase|1BB50DE8362A4963|Turdus merula}}
will be displayed as
- "Turdus merula". Avibase.
Tracking categories
[edit]- Category:Avibase ID not in Wikidata (25)
- Category:Avibase ID different from Wikidata (12)
- Category:Avibase ID same as Wikidata (63)
- Category:Avibase template with no id set (exists in template, not created)