Module:EditAtWikidata/doc
Appearance
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by RexxS (talk | contribs) at 15:10, 30 August 2016 (create documentation). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision .Revision as of 15:10, 30 August 2016 by RexxS (talk | contribs) (create documentation)
icon This is a documentation subpage for Module:EditAtWikidata.
It may contain usage information, categories and other content that is not part of the original module page.
It may contain usage information, categories and other content that is not part of the original module page.
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.
- This message is only displayed if a local_parameter is not supplied, i.e. when called from a template, it can be coded not to display the message when a local parameter is in use, preventing the value form Wikidata being fetched.
- The qid of a Wikidata entry can optionally be supplied for testing outside the article.
Usage
To display the icon always:
{{#invoke:EditAtWikidata|showMessage}}
To display the icon depending on a local parameter not existing:
{{#invoke:EditAtWikidata|showMessage|local_parameter}}
To test the functionality outside of an article:
{{#invoke:EditAtWikidata|showMessage|qid=<ArticleID|local_parameter}}