Difference between revisions of "Template:EditAtWikidata/doc"
Jump to navigation
Jump to search
imported>Tom.Reding m (→top: upd) |
imported>Daask (See also Template:EditOnWikidata) |
||
| Line 30: | Line 30: | ||
[[Help:Wikitext|Wikitext]]: | [[Help:Wikitext|Wikitext]]: | ||
: {{nowiki2|tag=pre|Template:EditAtWikidata{{EditAtWikidata}}}} | : {{nowiki2|tag=pre|Template:EditAtWikidata{{EditAtWikidata}}}} | ||
| + | |||
| + | == See also == | ||
| + | * [[Template:EditOnWikidata]], a similar template using text instead of an icon | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
Revision as of 16:13, 3 March 2019
- REDIRECT Template:High-use
25px This page is a redirect:
|
| 40px | This is a documentation subpage for Template:EditAtWikidata. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | 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
{{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".
See also
- Template:EditOnWikidata, a similar template using text instead of an icon