وحدة:PropertyLink/شرح

من موسوعة المزرعة
اذهب إلى التنقل اذهب إلى البحث

هذه صفحة توثيق لوحدة:PropertyLink

This module can be used for advance linking, according to Wikidata. It includes the following functions:

  • property - get a link according to wikidata claim
    • Parameters: property (e.g p123)
    • Example: in أسد {{#invoke:PropertyLink|property|p171}} - will give نمر (جنس). It is better to use this function and not [[{{#property:p171}}]] as the property gives the label in Wikidata, while this function will use the correct sitelink.
  • label: gives the label in wikidata (no [[لينك]])
    • Parameters: property (e.g p123)
  • imageLink: Get a related file to be used in the article
    • Parameters:
      • 1 param (optional) - Property to get commons link. If not specified it uses d:Property:p18 (a generic property for image in wikidata)
      • width - default 220px