Module:EditAtWikidata/doc

From Omniversalis

This is the documentation page for Module:EditAtWikidata

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[edit]

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}}
https://en.omniversalis.org/wiki/Module:EditAtWikidata/doc
en.omniversalis.org
CC-MAIN-2023-14
37154
application/http; msgtype=response
sha1:BDQ6GBZOVVO7AA2ONDYBV6EUQMCYWXOC
<urn:uuid:1f5a636d-192d-4cdb-9ee4-bd75d932abde>
2023-03-24T07:15:03Z
74.208.203.152
text/html
sha1:PWCJUH6QZOEMW7UZYUTMH6EBPKXFHA4W
<urn:uuid:8de52391-30de-449f-bc85-e481ad0c2846>
https://en.omniversalis.org/wiki/Module:EditAtWikidata/doc
response
<urn:uuid:f3a0490d-33cf-4d62-b876-0e57eb34c3ef>
isPartOf: CC-MAIN-2023-14
publisher: Common Crawl
description: Wide crawl of the web for March/April 2023
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-94
software: Apache Nutch 1.19 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.4-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/