User:Altt311/deletiontools2.js

维基百科,自由的百科全书

注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。

if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$( function() { // Execute on load
			$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'delrequest',
			'groups': {
				'csd': {
					'label': ''
				},
				'afd': {
					'label': ''
				}
			}
		} );
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'delrequest',
			'group': 'csd',
			'tools': {
				'csdselect': {
					label: '快速刪除',
					type: 'select',
					list: {
						'G1': {
							label: 'G1:沒有內容',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|G1}\}\n'
								}
							}
						},
						'G2': {
							label: 'G2:測試頁',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|G2}\}\n'
								}
							}
						},
						'G3': {
							label: 'G3:惡搞/破壞',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|G3}\}\n'
								}
							}
						},
						'G5': {
							label: 'G5:重複創建',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|G5}\}\n'
								}
							}
						},
						'G8': {
							label: 'G8:以便移動',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|G8}\}\n'
								}
							}
						},
						'G10': {
							label: 'G10:原作者提刪',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|G10}\}\n'
								}
							}
						},
						'G11': {
							label: 'G11:廣告',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|G11}\}\n'
								}
							}
						},
						'G12': {
							label: 'G12:負面傳記',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|G12}\}\n'
								}
							}
						},
						'G13': {
							label: 'G13:機器翻譯',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|G13}\}\n'
								}
							}
						},
						'G14': {
							label: 'G14:沒有翻譯',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|G14}\}\n'
								}
							}
						},
						'G15': {
							label: 'G15:孤立頁面',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|G15}\}\n'
								}
							}
						},
						'A1': {
							label: 'A1:沒有內容',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|A1}\}\n'
								}
							}
						},
						'A2': {
							label:'A2:沒有內文',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|A2}\}\n'
								}
							}
						},
						'A3': {
							label:'A3:複製自其他計畫',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|A3}\}\n'
								}
							}
						},
						'R2': {
							label: 'R2:跨空間重定向',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|R1}\}\n'
								}
							}
						},
						'R3': {
							label: 'R3:名稱錯誤重定向',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|R3}\}\n'
								}
							}
						},
						'R5': {
							label: 'R5:循環重定向',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|R5}\}\n'
								}
							}
						},
						'F1': {
							label: 'F1:重複檔案',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|I1}\}\n'
								}
							}
						},
						'F5': {
							label: 'F5:被svg取代',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|F5}\}\n'
								}
							}
						},
						'F6': {
							label: 'F6:孤立圖片',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|F6}\}\n'
								}
							}
						},
						'O1': {
							label: 'O1:自刪用戶頁',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|O1}\}\n'
								}
							}
						},
						'O3': {
							label: 'O3:IP用戶討論頁',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|O3}\}\n'
								}
							}
						},
						'O4': {
							label: 'O4:空的類別',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|O4}\}\n'
								}
							}
						},
						'Other': {
							label: '其他原因',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{d|',
									periMsg: '原因',
									post: '}\}\n'
								}
							}
						}
					}
				}
			}
		} );
		$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
			'section': 'delrequest',
			'group': 'afd',
			'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}\}\n'
								}
							}
						},
						'Quote': {
							label: '移動到語錄',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{vfd-q}\}\n'
								}
							}
						},
						'Book': {
							label: '移動到教科書',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{vfd-b}\}\n'
								}
							}
						},
						'Source': {
							label: '移動到文庫',
							action: {
								type: 'encapsulate',
								options: {
									pre: '{\{vfd-s}\}\n'
								}
							}
						}
					}
				}
			}
		} );
	} );
}