עזרה של MediaWiki API
זהו דף תיעוד של API שנוצר באופן אוטומטי.
תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API
list=protectedtitles (pt)
- יחידה זו דורשת הרשאות קריאה.
- היחידה הזאת יכולה להיות מחולל.
List all titles protected from creation.
פרמטרים:
- ptnamespace
Only list titles in these namespaces.
- ערכים (מופרדים באמצעות "|"): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
- ptlevel
Only list titles with these protection levels.
- ערכים (מופרדים באמצעות "|"): autoconfirmed, sysop
- ptlimit
How many total pages to return.
- המספר המרבי המותר הוא 500 (עבור בוטים – 5,000).
- ברירת מחדל: 10
- ptdir
באיזה כיוון למספר:
- newer
- לרשום את הישנים ביותר בהתחלה. לתשומת לבך: ptstart חייב להיות לפני ptend.
- older
- לרשום את החדשים ביותר בהתחלה (בררת מחדל). לתשומת לבך: ptstart חייב להיות אחרי ptend.
- ערך אחד: newer, older
- ברירת מחדל: older
- ptstart
Start listing at this protection timestamp.
- ptend
Stop listing at this protection timestamp.
- ptprop
Which properties to get:
- timestamp
- Adds the timestamp of when protection was added.
- user
- Adds the user that added the protection.
- userid
- Adds the user ID that added the protection.
- comment
- Adds the comment for the protection.
- parsedcomment
- Adds the parsed comment for the protection.
- expiry
- Adds the timestamp of when the protection will be lifted.
- level
- Adds the protection level.
- ערכים (מופרדים באמצעות "|"): timestamp, user, userid, comment, parsedcomment, expiry, level
- ברירת מחדל: timestamp|level
- ptcontinue
כשיש עוד תוצאות, להשתמש בזה בשביל להמשיך.
דוגמאות:
- List protected titles.
- api.php?action=query&list=protectedtitles
- Find links to protected titles in the main namespace.
- api.php?action=query&generator=protectedtitles&gptnamespace=0&prop=linkshere