Template:Examine/doc

From Hârn
Jump to navigation Jump to search

A wrapper template for the examine call in Module:WikidataIB.

The template takes two parameters: the propertyID and the entityID. These may be unnamed or given as |pid= and |qid= or any combination.

The propertyID must begin with "P" and the entityID must begin with "Q".

If the entityId is omitted, the template will look at Wikidata for the entity connected to the current page.

Usage[edit source]

Example
Examining [Lua error in Module:Wikibase at line 27: attempt to index field 'wikibase' (a nil value). Lua error in Module:Wikibase at line 40: attempt to index field 'wikibase' (a nil value). (Q1396889)] [Lua error in Module:Wikibase at line 27: attempt to index field 'wikibase' (a nil value). Lua error in Module:Wikibase at line 40: attempt to index field 'wikibase' (a nil value). (P18)]

All of the following produce the same result:

  • {{examine |pid=P18 |qid=Q1396889}}
  • {{examine |P18 |qid=Q1396889}}
  • {{examine |pid=P18 |Q1396889}}
  • {{examine |P18 |Q1396889}}
  • {{examine |qid=Q1396889 |pid=P18}}
  • {{examine |Q1396889 |pid=P18}}
  • {{examine |qid=Q1396889 |P18}}
  • {{examine |Q1396889 |P18}}

Result:

Lua error in Module:I18n at line 6: bad argument #1 to 'pairs' (table expected, got nil).

See also[edit source]