跳转到内容

MediaWiki:Gadget-EditToolbar-vfd.js

维基百科,自由的百科全书
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
if (mw.config.get('wgAction') == 'edit' || mw.config.get('wgAction') == 'submit') {
    jQuery.extend(true, editToolbarConfiguration, {
        'vfd': {
            label: 'VFD',
            type: 'toolbar',
            groups: {
                'deleted': {
                    label: 'Deleted',
                    tools: {
                        'page': {
                            label: 'General',
                            type: 'select',
                            list: {
                                'vfd': {
                                    label: 'by Voting',
                                    action: {
                                        type: 'encapsulate',
                                        options: {
                                            pre: '{\{delh|d}\}\n',
                                            post: '{\{subst:Deleted}\}--~~\~~\n{\{delf}\}'
                                        }
                                    }
                                },
                                'csd': {
                                    label: 'by CSD',
                                    action: {
                                        type: 'encapsulate',
                                        options: {
                                            pre: '{\{delh|sd}\}\n',
                                            post: '{\{subst:SpeedyDeleted}\}--~~\~~\n{\{delf}\}'
                                        }
                                    }
                                },
                                'cv': {
                                    label: 'Copyright violation',
                                    action: {
                                        type: 'encapsulate',
                                        options: {
                                            pre: '{\{delh|c}\}\n',
                                            post: '{\{subst:(C)Problem}\}--~~\~~\n{\{delf}\}'
                                        }
                                    }
                                }
                            }
                        },
                        'file': {
                            label: 'Files',
                            type: 'select',
                            list: {
                                'vfd': {
                                    label: 'by Voting',
                                    action: {
                                        type: 'encapsulate',
                                        options: {
                                            pre: '{\{delh|d}\}\n',
                                            post: '{\{subst:Deleted}\}--~~\~~\n{\{delf}\}'
                                        }
                                    }
                                },
                                'csd': {
                                    label: 'by CSD',
                                    action: {
                                        type: 'encapsulate',
                                        options: {
                                            pre: '{\{delh|sd}\}\n',
                                            post: '{\{subst:SpeedyDeleted}\}--~~\~~\n{\{delf}\}'
                                        }
                                    }
                                },
                                'cv': {
                                    label: 'Copyright violation',
                                    action: {
                                        type: 'encapsulate',
                                        options: {
                                            pre: '{\{delh|ic}\}\n',
                                            post: '----\nCopyright violation--~~\~~\n{\{delf}\}'
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    });
}