MediaWiki API 說明

此頁為自動產生的 MediaWiki API 說明文件頁面。

說明文件與範例:https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

list=allusers (au)

main | query | allusers

列舉所有已註冊使用者。

參數:
aufrom

起始列舉的使用者名稱。

auto

終止列舉的使用者名稱。

auprefix

搜尋以此值為開頭的所有使用者。

audir

排序的方向。

單值:ascending、​descending
預設值:ascending
augroup

僅包含在指定群組的使用者。

多值 (以 |alternative 分隔):bot、​bureaucrat、​interface-admin、​suppress、​sysop、​widgeteditor
auexcludegroup

排除指定群組中的使用者

多值 (以 |alternative 分隔):bot、​bureaucrat、​interface-admin、​suppress、​sysop、​widgeteditor
aurights

僅包含有指定權限的使用者。不包含透過由隱含或是自動晉升群組所授予的權限,像是:*、使用者、或是自動確認。

多值 (以 |alternative 分隔):apihighlimits、​applychangetags、​autoconfirmed、​autocreateaccount、​autopatrol、​bigdelete、​block、​blockemail、​bot、​browsearchive、​changetags、​createaccount、​createpage、​createtalk、​delete、​delete-redirect、​deletechangetags、​deletedhistory、​deletedtext、​deletelogentry、​deleterevision、​edit、​editcontentmodel、​editinterface、​editmyoptions、​editmyprivateinfo、​editmyusercss、​editmyuserjs、​editmyuserjson、​editmyuserjsredirect、​editmywatchlist、​editprotected、​editsemiprotected、​editsitecss、​editsitejs、​editsitejson、​editusercss、​edituserjs、​edituserjson、​editwidgets、​hideuser、​import、​importupload、​ipblock-exempt、​managechangetags、​markbotedits、​mergehistory、​minoredit、​move、​move-categorypages、​move-rootuserpages、​move-subpages、​movefile、​nominornewtalk、​noratelimit、​override-export-depth、​pagelang、​patrol、​patrolmarks、​protect、​purge、​read、​reupload、​reupload-own、​reupload-shared、​rollback、​sendemail、​siteadmin、​suppressionlog、​suppressredirect、​suppressrevision、​unblockself、​undelete、​unwatchedpages、​upload、​upload_by_url、​userrights、​userrights-interwiki、​viewmyprivateinfo、​viewmywatchlist、​viewsuppressed、​writeapi
值的最大數目為 50(用於客戶端允許的較高限制為 500)。
auprop

要包含的資訊部份:

blockinfo
添加有關使用者目前封鎖的資訊。
groups
列出使用者所在的群組。這會使用到較多伺服器資源,並且可能會回傳少於限制條件的結果。
implicitgroups
列出使用者自動列入的所有群組。
rights
列出使用者所擁有的權限。
editcount
添加使用者的編輯次數。
registration
若可能的話,添加當使用者註冊時的時間戳記(可能為空白)。
centralids
替使用者添加中心 ID 與附加狀態。
多值 (以 |alternative 分隔):blockinfo、​centralids、​editcount、​groups、​implicitgroups、​registration、​rights
aulimit

要回傳的使用者名稱總數。

類型:整數或max
數值必須在 1 與 500 之間。
預設值:10
auwitheditsonly

僅列出有做過編輯的使用者。

類型:布林值(詳細資訊
auactiveusers

僅列出在最近 30 天裡活躍的使用者。

類型:布林值(詳細資訊
auattachedwiki

auprop=centralids 使用,另外表明使用者是否附加於由此 ID 所識別出的 wiki。