עזרה של MediaWiki API
זהו דף תיעוד של API שנוצר באופן אוטומטי.
תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API
list=recentchanges (rc)
- יחידה זו דורשת הרשאות קריאה.
- היחידה הזאת יכולה להיות מחולל.
מניית השינויים האחרונים.
פרמטרים:
- rcstart
The timestamp to start enumerating from.
- rcend
The timestamp to end enumerating.
- rcdir
באיזה כיוון למספר:
- newer
- לרשום את הישנים ביותר בהתחלה. לתשומת לבך: rcstart חייב להיות לפני rcend.
- older
- לרשום את החדשים ביותר בהתחלה (בררת מחדל). לתשומת לבך: rcstart חייב להיות אחרי rcend.
- ערך אחד: newer, older
- ברירת מחדל: older
- rcnamespace
Filter changes to only these namespaces.
- ערכים (מופרדים באמצעות "|"): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
- rcuser
Only list changes by this user.
- rcexcludeuser
Don't list changes by this user.
- 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.
- userid
- Adds the user ID responsible for the edit.
- comment
- Adds the comment for the edit.
- parsedcomment
- Adds the parsed comment for the edit.
- flags
- Adds flags for the edit.
- timestamp
- Adds timestamp of the edit.
- 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.
- ערכים (מופרדים באמצעות "|"): user, userid, comment, parsedcomment, flags, timestamp, title, ids, sizes, redirect, patrolled, loginfo, tags, sha1
- ברירת מחדל: title|timestamp|ids
- rctoken
- מיושן.
Use action=query&meta=tokens instead.
- ערכים (מופרדים באמצעות "|"): patrol
- rcshow
Show only items that meet these criteria. For example, to see only minor edits done by logged-in users, set rcshow=minor|!anon.
- ערכים (מופרדים באמצעות "|"): minor, !minor, bot, !bot, anon, !anon, redirect, !redirect, patrolled, !patrolled, unpatrolled
- rclimit
כמה שינויים להחזיר בסך הכול.
- המספר המרבי המותר הוא 500 (עבור בוטים – 5,000).
- ברירת מחדל: 10
- rctype
אילו סוגים של שינויים להציג.
- ערכים (מופרדים באמצעות "|"): edit, external, new, log
- ברירת מחדל: edit|new|log
- rctoponly
Only list changes which are the latest revision.
- rccontinue
כשיש עוד תוצאות, להשתמש בזה בשביל להמשיך.
דוגמאות:
- הצגת השינויים האחרונים.
- api.php?action=query&list=recentchanges
- Get page info about recent unpatrolled changes.
- api.php?action=query&generator=recentchanges&grcshow=!patrolled&prop=info