साँचा:EditOnWikidata/doc

मुक्त ज्ञानकोश विकिपीडिया से
< साँचा:EditOnWikidata
imported>Hunnjazal द्वारा परिवर्तित ०६:१५, १७ जुलाई २०१८ का अवतरण (नया पृष्ठ: {{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> Template t...)
(अन्तर) ← पुराना अवतरण | वर्तमान अवतरण (अन्तर) | नया अवतरण → (अन्तर)
नेविगेशन पर जाएँ खोज पर जाएँ

{{

 साँचा:namespace detect

| type = notice | image = | imageright = | class = | style = margin-bottom:1.0em; | textstyle = | text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }} Template to add "edit on Wikidata" tag in Wikidata-driven infoboxes

If the infobox passes a साँचा:para 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 = {{EditOnWikidata|noicon={{{noicon|true}}}}} → which displays the link in an article when noicon is omitted
  • | data100 = {{EditOnWikidata|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
{{EditOnWikidata}}
{{EditOnWikidata|noicon=true}}
{{EditOnWikidata|noicon=yes}}
{{EditOnWikidata|noicon=false}}
{{EditOnWikidata|noicon=no}}