Difference between revisions of "Template:Examine Wikidata item/doc"
Jump to navigation
Jump to search
imported>RexxS (create documentation) |
imported>RexxS (typo) |
||
| Line 3: | Line 3: | ||
A wrapper template for the examine call in [[Module:WikidataIB]]. | A wrapper template for the examine call in [[Module:WikidataIB]]. | ||
| − | The | + | The template takes two parameters: the propertyID and the entityID. These may be unnamed or given as {{para|pid}} and {{para|qid}} or any combination. |
The propertyID must begin with "P" and the entityID must begin with "Q". | The propertyID must begin with "P" and the entityID must begin with "Q". | ||
| Line 13: | Line 13: | ||
: Examining {{q|Q1396889}} {{q|P18}} | : Examining {{q|Q1396889}} {{q|P18}} | ||
| − | All of the following produce the same result | + | All of the following produce the same result: |
* <code><nowiki>{{examine |pid=P18 |qid=Q1396889}}</nowiki></code> | * <code><nowiki>{{examine |pid=P18 |qid=Q1396889}}</nowiki></code> | ||
* <code><nowiki>{{examine |P18 |qid=Q1396889}}</nowiki></code> | * <code><nowiki>{{examine |P18 |qid=Q1396889}}</nowiki></code> | ||
Revision as of 14:19, 21 July 2018
| This is a documentation subpage for Template:Examine Wikidata item. It contains usage information, categories and other content that is not part of the original template page. |
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
- Example
- Examining Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q1396889) Lua error in Module:Wd at line 196: 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 |Q1396889 |P18}}
Result:
Lua error in Module:WikidataIB at line 3063: attempt to index field 'wikibase' (a nil value).