imported>Saikishiro (创建页面,内容为“{{NoteTA |G1 = IT |G2 = MediaWiki }} {{High-risk|129594}} {{Documentation subpage}} {{Lua|Module:EditAtWikidata}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> 此模板显示一个图标,其工具提示(悬停提示)为“编辑维基数据链接”。 * 该图标链接到放置该图标的条目所链接的维基数据项。 * 提供可选的命名参数{{para|pid}}…”) |
imported>Saikishiro (创建页面,内容为“{{NoteTA |G1 = IT |G2 = MediaWiki }} {{High-risk|129594}} {{Documentation subpage}} {{Lua|Module:EditAtWikidata}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> 此模板显示一个图标,其工具提示(悬停提示)为“编辑维基数据链接”。 * 该图标链接到放置该图标的条目所链接的维基数据项。 * 提供可选的命名参数{{para|pid}}…”) |
(没有差异)
|
2023年3月7日 (二) 17:04的最新版本
模板样式的src
属性不得为空。
Warning | This template is used on approximately 130,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
模板样式的src
属性不得为空。
File:Edit-copy green.svg | This is a documentation subpage for Template:EditAtWikidata. It contains usage information, categories and other content that is not part of the original template page. |
模板样式的src
属性不得为空。
File:Lua-Logo.svg | This template uses Lua: |
此模板显示一个图标,其工具提示(悬停提示)为“编辑维基数据链接”。
- 该图标链接到放置该图标的条目所链接的维基数据项。
- 提供可选的命名参数
|pid=
可以修改链接以指向数据项中的特定属性。 - 仅在未提供local_parameter时显示。即在模板中嵌入此模板时,可以将主要传入参数作为该参数,从而在不使用维基数据的值而使用本地值时不显示此图标。
- 可以提供维基数据项的qid以便在其他页面中测试(这是一种高开销调用)。
參數及使用方法[编辑源代码]
{{EditAtWikidata}}
在指定条目外:
{{EditAtWikidata |qid=<维基数据上的条目Qid>}}
在一个模板中:
{{EditAtWikidata |{{{local_parameter|}}} }}
使链接指向特定属性:
{{EditAtWikidata |pid=<PropertyID> |local_parameter}}