Template:Edit on Bharatdata/doc: Difference between revisions
(Created page with "{{Documentation subpage}} {{Lua|Module:WikidataIB}} {{high-use}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Bharatdata (see Bharatpedia:Bharatdata) --> Template to add "edit on Bharatdata" tag in Bharatdata-driven infoboxes If the infobox passes a {{para|noicon}} parameter, then this link will not be displayed when <code>noicon</code> is set to <code>false</code> or <code>no</code>. The default can be set at the infobo...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{Lua|Module: | {{Lua|Module:BharatdataIB}} | ||
{{high-use}} | {{high-use}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Bharatdata (see [[Bharatpedia:Bharatdata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Bharatdata (see [[Bharatpedia:Bharatdata]]) --> |
Latest revision as of 19:17, 21 October 2024
![]() | This is a documentation subpage for Template:Edit on Bharatdata. It contains usage information, categories and other content that is not part of the original template page. |
![]() | This template uses Lua: |
![]() | This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
Template to add "edit on Bharatdata" tag in Bharatdata-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 = {{EditOnBharatdata|noicon={{{noicon|true}}}}}
→ which displays the link in an article whennoicon
is omitted| data100 = {{EditOnBharatdata|noicon={{{noicon|false}}}}}
→ which suppresses the link in an article whennoicon
is omitted
This functionality is the opposite to the noicon parameter of Module:BharatdataIB - 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 Bharatdata in the infobox.
You can specify qid= to link to a specific Bharatdata ID if needed (i.e., in page drafts).
Usage
Code | Result |
---|---|
{{EditOnBharatdata}} |
|
{{EditOnBharatdata|noicon=true}} |
|
{{EditOnBharatdata|noicon=yes}} |
|
{{EditOnBharatdata|noicon=false}} |
|
{{EditOnBharatdata|noicon=no}} |
See also
- Template:EditAtBharatdata , a similar template using an icon instead of text