Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Example  





3 TemplateData  





4 See also  














Template:EditAtWikidata/sandbox







Add links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Template:EditAtWikidata

Template to display an icon with a tooltip such as "Edit this at Wikidata".

Usage[edit]

Outside the article:

Inside another template:

To make the link point to the given propertyID at the Wikidata entry:

Example[edit]

Wikitext Output
With no parameters:
{{EditAtWikidata}}
Linking to a different Wikidata item:
{{EditAtWikidata|qid=Q42}}
Edit this at Wikidata
Linking to a specific property in an item:
{{EditAtWikidata|qid=Q42|pid=P735}}
Edit this at Wikidata

TemplateData[edit]

Link to an item on Wikidata, with a tooltip such as "Edit this at Wikidata".

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Property or claim IDpid

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
Stringsuggested
Non-breaking spacenbsp

Replaces the leading space with a non-breaking space

Auto value
yes
Booleanoptional
Hide the edit-at-Wikidata link?1

To prevent display of the Wikidata link. Useful for templates that add local overrides.

Booleanoptional
Item IDqid

ID (Q-number) of the item to be edited at Wikidata.

Default
ID of the current page.
Example
Q42
Stringoptional

See also[edit]


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:EditAtWikidata/sandbox&oldid=855580977"

Categories: 
Template sandboxes
Lua-based templates
 



This page was last edited on 19 August 2018, at 10:36 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki