Difference between revisions of "Template:Avibase/doc"

From blackwiki
Jump to navigation Jump to search
imported>Pigsonthewing
imported>Zyxw
(add links to tracking categories)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
{{cs1 wrapper|base=Cite web}}
 
{{cs1 wrapper|base=Cite web}}
 
{{Uses Wikidata|P2026}}
 
{{Uses Wikidata|P2026}}
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
+
{{Tracks Wikidata|P2026}}
  
 
==Purpose==
 
==Purpose==
 
 
The template is for making external links to the [http://avibase.bsc-eoc.org Avibase] ornithology taxonomy database.
 
The template is for making external links to the [http://avibase.bsc-eoc.org Avibase] ornithology taxonomy database.
  
 
==Format==
 
==Format==
 
 
# {{Para|id}} - slug of Avibase page URL; if no value is entered, the template will attempt to fetch it from [[Wikidata]]
 
# {{Para|id}} - slug of Avibase page URL; if no value is entered, the template will attempt to fetch it from [[Wikidata]]
 
# {{Para|name}} - text to display; defaults to page name of no value is entered
 
# {{Para|name}} - text to display; defaults to page name of no value is entered
Line 20: Line 19:
  
 
=== Get data from Wikidata ===
 
=== Get data from Wikidata ===
 
 
 
<code><nowiki>*{{</nowiki>avibase<nowiki>}}</nowiki></code>
 
<code><nowiki>*{{</nowiki>avibase<nowiki>}}</nowiki></code>
  
 
=== Use page name ===
 
=== Use page name ===
 
 
<code><nowiki>*{{</nowiki>avibase|1BB50DE8362A4963<nowiki>}}</nowiki></code>
 
<code><nowiki>*{{</nowiki>avibase|1BB50DE8362A4963<nowiki>}}</nowiki></code>
  
 
will be displayed as
 
will be displayed as
  
*{{avibase|1BB50DE8362A4963}}
+
* {{avibase|1BB50DE8362A4963}}
  
 
=== Full ===
 
=== Full ===
 
 
<code><nowiki>*{{</nowiki>avibase|1BB50DE8362A4963|Turdus merula<nowiki>}}</nowiki></code>
 
<code><nowiki>*{{</nowiki>avibase|1BB50DE8362A4963|Turdus merula<nowiki>}}</nowiki></code>
  
Line 39: Line 34:
  
 
*{{avibase|1BB50DE8362A4963|Turdus merula}}
 
*{{avibase|1BB50DE8362A4963|Turdus merula}}
 +
 +
==Tracking categories==
 +
* [[:Category:Avibase ID not in Wikidata]] ({{PAGESINCAT:Avibase ID not in Wikidata}} pages)
 +
* [[:Category:Avibase ID different from Wikidata]] ({{PAGESINCAT:Avibase ID different from Wikidata}} pages)
 +
* [[:Category:Avibase ID same as Wikidata]] ({{PAGESINCAT:Avibase ID same as Wikidata}} pages)
 +
* [[:Category:Avibase template with no id set]] (exists in template, not created)
  
 
== See also==
 
== See also==
*{{tl|Field guide birds of the world}}
+
* {{tl|Field guide birds of the world}}
*{{tl|BirdLife}}
+
* {{tl|BirdLife}}
<includeonly>
+
 
 +
<includeonly>{{sandbox other||
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Biology external link templates]]
 
[[Category:Biology external link templates]]
 
[[Category:External link templates]]
 
[[Category:External link templates]]
 +
[[Category:Templates that add a tracking category]]
  
[[de:Vorlage:Avibase]]
+
}}</includeonly>
</includeonly>
 

Revision as of 14:38, 20 October 2016

Template:Uses Wikidata Template:Tracks Wikidata

Purpose

The template is for making external links to the Avibase ornithology taxonomy database.

Format

  1. |id= - slug of Avibase page URL; if no value is entered, the template will attempt to fetch it from Wikidata
  2. |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

Tracking categories

See also