User Messages是一個基於JavaScript開發的討論工具,可以讓維護人員輕鬆地在用戶討論頁留下標準化的信息。管理員與維護姬可以在Special:參數設置中啟用該小工具。
小工具的依賴項:
AxUserMsg添加了"向該用戶發出提醒"的工具連結,單擊可展開UserMessages面板。
subst:
)。UserMessages的一些功能可以被自定義配置。您可以在您的common.js或skin.js裡添加數行代碼來進行自定義配置。
以下列出了常用的配置項和萌百特有的配置項,完整版參見commons:Help:Gadget-UserMessages#Custom_settings
window.AxUserMsgPreSelect = 5;
window.AxUserMsgCustomText = '示例文本'; //可替換為任意文本
window.AxUserMsgNoParse = true;
window.AxUserMsgUseSelect = true;
window.AxUserMsgMaxSelect = 10; //數字任填
window.AxUserMsgUseBuiltinTemplate = false;
window.AxUserMsgCustomTemplate = [ ['Template', "Display", "Summary and display", number-Type, "talk-Summary"], ['Nopenis', "No penises", "Commons doesn't need excessive amount of images depicting genitalia", 128], ];
$(document).on('scriptLoaded', function(evt, st, o) { if (st) { if ('AxUserMsg' === st && o) { o.umTemplate.push(['Template', "Display", "Summary and display", number-Type, "talk-Summary"]); // Example o.umTemplate.push(['Nopenis', "No penises", "Commons doesn't need excessive amount of images depicting genitalia", 128]); } } });
|