User:Altt311/deletionmgt2.js:修订间差异
外观
删除的内容 添加的内容
merge 'sections' definition from main definition script |
小 Maintenance: Global identifier "$j" has been deprecated mw:ResourceLoader/Migration_guide_(users)#MediaWiki_1.17 |
||
(未显示2个用户的5个中间版本) | |||
第1行: | 第1行: | ||
if(/^Wikipedia:頁面存廢討論\//i.test(wgPageName) ||/^Wikipedia:檔案存廢討論\//i.test(wgPageName) ||/^Wikipedia:删除投票和请求\//i.test(wgPageName) || wgPageName == "Wikipedia:頁面恢復請求" || wgPageName == "Wikipedia:修订版本删除请求"){ |
|||
if ( typeof $j != 'undefined' && typeof $ |
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) { |
||
$ |
$( function() { |
||
$ |
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
||
'sections': { |
'sections': { |
||
'delmgt': { |
'delmgt': { |
||
第10行: | 第10行: | ||
} |
} |
||
} ); |
} ); |
||
$ |
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
||
'section': 'delmgt', |
'section': 'delmgt', |
||
'groups': { |
'groups': { |
||
'csd': { |
|||
'label': '' |
|||
}, |
|||
'afd': { |
'afd': { |
||
'label': '' |
'label': '' |
||
第21行: | 第18行: | ||
} |
} |
||
} ); |
} ); |
||
$ |
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
||
'section': 'delmgt', |
|||
'group': 'csd', |
|||
'tools': { |
|||
'csdselect': { |
|||
label: '快速刪除', |
|||
type: 'select', |
|||
list: { |
|||
'G1': { |
|||
label: 'G1:沒有內容', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'G1', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'G2': { |
|||
label: 'G2:測試頁', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'G2', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'G3': { |
|||
label: 'G3:惡搞/破壞', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'G3', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'G5': { |
|||
label: 'G5:重複創建', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'G5', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'G8': { |
|||
label: 'G8:以便移動', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'G8', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'G10': { |
|||
label: 'G10:原作者提刪', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'G10', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'G11': { |
|||
label: 'G11:廣告', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'G11', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'G12': { |
|||
label: 'G12:負面傳記', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'G12', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'G13': { |
|||
label: 'G13:機器翻譯', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'G13', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'G14': { |
|||
label: 'G14:沒有翻譯', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'G14', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'G15': { |
|||
label: 'G15:孤立頁面', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'G15', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'A1': { |
|||
label: 'A1:沒有內容', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'A1', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'A2': { |
|||
label:'A2:沒有內文', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'A2', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'A3': { |
|||
label:'A3:複製自其他計畫', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'A3', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'R2': { |
|||
label: 'R2:跨空間重定向', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'R1', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'R3': { |
|||
label: 'R3:名稱錯誤重定向', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'R3', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'R5': { |
|||
label: 'R5:循環重定向', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'R5', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'F1': { |
|||
label: 'F1:重複檔案', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'I1', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'F5': { |
|||
label: 'F5:被svg取代', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'F5', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'F6': { |
|||
label: 'F6:孤立圖片', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'F6', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'O1': { |
|||
label: 'O1:自刪用戶頁', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'O1', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'O3': { |
|||
label: 'O3:IP用戶討論頁', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'O3', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'O4': { |
|||
label: 'O4:空的類別', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: 'O4', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'Other': { |
|||
label: '其他原因', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{d|', |
|||
periMsg: '原因', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'delmgt', |
'section': 'delmgt', |
||
'group': 'afd', |
'group': 'afd', |
||
'tools': { |
'tools': { |
||
'afdselect': { |
|||
label: '提請刪除', |
|||
type: 'select', |
|||
list: { |
|||
'Afd': { |
|||
label: '提刪條目', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{afd|', |
|||
periMsg: '原因', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'Ifd': { |
|||
label: '提刪圖像', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{vfd|', |
|||
periMsg: '原因', |
|||
post: '|i}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'Cfd': { |
|||
label: '提刪分類', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{vfd|', |
|||
periMsg: '原因', |
|||
post: '|c}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'Tfd': { |
|||
label: '提刪模板', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{vfd|', |
|||
periMsg: '原因', |
|||
post: '|t}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'Ufd': { |
|||
label: '提刪用戶頁', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{vfd|', |
|||
periMsg: '原因', |
|||
post: '|u}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'Mfd': { |
|||
label: '綜合提刪', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{vfd|', |
|||
periMsg: '原因', |
|||
post: '|m}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'Rfd': { |
|||
label: '提刪重定向', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{vfd|', |
|||
periMsg: '原因', |
|||
post: '|r}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'Wikt': { |
|||
label: '移動到詞典', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{vfd-wikt', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'Quote': { |
|||
label: '移動到語錄', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{vfd-q', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'Book': { |
|||
label: '移動到教科書', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{vfd-b', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
}, |
|||
'Source': { |
|||
label: '移動到文庫', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: '{\{vfd-s', |
|||
post: '}\}\n' |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
'afdvote': { |
'afdvote': { |
||
label: '刪除投票', |
label: '刪除投票', |
||
第867行: | 第465行: | ||
} ); |
} ); |
||
} |
} |
||
} |
2021年10月2日 (六) 19:35的最新版本
if(/^Wikipedia:頁面存廢討論\//i.test(wgPageName) ||/^Wikipedia:檔案存廢討論\//i.test(wgPageName) ||/^Wikipedia:删除投票和请求\//i.test(wgPageName) || wgPageName == "Wikipedia:頁面恢復請求" || wgPageName == "Wikipedia:修订版本删除请求"){
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'sections': {
'delmgt': {
'type': 'toolbar',
'label': '刪除管理'
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'delmgt',
'groups': {
'afd': {
'label': ''
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'delmgt',
'group': 'afd',
'tools': {
'afdvote': {
label: '刪除投票',
type: 'select',
list: {
'Keep': {
label: '保留',
action: {
type: 'encapsulate',
options: {
pre: '{\{vk}\}',
post: '—~~\~~\n'
}
}
},
'SpeedKeep': {
label: '快速保留',
action: {
type: 'encapsulate',
options: {
pre: '{\{vsk}\}',
post: '—~~\~~\n'
}
}
},
'Delete': {
label: '刪除',
action: {
type: 'encapsulate',
options: {
pre: '{\{vd}\}',
post: '—~~\~~\n'
}
}
},
'SpeedDelete': {
label: '快速刪除',
action: {
type: 'encapsulate',
options: {
pre: '{\{vsd}\}',
post: '—~~\~~\n'
}
}
},
'Merge': {
label: '合併',
action: {
type: 'encapsulate',
options: {
pre: '{\{vm}\}',
post: '—~~\~~\n'
}
}
},
'Move': {
label: '移動',
action: {
type: 'encapsulate',
options: {
pre: '{\{vmove}\}',
post: '—~~\~~\n'
}
}
},
'Redirect': {
label: '重定向',
action: {
type: 'encapsulate',
options: {
pre: '{\{vr}\}到[[',
periMsg: '條目',
post: ']]—~~\~~\n'
}
}
},
'ToSource': {
label: '移動到文庫',
action: {
type: 'encapsulate',
options: {
pre: '{\{vms}\}',
post: '—~~\~~\n'
}
}
},
'ToDict': {
label: '移動到詞典',
action: {
type: 'encapsulate',
options: {
pre: '{\{vmd}\}',
post: '—~~\~~\n'
}
}
},
'ToBook': {
label: '移動到教科書',
action: {
type: 'encapsulate',
options: {
pre: '{\{vmb}\}',
post: '—~~\~~\n'
}
}
},
'ToQuote': {
label: '移動到語錄',
action: {
type: 'encapsulate',
options: {
pre: '{\{vmq}\}',
post: '—~~\~~\n'
}
}
}
}
},
'afdvotemgmt': {
label: '投票管理',
type: 'select',
list: {
'container': {
label: '無效票框',
action: {
type: 'encapsulate',
options: {
pre: '{\{\FollowLastIndent|#\|2=',
post: '}\}'
}
}
},
'notQ': {
label: '不合資格',
action: {
type: 'encapsulate',
options: {
pre: '{\{Notqualifiedh}\}',
post: '{\{Notqualifiedf}\}'
}
}
},
'noSign': {
label: '無簽名',
action: {
type: 'encapsulate',
options: {
pre: '{\{Nosignh}\}',
post: '{\{Nosignf}\}'
}
}
},
'dupe': {
label: '重複票',
action: {
type: 'encapsulate',
options: {
pre: '{\{voteduph}\}',
post: '{\{votedupf}\}'
}
}
},
'otherReason': {
label: '其他原因',
action: {
type: 'encapsulate',
options: {
pre: '{\{votevoidh}\}',
post: '{\{votevoidf|原因}\}'
}
}
}
}
},
'afdclose': {
label: '投票完結',
type: 'select',
list: {
'vfdDeleted': {
label: '刪除',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|d}\}\n',
post: '{\{subst:deleted}\}—~~\~~\n{\{delf}\}'
}
}
},
'vfdKept': {
label: '保留',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|k}\}\n',
post: '{\{subst:kept}\}—~~\~~\n{\{delf}\}'
}
}
},
'vfdSpeedlyDeleted': {
label: '快速刪除',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|sd}\}\n',
post: '{\{subst:SpeedyDeleted}\}—~~\~~\n{\{delf}\}'
}
}
},
'vfdSpeedlyKept': {
label: '快速保留',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|sk}\}\n',
post: '----\n快速保留—~~\~~\n{\{delf}\}'
}
}
},
'vfdMoved': {
label: '移動',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|m}\}\n',
post: '----\n已移動—~~\~~\n{\{delf}\}'
}
}
},
'vfdLSSD': {
label: '無來源版權',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|lssd}\}\n',
post: '----\n無來源或版權—~~\~~\n{\{delf}\}'
}
}
},
'vfdImageCopyvio': {
label: '圖片侵權刪除',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|ic}\}\n',
post: '----\n本圖片已確認侵權,刪除。—~~\~~\n{\{delf}\}'
}
}
},
'vfdNoConsensus': {
label: '討論無共識',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|nc}\}\n',
post: '{\{subst:nc}\}—~~\~~\n{\{delf}\}'
}
}
},
'vfdRedirected': {
label: '條目重定向',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|r}\}\n',
post: '----\n已重定向—~~\~~\n{\{delf}\}'
}
}
},
'vfdCategoryRedirected': {
label: '類別重定向',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|cr}\}\n',
post: '----\n已重定向—~~\~~\n{\{delf}\}'
}
}
},
'vfdNowCommons': {
label: '已在共享提供',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|nowcommons}\}\n',
post: '----\n已在共享資源提供,快速刪除—~~\~~\n{\{delf}\}'
}
}
},
'vfdRequestInCommons': {
label: '應在共享提請',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|commons}\}\n',
post: '----此圖像於[[維基共享資源]],請至[[commons:COM:AFD|共享的刪除請求]]提出。—~~\~~\n{\{delf}\}'
}
}
},
'vfdTransferToCopyvio': {
label: '轉交侵權投票',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|c}\}\n',
post: '{\{subst:(C)Problem}\}—~~\~~\n{\{delf}\}'
}
}
},
'vfdIneffectualRequest': {
label: '請求無效',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|ir}\}\n',
post: '----\n請求無效。—~~\~~\n{\{delf}\}'
}
}
},
'vfdReasonDisappear': {
label: '請求理由消失',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|rr}\}\n',
post: '----\n請求理由消失—~~\~~\n{\{delf}\}'
}
}
},
'vfdRepeatRequest': {
label: '重複請求',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|rep}\}\n',
post: '----\n重複提出—~~\~~\n{\{delf}\}'
}
}
},
'vfdSelfCancel': {
label: '自行撤銷',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|提刪者撤回}\}\n',
post: '----\n提刪者撤回—~~\~~\n{\{delf}\}'
}
}
},
'vfdRepeatDeleted': {
label: '鎖定條目',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|drep}\}\n',
post: '----\n刪除+白紙保護—~~\~~\n{\{delf}\}'
}
}
},
'vfdImageConvertedSVG': {
label: '圖片已轉SVG',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|svg}\}\n',
post: '----\n此圖片已轉成SVG,快速刪除—~~\~~\n{\{delf}\}'
}
}
},
'vfdTransWN': {
label: '移至新聞',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|twn}\}\n',
post: '----\n已移動至維基新聞—~~\~~\n{\{delf}\}'
}
}
},
'vfdTransWS': {
label: '移至文庫',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|tws}\}\n',
post: '----\n已移動至維基文庫—~~\~~\n{\{delf}\}'
}
}
},
'vfdTransWB': {
label: '移至教科書',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|twb}\}\n',
post: '----\n已移動至維基教科書—~~\~~\n{\{delf}\}'
}
}
},
'vfdTransWQ': {
label: '移至語錄',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|twq}\}\n',
post: '----\n已移動至維基語錄—~~\~~\n{\{delf}\}'
}
}
},
'vfdTransWT': {
label: '移至詞典',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|twt}\}\n',
post: '----\n已移動至維基詞典—~~\~~\n{\{delf}\}'
}
}
},
'vfdTransOther': {
label: '移至其他計劃',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|two}\}\n',
post: '----\n已移動至其他維基計劃—~~\~~\n{\{delf}\}'
}
}
},
'vfdOther': {
label: '其他',
action: {
type: 'encapsulate',
options: {
pre: '{\{delh|請在此輸入處理結果}\}\n',
post: '----\n請在此輸入處理結果—~~\~~\n{\{delf}\}'
}
}
}
}
}
}
} );
} );
}
}