「MediaWiki:Gadget-StyleGuide.js」の版間の差分

カテゴリ:メッセージボックスのテンプレートを追加
(推奨表記の定型文挿入の方法を変更。メンバー情報テンプレートの表記ガイドを追加)
(カテゴリ:メッセージボックスのテンプレートを追加)
45行目: 45行目:
                             },
                             },
                             {
                             {
                                 label: '{{MSG WRITERWANTED}}',
                                 label: '{{編集合戦}}',
                                 action: {
                                 action: {
                                     type: 'encapsulate',
                                     type: 'encapsulate',
                                     options: {
                                     options: {
                                         pre: '{{MSG WRITERWANTED|text=',
                                         pre: '{{編集合戦|text=',
                                         post: '}}',
                                         post: '}}',
                                        ownline: true
                                    }
                                }
                            },
                            {
                                label: '{{書きかけ}}',
                                action: {
                                    type: 'encapsulate',
                                    options: {
                                        pre: '{{書きかけ|text=',
                                        post: '}}',
                                        ownline: true
                                    }
                                }
                            },
                            {
                                label: '{{発売前}}',
                                action: {
                                    type: 'encapsulate',
                                    options: {
                                        pre: '{{発売前|text=',
                                        post: '}}',
                                        ownline: true
                                    }
                                }
                            },
                            {
                                label: '{{予定}}',
                                action: {
                                    type: 'encapsulate',
                                    options: {
                                        pre: '{{予定|date=',
                                        post: '|text=}}',
                                        ownline: true
                                    }
                                }
                            },
                            {
                                label: '{{出典明記}}',
                                action: {
                                    type: 'encapsulate',
                                    options: {
                                        pre: '{{出典明記|text=',
                                        post: '}}',
                                        ownline: true
                                    }
                                }
                            },
                            {
                                label: '{{編集者希望}}',
                                action: {
                                    type: 'encapsulate',
                                    options: {
                                        pre: '{{編集者希望|text=',
                                        post: '}}',
                                        ownline: true
                                    }
                                }
                            },
                            {
                                label: '{{情報希望}}',
                                action: {
                                    type: 'encapsulate',
                                    options: {
                                        pre: '{{情報希望|text=',
                                        post: '}}',
                                        ownline: true
                                    }
                                }
                            },
                            {
                                label: '{{更新}}',
                                action: {
                                    type: 'encapsulate',
                                    options: {
                                        pre: '{{更新|text=',
                                        post: '}}',
                                        ownline: true
                                    }
                                }
                            },
                            {
                                label: '{{雑多}}',
                                action: {
                                    type: 'encapsulate',
                                    options: {
                                        pre: '{{雑多|text=',
                                        post: '}}',
                                        ownline: true
                                    }
                                }
                            },
                            {
                                label: '{{最終更新}}',
                                action: {
                                    type: 'encapsulate',
                                    options: {
                                        pre: '{{最終更新|text=',
                                        post: '}}',
                                        ownline: true
                                    }
                                }
                            },
                            {
                                label: '{{最新の出来事}}',
                                action: {
                                    type: 'encapsulate',
                                    options: {
                                        pre: '{{最新の出来事|date=',
                                        post: '|text=}}',
                                         ownline: true
                                         ownline: true
                                     }
                                     }
259行目: 369行目:
if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 ) {
if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 ) {
     mw.loader.using( 'user.options', function () {
     mw.loader.using( 'user.options', function () {
         if ( mw.user.options.get('usebetatoolbar') && mw.user.options.get( 'showtoolbar' ) ) {
         if ( mw.user.options.get( 'usebetatoolbar' ) == 1 && mw.user.options.get( 'showtoolbar' ) == 1 ) {
            mw.loader.using( 'ext.wikiEditor.toolbar', customizeToolbar );
$.when(
        }
mw.loader.using( 'ext.wikiEditor.toolbar' ),
$.ready
).then( customizeToolbar );
}
     } );
     } );
}
}
user-upload
3,547

回編集