Jump to content

Template:Add to Wikidata/doc

From Humanipedia
Revision as of 04:45, 12 November 2021 by wikipedia>CactiStaccingCrane (Copy from Template:Edit on Wikidata/doc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Lua error in package.lua at line 80: module 'Module:Yesno' not found. Template to add "add to Wikidata" tag in Wikidata-driven infoboxes. This is used to increase Wikidata import from users.

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 = {{Add to Wikidata|noicon={{{noicon|true}}}}} → which displays the link in an article when noicon is omitted
  • | data100 = {{Add to 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

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
{{Add to Wikidata}}
{{Add to Wikidata|noicon=true}}
{{Add to Wikidata|noicon=yes}}
{{Add to Wikidata|noicon=false}}
{{Add to Wikidata|noicon=no}}


See also