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}}