مندرجات کا رخ کریں

سانچہ:EditAtWikidata

آزاد دائرۃ المعارف، ویکیپیڈیا سے
ویکی ڈیٹا پر ترمیم کریں

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 |pid=.
  • This message is only displayed if parameter |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 expensive call).

Usage

[ترمیم]
  • {{EditAtWikidata}}

Outside the article:

  • {{EditAtWikidata |qid=<Qid of article at Wikidata>}}

Inside another template:

  • {{EditAtWikidata |{{{local_parameter|}}} }}

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

  • {{EditAtWikidata |pid=<PropertyID> |local_parameter}}

Example

[ترمیم]
WikitextOutput
With no parameters:
{{EditAtWikidata}}
ویکی ڈیٹا پر ترمیم کریں
Linking to a different Wikidata item:
{{EditAtWikidata|qid=Q42}}
ویکی ڈیٹا پر ترمیم کریں
Linking to a specific property in an item:
{{EditAtWikidata|qid=Q42|pid=P735}}
ویکی ڈیٹا پر ترمیم کریں
Suppressing the edit link:
{{EditAtWikidata|value}}

TemplateData

[ترمیم]

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

محددات سانچہ[انتظام TemplateData]

This template prefers inline formatting of parameters.

پیرامیٹروضاحتطرزحالت
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).

مثال
P1082
اِسٹرنگتجویز کردہ
Non-breaking spacenbsp

Replaces the leading space with a non-breaking space

خودکار قدر
yes
بولیناختیاری
Hide the edit-at-Wikidata link?1

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

بولیناختیاری
Item IDqid

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

طے شدہ
ID of the current page.
مثال
Q42
اِسٹرنگاختیاری