Template:Edit on Wikidata

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit "Template:Edit on Wikidata/doc" to edit its documentation if it is available. (How does this work?)

Template to add "edit on Wikidata" tag in Wikidata-driven infoboxes

If the infobox passes a |noicon= parameter, then this link will not be displayed when noicon is set to false or no.

The default can be set at the infobox level by coding as either:

  • | data100 = {{Edit on Wikidata|noicon={{{noicon|true}}}}} → which displays the link in an article when noicon is omitted
  • | data100 = {{Edit on Wikidata|noicon={{{noicon|false}}}}} → which suppresses the link in an article when noicon is omitted

This functionality is the opposite to the noicon parameter of Module:WikidataIB - so if you set noicon=True and pass it to both the module and this template, you will only see this template. If you pass noicon=False, this template will be hidden while Lua error in Module:EditAtWikidata at line 30: attempt to index field 'wikibase' (a nil value). will show next to the items fetched from Wikidata in the infobox.

You can specify qid= to link to a specific Wikidata ID if needed (i.e., in page drafts).

Usage

Code Result
{{Edit on Wikidata}}
{{Edit on Wikidata|noicon=true}}
{{Edit on Wikidata|noicon=yes}}
{{Edit on Wikidata|noicon=false}}
{{Edit on Wikidata|noicon=no}}


See also