Template:EditAtWikidata
Jump to navigation
Jump to search
Lua error in Module:EditAtWikidata at line 36: attempt to index field 'wikibase' (a nil value).
This template is used on approximately 1,120,000 pages. To avoid large-scale disruption and unnecessary server load, any changes to it should first be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can then be added to this page in a single edit. Please consider discussing changes on the talk page before implementing them. |
Related pages |
---|
This template uses Lua: |
Template to display an icon with a tooltip such as "Edit this at Wikidata"
- Icon will be linked to the Wikidata entry for the article where this is placed.
- The link can be modified to point to a specific property in the Wikidata entry by supplying the optional named parameter
|pid=
. - This message is only displayed if a local_parameter is not supplied; i.e. when called from within a template, it can be coded not to display the icon when a local parameter is in use, which means the value from Wikidata is not used.
- The qid of a Wikidata entry can optionally be supplied for testing outside the article (this is an expensive call).
Usage[edit source]
{{EditAtWikidata}}
Outside the article:
{{EditAtWikidata |qid=<Qid of article at Wikidata>}}
Inside another template:
{{EditAtWikidata |{{{local_parameter|}}} }}
To make the link point to the given propertyID at the Wikidata entry:
{{EditAtWikidata |pid=<PropertyID> |local_parameter}}
Example[edit source]
Usage:
- Template:EditAtWikidata{{EditAtWikidata}}
Output:
- Template:EditAtWikidataLua error in Module:EditAtWikidata at line 36: attempt to index field 'wikibase' (a nil value).
Template:EditAtWikidata<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-1">Lua error in Module:EditAtWikidata at line 36: attempt to index field 'wikibase' (a nil value).</span></strong>
See also[edit source]
- Template:EditOnWikidata, a similar template using text instead of an icon
External links[edit source]
- Template:EditAtWikidata at Wikipedia, the free Terran-based encyclopedia that anyone can edit.
The above documentation is transcluded from Template:EditAtWikidata/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |