Template:Avibase/sandbox
Jump to navigation
Jump to search
Template:PAGENAMEBASE on Avibase
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. |
Template:Uses Wikidata Template:Tracks Wikidata
This template uses Lua: |
Contents
Purpose
The template is for making external links to the Avibase ornithology taxonomy database.
Format
|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 Taxomic Serial Number).
Example of usage
Get data from Wikidata
*{{avibase}}
Use page name
*{{avibase|1BB50DE8362A4963}}
will be displayed as
- "[[:Template:PAGENAMEBASE]]". Avibase. URL–wikilink conflict (help)Script error: No such module "EditAtWikidata".Template:WikidataCheck
Full
*{{avibase|1BB50DE8362A4963|Turdus merula}}
will be displayed as
- "Turdus merula". Avibase.Script error: No such module "EditAtWikidata".Template:WikidataCheck
Tracking categories
- Category:Avibase ID not in Wikidata (0)
- Category:Avibase ID different from Wikidata (0)
- Category:Avibase ID same as Wikidata (0)
- Category:Avibase template with no id set (exists in template, not created)
See also
The above documentation is transcluded from Template:Avibase/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |