Content deleted Content added
→Usage: update documenttion |
Added the page to Category:Module documentation pages |
||
(8 intermediate revisions by 8 users not shown) | |||
Line 1:
{{Module rating |protected}}
<!-- Please place template categories where indicated at the bottom of this page
{{high use|1134971}}
{{Lua sidebar}}
Module 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.
Line 7 ⟶ 10:
== Usage ==
To always display the icon:
* <code><nowiki>{{#invoke:EditAtWikidata|showMessage}}</nowiki></code>
:{{#invoke:EditAtWikidata|showMessage}}
To display the icon depending on a local parameter not existing:
* <code><nowiki>{{#invoke:EditAtWikidata|showMessage|local_parameter}}</nowiki></code>
:{{#invoke:EditAtWikidata|showMessage|local_parameter}}
To test the functionality outside of an article:
* <code><nowiki>{{#invoke:EditAtWikidata|showMessage|qid=<ArticleID>|local_parameter}}</nowiki></code>
:{{#invoke:EditAtWikidata|showMessage|qid=<ArticleID>|local_parameter}}
To make the link point to the given property at the Wikidata entry:
* <code><nowiki>{{#invoke:EditAtWikidata|showMessage|pid=<PropertyID>|local_parameter}}</nowiki></code>
:{{#invoke:EditAtWikidata|showMessage|pid=<PropertyID>|local_parameter}}
== See also ==
* [[Template:EditAtWikidata]]
<!-- Categories below this line, please; interwikis at Wikidata -->▼
[[Category:Wikidata modules]]
[[Category:Modules using data from Wikidata]]
}}</includeonly><noinclude>
[[Category:Module documentation pages]]
</noinclude>
|