Difference between revisions of "Template:Dump/doc"
Jump to navigation
Jump to search
imported>Was a bee |
imported>Was a bee |
||
| Line 5: | Line 5: | ||
== Function == | == Function == | ||
| − | This template shows raw data of Wikidata page in [[JSON]] format. | + | This template shows raw data of [[Wikidata]] page in [[JSON]] format ([[:mw:Wikibase/DataModel/JSON]]). |
{| class="wikitable" | {| class="wikitable" | ||
! Browser interface of [[:d:Q42|Q42]] | ! Browser interface of [[:d:Q42|Q42]] | ||
| Line 14: | Line 14: | ||
|- | |- | ||
|Wikidata item page interface displayed when accessed by browser. The example item is {{Q|Q42}}. | |Wikidata item page interface displayed when accessed by browser. The example item is {{Q|Q42}}. | ||
| − | | style ="width:500px;"|Raw data of the item page. Shown by <code><nowiki>{{Dump|id=Q42}}</nowiki></code>. JSON data is also accessble through URL https://www.wikidata.org/wiki/Special:EntityData/Q42.json. | + | | style ="width:500px;"|Raw data of the item page in [[JSON]] format. Shown by <code><nowiki>{{Dump|id=Q42}}</nowiki></code>. JSON data is also accessble through URL https://www.wikidata.org/wiki/Special:EntityData/Q42.json. |
|} | |} | ||
| Line 30: | Line 30: | ||
<code><nowiki>{{Dump|title=Douglas Adams}}</nowiki></code> | <code><nowiki>{{Dump|title=Douglas Adams}}</nowiki></code> | ||
| + | |||
| + | == See also == | ||
| + | * [[:d:Wikidata:Data_access]] | ||
| + | * [[:mw:Wikibase/DataModel/JSON]] | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
Revision as of 23:35, 9 June 2018
| 40px | This is a documentation subpage for Template:Dump. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
This is wrapper template which provides easy access to Dump function defined in Module:Wikidata.
Contents
Function
This template shows raw data of Wikidata page in JSON format (mw:Wikibase/DataModel/JSON).
| Browser interface of Q42 | Raw data of Q42 |
|---|---|
| 400px | Lua error in Module:Sandbox/Was_a_bee/Dump at line 13: attempt to index field 'wikibase' (a nil value). |
| Wikidata item page interface displayed when accessed by browser. The example item is Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q42). | Raw data of the item page in JSON format. Shown by {{Dump|id=Q42}}. JSON data is also accessble through URL https://www.wikidata.org/wiki/Special:EntityData/Q42.json.
|
Example
- Input
{{Dump|title=Douglas Adams|claims|P856|1|mainsnak}}
- Output
Lua error in Module:Sandbox/Was_a_bee/Dump at line 13: attempt to index field 'wikibase' (a nil value).
Usage
{{Dump}}
{{Dump|id=Q42}}
{{Dump|title=Douglas Adams}}
See also