跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
最近更改
随机页面
MediaWiki帮助
代码酷
搜索
搜索
中文(中国大陆)
外观
创建账号
登录
个人工具
创建账号
登录
未登录编辑者的页面
了解详情
贡献
讨论
编辑“︁
模板:EditAtWikidata/doc
”︁
模板
讨论
大陆简体
阅读
编辑源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
编辑源代码
查看历史
常规
链入页面
相关更改
特殊页面
页面信息
外观
移至侧栏
隐藏
您的更改会在有权核准的用户核准后向读者展示。
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
{{tsh|EAW}} {{High-risk| 1,119,395 }} {{Documentation subpage}} {{Lua sidebar}} {{Lua|Module:EditAtWikidata}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> Template to display an icon with a tooltip such as "Edit this at Wikidata". * Icon will be linked to the Wikidata entry for the article where this is placed. * The link can be modified to point to a specific property (or part thereof) in the Wikidata entry by supplying the optional named parameter {{para|pid}}. * This message is only displayed if parameter {{para|1}}} is empty; i.e. when called from within a template, it can be coded not to display the icon, which means the value from Wikidata is not used. * The Wikidata ID can optionally be supplied for testing outside the article (this is an [[WP:EXPENSIVE|expensive call]]). == Usage == * <code><nowiki>{{EditAtWikidata}}</nowiki></code> Outside the article: * <code><nowiki>{{EditAtWikidata |qid=<Qid of article at Wikidata>}}</nowiki></code> Inside another template: * <code><nowiki>{{EditAtWikidata |{{{local_parameter|}}} }}</nowiki></code> To make the link point to the given propertyID at the Wikidata entry: * <code><nowiki>{{EditAtWikidata |pid=<PropertyID> |local_parameter}}</nowiki></code> == Example == <!-- the template output will be visible when viewed from Template:EditAtWikidata, which has a Wikidata item --> {|class="wikitable" ! !! Wikitext !! Output |- | With no parameters: || {{demo|br=<td>|<nowiki>{{EditAtWikidata}}</nowiki>}} |- | Linking to a different Wikidata item: || {{demo|br=<td>|<nowiki>{{EditAtWikidata|qid=Q42}}</nowiki>}} |- | Linking to a specific property in an item: || {{demo|br=<td>|<nowiki>{{EditAtWikidata|qid=Q42|pid=P735}}</nowiki>}} |- | Suppressing the edit link: || {{demo|br=<td>|<nowiki>{{EditAtWikidata|value}}</nowiki>}} |} ==TemplateData== <templatedata> { "params": { "1": { "label": "Hide the edit-at-Wikidata link?", "description": "To prevent display of the Wikidata link. Useful for templates that add local overrides.", "type": "boolean" }, "qid": { "label": "Item ID", "description": "ID (Q-number) of the item to be edited at Wikidata.", "example": "Q42", "type": "string", "default": "ID of the current page." }, "pid": { "label": "Property or claim ID", "description": "ID of the property to be edited at Wikidata. Can also be a 'claim ID', to link to a particular value within a property (when there are multiple).", "example": "P1082", "type": "string", "suggested": true }, "nbsp": { "label": "Non-breaking space", "description": "Replaces the leading space with a non-breaking space", "type": "boolean", "autovalue": "yes" } }, "paramOrder": [ "pid", "nbsp", "1", "qid" ], "format": "inline", "description": "Link to an item on Wikidata, with a tooltip such as \"Edit this at Wikidata\"." } </templatedata> == See also == * [[Template:EditOnWikidata]], a similar template using text instead of an icon <includeonly>{{sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Wikidata templates]] }}</includeonly>
摘要:
请注意,所有对代码酷的贡献均被视为依照知识共享署名-非商业性使用-相同方式共享发表(详情请见
代码酷:著作权
)。如果您不希望您的文字作品被随意编辑和分发传播,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
该页面使用的模板:
模板:Demo
(
编辑
)
模板:Documentation subpage
(
编辑
)
模板:EditAtWikidata
(
编辑
)
模板:Endplainlist
(
编辑
)
模板:High-risk
(
编辑
)
模板:High-use
(
编辑
)
模板:Hlist/styles.css
(
编辑
)
模板:Lua
(
编辑
)
模板:Lua sidebar
(
编辑
)
模板:Lua sidebar/styles.css
(
编辑
)
模板:Mbox
(
编辑
)
模板:No redirect
(
编辑
)
模板:Para
(
编辑
)
模板:Plainlist
(
编辑
)
模板:Plainlist/styles.css
(
编辑
)
模板:Sidebar
(
编辑
)
模板:Strong
(
编辑
)
模板:Template shortcut
(
编辑
)
模板:Terminate sentence
(
编辑
)
模板:Tsh
(
编辑
)
模块:Arguments
(
编辑
)
模块:Demo
(
编辑
)
模块:EditAtWikidata
(
编辑
)
模块:High-use
(
编辑
)
模块:List
(
编辑
)
模块:Lua banner
(
编辑
)
模块:Message box
(
编辑
)
模块:Message box/configuration
(
编辑
)
模块:Message box/ombox.css
(
编辑
)
模块:Navbar
(
编辑
)
模块:Navbar/configuration
(
编辑
)
模块:Navbar/styles.css
(
编辑
)
模块:Redirect
(
编辑
)
模块:Shortcut
(
编辑
)
模块:Shortcut/config
(
编辑
)
模块:Shortcut/styles.css
(
编辑
)
模块:Sidebar
(
编辑
)
模块:Sidebar/configuration
(
编辑
)
模块:Sidebar/styles.css
(
编辑
)
模块:TableTools
(
编辑
)
模块:Transclusion count
(
编辑
)
模块:Transclusion count/data/E
(
编辑
)
模块:Yesno
(
编辑
)