From a21050d860f56fbbe8386649f017b95ac9834333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=9A=E8=A1=A3=E7=90=B4?= Date: Sat, 4 Jan 2025 21:14:40 +0800 Subject: [PATCH] New UserMessages templates (#588) --- .mailmap | 1 + src/gadgets/UserMessages/MediaWiki:Gadget-UserMessages.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.mailmap b/.mailmap index 890d0195..f322e1c2 100644 --- a/.mailmap +++ b/.mailmap @@ -24,3 +24,4 @@ BearBin <20369414+BearBin1215@users.noreply.github.com> Func 云霞 <37736595+Kumokasumi@users.noreply.github.com> Dreammu <84692291+dreammu@users.noreply.github.com> +SaoMikoto diff --git a/src/gadgets/UserMessages/MediaWiki:Gadget-UserMessages.js b/src/gadgets/UserMessages/MediaWiki:Gadget-UserMessages.js index 9c5f3f0b..99ce6533 100644 --- a/src/gadgets/UserMessages/MediaWiki:Gadget-UserMessages.js +++ b/src/gadgets/UserMessages/MediaWiki:Gadget-UserMessages.js @@ -855,6 +855,9 @@ ["UserMessages/EditWar2", "EditWar", "提醒即将构成编辑战(1=页面名)", umsg.umFlagP2, "编辑战提醒"], ["UserMessages/EditWar3", "EditWar", "警告编辑战用户(1=页面名,2=选填原因)", umsg.umFlagP2 + umsg.umFlagP3, "编辑战警告"], ["UserMessages/FinalWarning", "FinalWarning", "忍耐是有限的(1/2=选填原因,推荐在额外信息填写)", umsg.umFlagP2 + umsg.umFlagP3, "警告:忍耐是有限的"], + ["UserMessages/NavSort", "NavSort", "大家族模板排序错误(1-页面名)", umsg.umFlagP2, "关于大家族模板的排序"], + ["UserMessages/ReplyNoIndentation", "ReplyNoIndentation", "回复他人发言未缩进(1=页面名,2=被回复人)", umsg.umFlagP2 + umsg.umFlagP3, "关于您在讨论区的发言"], + ["UserMessages/OverSpeedEdit", "OverSpeedEdit", "超速编辑", umsg.umFlagUM, "关于您近期的编辑"], ]; const placeholderTemplate = ["", "请选择一个模板(本选项不可使用)", "给你的新留言~", 0]; Object.defineProperties(umsg, {