امتداد:مساهمون

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:Contributors and the translation is 29% complete.
Other languages:
English • ‎Türkçe • ‎français • ‎polski • ‎português • ‎português do Brasil • ‎العربية • ‎中文 • ‎日本語
الدليل المرجعي لامتدادات ميدياويكي
OOjs UI icon advanced.svg
Contributors
حالة الإصدار مستقر
Contributors.png
تنفيذ نشاط المستخدم , صفحة خاصة
بيان يوجز أهم أبرز مساهمين في مقالة ما
المؤلف/المؤلفون Rob Church (original), Yaron Koren, Ike Hecht
آخر إصدار 2.0 (2015-07-08)
MediaWiki 1.25+
PHP 5.4+
تغييرات قاعدة البيانات نعم
جداول contributors
ترخيص رخصة جنو العمومية 2.0 أو ما بعدها
التنزيل
  • $wgContributorsLimit
  • $wgContributorsLinkUsers
  • $wgContributorsThreshold
ترجم الامتداد Contributors لو كان متوفرا على translatewiki.net

طالع مصفوفة الاستخدام والإصدارات.

المسائل المهام المفتوحة · الإبلاغ عن عطل تقني

The Contributors extension provides an includable special page which summarizes the most prominent contributors to an article.

The page can be accessed as a normal special page, or included into other pages to provide an automated list, which is useful for attribution.

التنصيب

  • نزّل الملف/الملفات وضعها في دليل يحمل اسم ‎Contributors داخل مجلد ‎extensions/‎ لديك.
  • أضف الكود التالي في الجزء الأسفل من LocalSettings.php:
    require_once "$IP/extensions/Contributors/Contributors.php";
    
  • شغل نص التحديث البرمجي الذي سوف ينشئ تلقائيا جداول قاعدة البيانات الضرورية التي يحتاج إليها الامتداد.
  • Run the script that will populate the database with contributors from existing articles:
php extensions/Contributors/maintenance/PopulateContributorsTable.php
  • Yes تم التنفيذ – اذهب إلى Special:Version على موقع الويكي لديك كي تتحقق من أن الامتداد قد ثبت بنجاح.

الاستخدام

The list can be accessed as a conventional special page, or through inclusion into another page.

الصفحات الخاصة

The special page is located at "Special:Contributors" and provides an interface to select an article.

You can also access this page using the "main contributors" link in the toolbox when viewing an article; the results for that page will be shown.

الاستدعاء

You can transclude a list of names into another page using the inclusion mechanism, e.g.

{{Special:Contributors/Article}}

You can also create a template with the following code on it, and add it to your articles.

{{Special:Contributors/{{FULLPAGENAME}}}}

will produce a list of the most prominent contributors to Article.

الترتيب

By default, the list is sorted by number of edits, in descending order. It is possible to sort by user name and to switch the order to ascending.

This is done with a parser function. For example:

{{#contributors:{{FULLPAGENAME}}|sortuser|asc}}

This switches the sort to be alphabetical by user name, ascending. These options are also available at Special:Contributors.

معاملات

  • $wgContributorsLinkUsers links the user names to their User page.

Doesn't affect the Special page, which is always linked. (default true)

معايير الناتج

This extension lists "prominent contributors" to a page.

The default behaviour will show all contributors, in order of number of edits, if the number of contributors is ten or less. Once the limit is hit, contributors with over two edits will continue to be listed.

Contributors who are not listed are acknowledged as "X others".

These limits can be changed:

  • $wgContributorsLimit defines the "intelligent cut-off" limit (default 10)
  • $wgContributorsThreshold defines the edit threshold for additional users (default 2)

سجل التغييرات

A complete log of changes to the extension code (including internationalisation updates from third parties) is available from git.

However, summarized information on changes between point releases is given below. Each point release is tagged in git.

الإصدار تاريخ الإصدار تعليقات
2.0.0 2015-07-10 Change default behavior to link the user name, with option to not link
1.5.0 2014-10-07 Remove sorting options from SpecialPage inclusion, add parser function with sorting options
1.1.0 2014-06-13 Modernize code, add sorting options
1.0.1-beta 2008-01-09 Beta release using wfLoadExtensionMessages
1.0.0-beta2 2006-12-23 Beta release
1.0.0-beta1 2006-06-01 Minor bug fix

انظر أيضا