امتداد:خصائص الوصلات الشبكية

This page is a translated version of the page Extension:Link Attributes and the translation is 100% complete.
تحذير تحذير: This extension is often confused with the similarly named Extension:LinkAttributes.
الدليل المرجعي لامتدادات ميدياويكي
Link Attributes
حالة الإصدار مستقر
تنفيذ دوال المحلل اللغوي
بيان يضيف دعم الخصائص rel و rev و class إلى الوصلات الشبكية
المؤلف/المؤلفون Toby Inkster, Dennis Roczek, Sam Wilson
آخر إصدار 1.1
MediaWiki >= 1.35.0
تغييرات قاعدة البيانات لا
ترخيص رخصة جنو العمومية 2.0 أو ما بعدها
التنزيل
تنزيلات ربع سنوية 4 (Ranked 134th)
ترجم الامتداد Link Attributes لو كان متوفرا على translatewiki.net

يضيف هذا الامتداد دعم الخصائص rel و rev و class إلى الوصلات الشبكية الخارجية:

  • rel – علاقة معرف الموارد الموحد الموصول بصفته نوع وصلات تفصله مسافات.
  • rev – يحدد وصلة شبكية عكسية؛ نقيض الخاصية rel. أصبح متقادما بسبب أنه يثير كثير من الارتباك.
  • class – A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements.

الاستخدام

The syntax is a little unorthodox. To set the rel attribute, place one or more tokens in double-parentheses at the end of the link title. e.g.:

  [http://tobyinkster.co.uk/ My website((me home))]

The above would be converted to the following link:

  <a href="http://tobyinkster.co.uk/" rel="me home" class="external">My website</a>

To set the class attribute, the same syntax is used, but tokens which represent classes are prefixed with a dot:

  [http://tobyinkster.co.uk/ My website((me .class1 home .class2))]

Becomes:

  <a href="http://tobyinkster.co.uk/" rel="me home" class="external class1 class2">My website</a>

Similarly, prefixing with a tilde (~) sets the rev attribute.

Tokens may be prefixed by a minus sign (-) to indicate that you don't want to add the token, but remove it. For example:

  [http://tobyinkster.co.uk/ My website((me -.external home))]

Becomes:

  <a href="http://tobyinkster.co.uk/" rel="me home">My website</a>

The "nofollow" rel token is considered untouchable though.

التثبيت

  • نزّل الملف/الملفات وضعها في دليل يحمل اسم ‎Link_Attributes داخل مجلد ‎extensions/‎ لديك.
    يجب على مطوري البرمجيات والمساهمين بالكود البرمجي تثبيت الامتداد من غت بدلا من ذلك، مستخدمين:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Link_Attributes
  • أضف الكود التالي في الجزء الأسفل من ملف LocalSettings.php :
    wfLoadExtension( 'Link_Attributes' );
    
  •   تم التنفيذ – اذهب إلى Special:Version على موقع الويكي لديك كي تتحقق من أن الامتداد قد ثبت بنجاح.

انظر أيضا

  • Extension:LinkAttributes – إعراب برمجي مختلف يستخدم في إضافة الخصائص.
  • T35886