Template:Wikidata link

From Wikisource
(Redirected from Template:Reasonator)
Jump to navigation Jump to search
Documentation icon 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.

Usage[edit]

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

Templatedata[edit]

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.

ParameterDescriptionTypeStatus
Wikidata ID1

The Q-number of the item.

Stringrequired
Link text2

The text that will be displayed as the link.

Stringsuggested

Shortcut[edit]

See also[edit]