管理者、user-upload
32,756
回編集
細編集の要約なし |
細編集の要約なし |
||
(2人の利用者による、間の3版が非表示) | |||
78行目: | 78行目: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: '{{楽曲情報\n| タイトル = \n| 名義 = \n| 画像 = \n| 作詞 = \n| 作曲 = \n| 編曲 = \n| YouTube = \n| MV監督 = \n| タイアップ = \n}}', | pre: '{{楽曲情報\n| タイトル = \n| 名義 = \n| 画像 = \n| 作詞 = \n| 作曲 = \n| 編曲 = \n| YouTube = \n| MV監督 = \n| 振付 = \n| タイアップ = \n}}', | ||
ownline: true | ownline: true | ||
} | } | ||
379行目: | 379行目: | ||
options: { | options: { | ||
pre: '[[nogipedia:', | pre: '[[nogipedia:', | ||
post: ']]', | |||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | |||
label: '[[baidu:]]', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '[[baidu:', | |||
post: ']]', | |||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | |||
label: '[[namuwiki:]]', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '[[namuwiki:', | |||
post: ']]', | post: ']]', | ||
ownline: true | ownline: true | ||
551行目: | 573行目: | ||
/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar . . . */ | /* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar . . . */ | ||
if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 ) { | if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 ) { | ||
mw.loader.using( 'user.options' | mw.loader.using( 'user.options').then( function() { | ||
if ( mw.user.options.get( 'usebetatoolbar | if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) { | ||
$.when( | $.when( | ||
mw.loader.using( 'ext.wikiEditor | mw.loader.using( 'ext.wikiEditor' ), | ||
$.ready | $.ready | ||
).then( customizeToolbar ); | ).then( customizeToolbar ); |