Template:Wikidata link

From Wikisource
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

A template to create a link to either Wikisource, Wikipedia, Commons, or Reasonator.

Using the specified Wikidata QID, the template checks for the existence of other sitelinks (in this order: en.Wikisource, en.Wikipedia, and Wikimedia Commons) and if one is found links to it. If none is found, it links to Reasonator's human-friendly representation of the item in Wikidata.


Note that the two forms wdl and wikidata link are identical; the former is just a bit shorter to type.

Wikitext Output
{{wdl|Q42}} Douglas Adams
{{wdl|Q60727470}} Alfred Cooper Fryer
{{wikidata link|Q54856396}} Fonts with Representations of the Seven Sacraments: Supplement
{{wikidata link|Q42|Mr Adams}} Mr Adams
{{wikidata link|Q31270355|T.H. Barker}} T.H. Barker
{{wikidata link|Q56053558|Navy Warehouse}} Navy Warehouse


Link to Wikisource, Wikipedia, Commons, or Reasonator, depending on the sitelinks of the given Wikidata item.

Template parameters

This template prefers inline formatting of parameters.

Wikidata ID1

The Q-number of the item.

Link text2

The text that will be displayed as the link.



See also[edit]