MediaWiki API 說明
此頁為自動產生的 MediaWiki API 說明文件頁面。
說明文件與範例:https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=feedcontributions
(main | feedcontributions)
- 此模組需要讀取權限。
- 來源:MediaWiki
- 授權條款:GPL-2.0-or-later
回傳使用者貢獻摘要。
具體參數:
其他通用參數可用。
- feedformat
摘要的格式。
- 單值:atom、rss
- 預設值:rss
- user
要取得哪些使用者的貢獻。
- 此為必填參數。
- 類型:使用者,按任何使用者名稱、IP、臨時使用者、IP 範圍、跨 wiki 名稱(例如:"prefix>ExampleName")和使用者 ID(例如:"#12345")
- namespace
要篩選貢獻的命名空間。
- 單值:0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、274、275、710、711、828、829
- year
起始年份(更早之前)。
- 類型:整數
- month
起始月份(更早之前)。
- 類型:整數
- tagfilter
篩選有這些標籤的貢獻。
- 多值 (以 | 或 alternative 分隔):Antibadwords、Automation tool、Badwords、Bot、FromOther、Nuke、Popups、VariantConverter、abusefilter-condition-limit、disambiguator-link-added、discussiontools、discussiontools-added-comment、discussiontools-edit、discussiontools-newtopic、discussiontools-reply、discussiontools-source、discussiontools-source-enhanced、discussiontools-visual、editcheck-newcontent、editcheck-newreference、editcheck-reference-decline-common-knowledge、editcheck-reference-decline-irrelevant、editcheck-reference-decline-other、editcheck-reference-decline-uncertain、editcheck-references、editcheck-references-activated、h1、hide模板被縮進、invisibleCharacter、moderation-merged、mw-blank、mw-changed-redirect-target、mw-contentmodelchange、mw-manual-revert、mw-new-redirect、mw-removed-redirect、mw-replace、mw-reverted、mw-rollback、mw-server-side-upload、mw-undo、player in ref、poll投票檢查、test、visualeditor、visualeditor-needcheck、visualeditor-switched、visualeditor-wikitext、wikieditor、wikilove、使用了RegexParserFunctions、使用了Sm2Shim、信息模板外鏈圖片、內外鏈誤寫、內容極短、在非(主)名字空間頁面使用錯誤頁頂模板、大段刪除、封禁申訴、幽默模板誤用、收錄存疑、敏感內容、方括號不配對、無關外鏈、標記版權侵犯、標題中添加ref、段首空兩格、測試性編輯、添加不可見字符、添加屏蔽更新姬推送的模板、添加或移除編輯戰模板、清空章節、用戶頁誤使用分類或人物信息模板、疑似刪除討論串、疑似外鏈調用內部文件、疑似插入外部宣傳鏈接、疑似敏感用詞、疑似添加Unicode新版用字、疑似添加Unicode私用區字符、疑似添加喊話內容、疑似添加用戶頁面鏈接、疑似留下警告、疑似移除早期條目、移除屏蔽更新姬推送的模板、類似模板多次調用、編輯他人用戶頁、錯誤模板使用、非https地址插入、預加載模板殘留內容 或 模板圖片出錯
- 值的最大數目為 50(用於客戶端允許的較高限制為 500)。
- 預設值:(空)
- deletedonly
僅顯示已刪除的貢獻。
- 類型:布林值(詳細資訊)
- toponly
只顯示最新修訂的編輯。
- 類型:布林值(詳細資訊)
- newonly
只顯示建立頁面的編輯。
- 類型:布林值(詳細資訊)
- hideminor
隱藏小編輯。
- 類型:布林值(詳細資訊)
- showsizediff
顯示修訂版本之間的差異大小。
- 類型:布林值(詳細資訊)
範例:
- 返回使用者Example的貢獻。
- api.php?action=feedcontributions&user=Example [在沙盒中開啟]