MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

(main | query | alllinks)
  • This module requires read rights.
  • This module can be used as a generator.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

تعداد كافة الروابط التي تشير إلى نطاق معين.

Parameters:
alcontinue

When more results are available, use this to continue.

alfrom

عنوان الرابط لبدء التعداد منه.

alto

عنوان الرابط لوقف التعداد منه.

alprefix

البحث عن كل العناوين المرتبطة التي تبدأ بهذه القيمة.

alunique

Only show distinct linked titles. Cannot be used with alprop=ids. When used as a generator, yields target pages instead of source pages.

Type: boolean (details)
alprop

أي قطعة من المعلومات تريد تضمينها:

ids
تضيف معرف الصفحة للصفحة المرتبطة (لا يمكن استخدامها مع alunique).
title
تضيف عنوان الرابط.
Values (separate with | or alternative): ids، title
Default: title
alnamespace

نطاق للتعداد.

One of the following values: -2، -1، 0، 1، 2، 3، 4، 5، 6، 7، 8، 9، 10، 11، 12، 13، 14، 15
Default: 0
allimit

كم عدد مجموع البنود للعودة.

No more than ٥٠٠ (٥٬٠٠٠ for bots) allowed.
Type: integer or max
Default: 10
aldir

The direction in which to list.

One of the following values: ascending، descending
Default: ascending
Examples:
List linked titles, including missing ones, with page IDs they are from, starting at B.
api.php?action=query&list=alllinks&alfrom=B&alprop=ids|title [open in sandbox]
List unique linked titles.
api.php?action=query&list=alllinks&alunique=&alfrom=B [open in sandbox]
Gets all linked titles, marking the missing ones.
api.php?action=query&generator=alllinks&galunique=&galfrom=B [open in sandbox]
يحصل على الصفحات التي تحتوي على وصلات.
api.php?action=query&generator=alllinks&galfrom=B [open in sandbox]