User:Peterxy12/AdvancedRollback/zh-yue.js

From Test Wiki
Revision as of 05:52, 25 December 2025 by zhwiki>1F616EMO (// Edited via InPageEdit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/*
 * Advanced Rollback script for rollbackers (Cantonese)
 * 
 * This script asks the user to supply an optional rollback summary.
 * After the rollback is complete, the user is taken to the diff page.
 * The diff page will open in a new window if the user is on Special:RecentChanges.
 * 
 * Add the following line to your common.js or global.js to load this script:
 * mw.loader.load( "https://zh.wikipedia.org/w/index.php?title=User:1F616EMO/AdvancedRollback/zh-yue.js&action=raw&ctype=text/javascript" );
 * 
 * This script is made by 1F616EMO on zhwiki, licensed under CC BY-SA 4.0.
 * 
 * 225-02-16 forked from https://zh.wikipedia.org/wiki/MediaWiki:Gadget-rollback-summary.js
 * 
 */
// <nowiki>

mw.messages.set({
    'rollback-button-quick-revert': '快速回退',

    'rollback-window-title': '回退[[Special:Contributions/$2|$2]]響[[$1]]作出嘅編輯',
    'rollback-window-title-nofrom': '回退響[[$1]]作出嘅編輯',
    'rollback-fieldset-label': '回退[[Special:Contributions/$1|$1]]嘅編輯',
    'rollback-warn-3rr': '最近嘅編輯裏面發現咗三次或以上嘅回退。請確保你冇違反[[Project:3RR|編輯戰]]政策。',
    'rollback-use-rollback': '用回退功能',
    'rollback-intention-unspecified': '唔知',
    'rollback-intention-good': '好心',
    'rollback-intention-vandalism': '擾亂性',

    'rollback-summary-hide-user': '隱藏用戶名',
    'rollback-summary-show-talk-page': '回退後打開討論版',

    'rollback-summary-user-string': '[[Special:Contributions/$1|$1]]([[User talk:$1|傾偈]])',
    'rollback-summary-revdel-user-string': '畀人隱藏咗個名嘅用户',
    'rollback-summary-inappropriate-user-string': '用户名唔恰當嘅用户',

    'rollback-summary-intention': '動機',
    'rollback-summary-unspecified': '回退$1嘅編輯',
    'rollback-summary-good': '取消$1出於[[WP:AGF|好心]]而做嘅編輯',
    'rollback-summary-vandalism': '回退$1可能構成[[:en:WP:DISRUPT|擾亂]]嘅編輯',

    'rollback-summary-undo-unspecified': '取消$2嘅編輯[[Special:diff/$1|$1]]',
    'rollback-summary-undo-good': '取消$2出於[[WP:AGF|好心]]而做嘅編輯[[Special:diff/$1|$1]]',
    'rollback-summary-undo-vandalism': '回退$2可能構成[[:en:WP:DISRUPT|擾亂]]嘅編輯[[Special:diff/$1|$1]]',

    'rollback-summary-undoseries-button': '回退所選修訂之間嘅編輯',
    'rollback-summary-undoseries-groupdiff-button': '全部回退',
    'rollback-summary-undoseries-unspecified': '取消由[[Special:diff/$1|$1]]到[[Special:diff/$2|$2]]嘅編輯',
    'rollback-summary-undoseries-good': '取消由[[Special:diff/$1|$1]]到[[Special:diff/$2|$2]]嘅[[WP:AGF|好心]]編輯',
    'rollback-summary-undoseries-vandalism': '回退由[[Special:diff/$1|$1]]到[[Special:diff/$2|$2]]嘅可能構成[[:en:WP:DISRUPT|擾亂]]嘅編輯',

    'rollback-summary-presets': '預設摘要',
    'rollback-summary-prompt': '請輸入自訂摘要',
    'rollback-summary-custom': '自訂摘要',

    'rollback-processing': '回退緊',
    'rollback-done': '回退咗',
    'rollback-failed': '回退失敗:$1',

    'rolback-failed-href-error': '參數錯咗',

    'advanced-rollback-tag': '// [[w:zh:U:1F616EMO/AdvancedRollback|AdvancedRollback]]',
});

mw.loader.load("https://zh.wikipedia.org/w/index.php?title=User:1F616EMO/AdvancedRollback/core.js&action=raw&ctype=text/javascript");

// </nowiki> Nya~!