Jump to content
Wikipedia The Free Encyclopedia

Module:EditAtWikidata/doc: Difference between revisions

From Wikipedia, the free encyclopedia

Zyxw (talk | contribs)

5 user groups
Autopatrolled, Extended confirmed users, Page movers, Pending changes reviewers, Template editors
542,408 edits
undo
Content deleted Content added
Line 20: Line 20:
* <code><nowiki>{{#invoke:EditAtWikidata|showMessage|pid=<PropertyID>|local_parameter}}</nowiki></code>
* <code><nowiki>{{#invoke:EditAtWikidata|showMessage|pid=<PropertyID>|local_parameter}}</nowiki></code>
:{{#invoke:EditAtWikidata|showMessage|pid=<PropertyID>|local_parameter}}
:{{#invoke:EditAtWikidata|showMessage|pid=<PropertyID>|local_parameter}}

== See also ==
* [[Template:EditAtWikidata]]

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->

Revision as of 00:36, 19 August 2018

This module is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing.

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 always display the icon:

  • {{#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}}

To make the link point to the given property at the Wikidata entry:

  • {{#invoke:EditAtWikidata|showMessage|pid=<PropertyID>|local_parameter}}

See also


AltStyle によって変換されたページ (->オリジナル) /