Template:Dump/doc

From blackwiki
< Template:Dump
Revision as of 13:35, 10 June 2018 by imported>Was a bee
Jump to navigation Jump to search

This is wrapper template which provides easy access to Dump function defined in Module:Wikidata.

Function

This template renders raw data of Wikidata item page in JSON-like format (for details, see mw:Wikibase/DataModel/JSON) by using Lua function mw.dumpObject.

Browser interface for 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 same item page in JSON-like format (for details, see mw:Wikibase/DataModel/JSON) rendered by the code {{Dump|id=Q42}}. Real JSON format data is accessible through URL https://www.wikidata.org/wiki/Special:EntityData/Q42.json.
Template usage Result
500px Lua error in Module:Sandbox/Was_a_bee/Dump at line 13: attempt to index field 'wikibase' (a nil value).
Whole raw data is vert long. This template provides function to render specific part of the tree. Partial tree rendered by the code {{Dump|id=Q42|claims|P856|1|mainsnak}}.

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