עזרה של MediaWiki API
זהו דף תיעוד של API שנוצר באופן אוטומטי.
תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API
prop=info (in)
- יחידה זו דורשת הרשאות קריאה.
Get basic page information.
פרמטרים:
- inprop
Which additional properties to get:
- protection
- List the protection level of each page.
- talkid
- The page ID of the talk page for each non-talk page.
- watched
- List the watched status of each page.
- watchers
- מספר העוקבים, אם קיבלת הרשאה.
- notificationtimestamp
- The watchlist notification timestamp of each page.
- subjectid
- The page ID of the parent page for each talk page.
- url
- Gives a full URL, an edit URL, and the canonical URL for each page.
- readable
- האם המשתמש יכול להציג דף זה.
- preload
- Gives the text returned by EditFormPreloadText.
- displaytitle
- Gives the way the page title is actually displayed.
- ערכים (מופרדים באמצעות "|"): protection, talkid, watched, watchers, notificationtimestamp, subjectid, url, readable, preload, displaytitle
- intestactions
Test whether the current user can perform certain actions on the page.
- הפרדה בין ערכים נעשית באמצעות | מספר הערכים המרבי הוא 50 (עבור בוטים – 500).
- intoken
- מיושן.
Use action=query&meta=tokens instead.
- ערכים (מופרדים באמצעות "|"): edit, delete, protect, move, block, unblock, email, import, watch
- incontinue
כשיש עוד תוצאות, להשתמש בזה בשביל להמשיך.
דוגמאות:
- Get information about the page Main Page.
- api.php?action=query&prop=info&titles=Main%20Page
- Get general and protection information about the page Main Page.
- api.php?action=query&prop=info&inprop=protection&titles=Main%20Page