راهنمای واسط برنامه‌نویسی کاربردی مدیاویکی

این یک صفحهٔ مستندات برای واسط برنامه‌نویسی کاربردی مدیاویکی است که به‌طور خودکار ایجاد شده‌است.

مستندات و نمونه‌ها: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

list=recentchanges (rc)

(main | query | recentchanges)
  • این پودمان نیازمند اختیارات خواندن است.
  • This module can be used as a generator.
  • منبع: MediaWiki
  • مجوز: GPL-2.0-or-later

Enumerate recent changes.

پارامترها:
rcstart

برچسب زمانی برای آغاز شمارش از.

نوع: برچسب زمان (قالب‌های مجاز)
rcend

برچسب زمانی برای پایان شمارش.

نوع: برچسب زمان (قالب‌های مجاز)
rcdir

In which direction to enumerate:

newer
List oldest first. Note: rcstart has to be before rcend.
older
List newest first (default). Note: rcstart has to be later than rcend.
یکی از مقدارهای زیر: newer، older
پیش‌فرض: older
rcnamespace

Filter changes to only these namespaces.

مقدارهای (جداشده با | یا جایگزین‌های آن): -1، -2، 0، 1، 2، 3، 4، 5، 6، 7، 8، 9، 10، 11، 12، 13، 14، 15، 100، 101، 102، 103
برای تعیین همهٔ مقدارها از * استفاده کنید.
rcuser

Only list changes by this user.

نوع: کاربر، توسط هریک از نام کاربری، آی‌پی، نام میان‌ویکی (یعنی «پیشوند>نام‌مثال») و شناسهٔ کاربر (مثلاً «#12345»)
rcexcludeuser

Don't list changes by this user.

نوع: کاربر، توسط هریک از نام کاربری، آی‌پی، نام میان‌ویکی (یعنی «پیشوند>نام‌مثال») و شناسهٔ کاربر (مثلاً «#12345»)
rctag

Only list changes tagged with this tag.

rcprop

Include additional pieces of information:

user
Adds the user responsible for the edit and tags if they are an IP. If the user has been revision deleted, a userhidden property will be returned.
userid
Adds the user ID responsible for the edit. If the user has been revision deleted, a userhidden property will be returned.
comment
Adds the comment for the edit. If the comment has been revision deleted, a commenthidden property will be returned.
parsedcomment
خلاصهٔ تجزیه‌شدهٔ ویرایش را اضافه می‌کند. در صورتی که نسخهٔ مرتبط با خلاصه حذف شده‌باشد، یک ویژگی commenthidden برگردانده خواهد شد.
flags
افزودن برچسب برای ویرایش.
timestamp
افزودن زمان ویرایش.
title
Adds the page title of the edit.
ids
Adds the page ID, recent changes ID and the new and old revision ID.
sizes
Adds the new and old page length in bytes.
redirect
Tags edit if page is a redirect.
patrolled
Tags patrollable edits as being patrolled or unpatrolled.
loginfo
Adds log information (log ID, log type, etc) to log entries.
tags
Lists tags for the entry.
sha1
Adds the content checksum for entries associated with a revision. If the content has been revision deleted, a sha1hidden property will be returned.
مقدارهای (جداشده با | یا جایگزین‌های آن): comment، flags، ids، loginfo، parsedcomment، patrolled، redirect، sha1، sizes، tags، timestamp، title، user، userid
پیش‌فرض: title|timestamp|ids
rcshow

Show only items that meet these criteria. For example, to see only minor edits done by logged-in users, set rcshow=minor|!anon.

مقدارهای (جداشده با | یا جایگزین‌های آن): !anon، !autopatrolled، !bot، !minor، !patrolled، !redirect، anon، autopatrolled، bot، minor، patrolled، redirect، unpatrolled
rclimit

How many total changes to return.

نوع: عدد صحیح یا max
The value must be between ۱ and ۵۰۰.
پیش‌فرض: 10
rctype

Which types of changes to show.

مقدارهای (جداشده با | یا جایگزین‌های آن): categorize، edit، external، log، new
پیش‌فرض: edit|new|log|categorize
rctoponly

Only list changes which are the latest revision.

نوع: بولی (جزئیات)
rctitle

Filter entries to those related to a page.

rccontinue

When more results are available, use this to continue.

rcgeneraterevisions

When being used as a generator, generate revision IDs rather than titles. Recent change entries without associated revision IDs (e.g. most log entries) will generate nothing.

نوع: بولی (جزئیات)
rcslot

Only list changes that touch the named slot.

یکی از مقدارهای زیر: main