• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Add to Wikidata

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
(Redirected from Template:+data)
[[[d:Lua error in Module:WikidataIB at line 2818: attempt to index field 'wikibase' (a nil value).|add to Wikidata]]]
Template documentation[view] [edit] [history] [purge]

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
[[[d:Lua error in Module:WikidataIB at line 2818: attempt to index field 'wikibase' (a nil value).|add to Wikidata]]]
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}}
[[[d:Lua error in Module:WikidataIB at line 2818: attempt to index field 'wikibase' (a nil value).|add to Wikidata]]]
{{Add to Wikidata|noicon=true}}
[[[d:Lua error in Module:WikidataIB at line 2818: attempt to index field 'wikibase' (a nil value).|add to Wikidata]]]
{{Add to Wikidata|noicon=yes}}
[[[d:Lua error in Module:WikidataIB at line 2818: attempt to index field 'wikibase' (a nil value).|add to Wikidata]]]
{{Add to Wikidata|noicon=false}}
{{Add to Wikidata|noicon=no}}


See also

  • Template:Edit on Wikidata, a similar template for general use
The above documentation is transcluded from Template:Add to Wikidata/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Add_to_Wikidata&oldid=4573"
Categories:
  • Pages with script errors
  • Wikidata templates
Last edited on 12 November 2021, at 03:43

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 12 November 2021, at 03:43.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop