Template:EditAtWikidata
Jump to navigation
Jump to search
Script error: No such module "EditAtWikidata".
This template is used on approximately 1,120,000 pages, or roughly 11686% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
Related pages |
---|
Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
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
{{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
Usage:
- Template:EditAtWikidata{{EditAtWikidata}}
Output:
- Template:EditAtWikidataScript error: No such module "EditAtWikidata".
Script error: No such module "LuaCall".
TemplateData
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Local parameter | 1 | Local parameter, which if supplied will override this template | String | optional |
QID | qid | Q item ID of the item to be edited at Wikidata | Unknown | optional |
PID | pid | Property ID of the property to be edited at Wikidata | Unknown | optional |
Non-breaking space | nbsp | Replaces the leading space with a non-breaking space
| Boolean | optional |
See also
- Template:EditOnWikidata, a similar template using text instead of an icon
This template is based (in parts) on the Template:EditAtWikidata from the free encyclopedia wikipedia and is licensed under GNU license for free documentation and the Creative Commons Attribution/Share Alike. On wikipedia there is a List of authors accessible. More about importing from wikipedia on page Imedwiki:Importing from wikipedia.