API:Watchlist/ja

From MediaWiki.org
Jump to navigation Jump to search

watchlist / wl[edit]

MediaWiki バージョン: 1.10

Get a list of pages on the current user's watchlist that were changed within the given time period. Ordered by time of the last change of the watched page.

パラメーター

  • wlstart: 列挙の始点のタイムスタンプ
  • wlend: 列挙の終点のタイムスタンプ
  • wldir: 列挙する方向
    • older: List most recently changed pages first (default). Note: wlstart has to be later than wlend.
    • newer: List least recently changed pages first. Note: wlstart has to be before wlend.
  • wllimit: 列挙する最大ページ数 (既定値: 10)
  • wlnamespace: これらの名前空間内のみを列挙する
  • wluser: この利用者による変更のみを列挙する
  • wlexcludeuser: この利用者による変更を列挙しない
  • wlowner: The user whose watchlist you want (must be accompanied by wltoken if it's not the currently logged-in user). Remember that using format=json with callback is always in a logged-out environment, meaning wltoken is required even if it's for the supposedly current logged-in user) (New in 1.17. Added in r66539)
  • wltoken: Security token that the wlowner has set in their preferences. (Note: New in 1.17. Added in r66539)
  • wlallrev: Include multiple revisions to the same page. This parameter cannot be used in generator mode
  • wltype: Only list certain types of changes (available from MW1.22wmf4)
    • edit: Regular page edits
    • external: External edits
    • new: Page creations
    • log: Log entries
  • wlshow: Only list revisions that meet these criteria. Conflicting options (such as minor and !minor) cannot be used together
    • minor: 細部の編集のみを列挙する
    • !minor: 細部の編集を列挙しない
    • bot: ボットによる編集のみを列挙する
    • !bot: ボットによる編集を列挙しない
    • anon: 匿名利用者による編集のみを列挙する
    • !anon: 匿名利用者による編集を列挙しない
  • wlprop: Which properties to get
    • user: The user who made the change
    • comment: The edit/log comment
    • parsedcomment: The edit/log comment in HTML format with wikilinks and section references expanded into hyperlinks (New in 1.16. Added in r61761)
    • timestamp: The time and date of the change
    • notificationtimestamp: Adds timestamp of when the user was last notified about the edit
    • title: The title the change was made to (default)
    • ids: The page ID and revision ID (default)
    • sizes: The page size before and after the change
    • patrol: Whether the change is patrolled. Only available to users with the patrol right
    • flags: (default)
      • new: A new page was created
      • minor: The change was a minor edit
      • bot: The change was a bot edit
      • anon: The change was made by a user who wasn't logged in

現在の利用者のウォッチリストの取得

起こりうるエラー

  • code: wlnotloggedin
    • info: You must be logged-in to have a watchlist
  • code: wlpatrol
    • info: patrol property is not available
  • code: wlshow
    • info: Incorrect parameter - mutually exclusive values may not be supplied