Difference between revisions of "Template:DescriptionWD"

From blackwiki
Jump to navigation Jump to search
imported>RexxS
(wrapper for call to fetch item description from Wikidata)
 
imported>RexxS
(doc)
 
Line 1: Line 1:
{{{1|{{#invoke:RexxS |getDescription |qid={{{qid|}}}}}}}}
+
{{{1|{{#invoke:RexxS |getDescription |qid={{{qid|}}}}}}}}<noinclude>
 +
{{Documentation}}</noinclude>

Latest revision as of 10:41, 30 March 2017

Lua error in Module:RexxS at line 132: attempt to index field 'wikibase' (a nil value).

Template documentation[view] [edit] [history] [purge]

When placed on an article page, it displays either the text of the first unnamed parameter or the item description from Wikidata if there is no parameter.

For testing it can accept a named parameter |qid= which allows the description to be fetched from an arbitrary article by its Wikidata id. This makes it an expensive call.

Usage

For example, on the article Priyanka Chopra it will display:

  • {{DescriptionWD}}Lua error in Module:RexxS at line 132: attempt to index field 'wikibase' (a nil value).
  • {{DescriptionWD |Indian actor and singer}} → Indian actor and singer