<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AEditAtWikidata%2Fdoc</id>
	<title>Template:EditAtWikidata/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AEditAtWikidata%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:EditAtWikidata/doc&amp;action=history"/>
	<updated>2026-06-01T09:03:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:EditAtWikidata/doc&amp;diff=36495&amp;oldid=prev</id>
		<title>imported&gt;Samwilson: /* Example */ format examples in table</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:EditAtWikidata/doc&amp;diff=36495&amp;oldid=prev"/>
		<updated>2022-06-28T11:37:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Example: &lt;/span&gt; format examples in table&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{tsh|EAW}}&lt;br /&gt;
{{High-risk| 1,119,395 }}&lt;br /&gt;
{{Documentation subpage}}&lt;br /&gt;
{{Lua sidebar}}&lt;br /&gt;
{{Lua|Module:EditAtWikidata}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Template to display an icon with a tooltip such as &amp;quot;Edit this at Wikidata&amp;quot;.&lt;br /&gt;
* Icon will be linked to the Wikidata entry for the article where this is placed.&lt;br /&gt;
* 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}}.&lt;br /&gt;
* 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.&lt;br /&gt;
* The Wikidata ID can optionally be supplied for testing outside the article (this is an [[WP:EXPENSIVE|expensive call]]).&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{EditAtWikidata}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Outside the article:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{EditAtWikidata |qid=&amp;lt;Qid of article at Wikidata&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Inside another template:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{EditAtWikidata |{{{local_parameter|}}} }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To make the link point to the given propertyID at the Wikidata entry:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{EditAtWikidata |pid=&amp;lt;PropertyID&amp;gt; |local_parameter}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;!-- the template output will be visible when viewed from Template:EditAtWikidata, which has a Wikidata item --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! !! Wikitext !! Output&lt;br /&gt;
|-&lt;br /&gt;
| With no parameters: || {{demo|br=&amp;lt;td&amp;gt;|&amp;lt;nowiki&amp;gt;{{EditAtWikidata}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
|-&lt;br /&gt;
| Linking to a different Wikidata item: || {{demo|br=&amp;lt;td&amp;gt;|&amp;lt;nowiki&amp;gt;{{EditAtWikidata|qid=Q42}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
|-&lt;br /&gt;
| Linking to a specific property in an item: || {{demo|br=&amp;lt;td&amp;gt;|&amp;lt;nowiki&amp;gt;{{EditAtWikidata|qid=Q42|pid=P735}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Hide the edit-at-Wikidata link?&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;To prevent display of the Wikidata link. Useful for templates that add local overrides.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;qid&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Item ID&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;ID (Q-number) of the item to be edited at Wikidata.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;Q42&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;ID of the current page.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;pid&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Property or claim ID&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;ID of the property to be edited at Wikidata. Can also be a &amp;#039;claim ID&amp;#039;, to link to a particular value within a property (when there are multiple).&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;P1082&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;nbsp&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Non-breaking space&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Replaces the leading space with a non-breaking space&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
			&amp;quot;autovalue&amp;quot;: &amp;quot;yes&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;paramOrder&amp;quot;: [&lt;br /&gt;
		&amp;quot;pid&amp;quot;,&lt;br /&gt;
		&amp;quot;nbsp&amp;quot;,&lt;br /&gt;
		&amp;quot;1&amp;quot;,&lt;br /&gt;
		&amp;quot;qid&amp;quot;&lt;br /&gt;
	],&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;,&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Link to an item on Wikidata, with a tooltip such as \&amp;quot;Edit this at Wikidata\&amp;quot;.&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Template:EditOnWikidata]], a similar template using text instead of an icon&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Wikidata templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Samwilson</name></author>
	</entry>
</feed>