管理者、user-upload
33,390
回編集
(基本情報テンプレートを挿入できるように) |
細編集の要約なし |
||
(3人の利用者による、間の6版が非表示) | |||
1行目: | 1行目: | ||
// <nowiki> | |||
function customizeToolbar() { | function customizeToolbar() { | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
7行目: | 9行目: | ||
deferLoad: true, | deferLoad: true, | ||
pages: { | pages: { | ||
' | 'headers': { | ||
'layout': 'characters', | 'layout': 'characters', | ||
'label': ' | 'label': 'ヘッダ要素', | ||
'characters': [ | 'characters': [ | ||
{ | |||
label: '{{グループ情報}}', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{グループ情報\n| グループ名 = \n| 画像 = \n| 関連ページ = \n| 活動期間 = \n| チーム = \n| レーベル = \n| 総合プロデューサー = \n| 公式サイト = \n}}', | |||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | |||
label: '{{ユニット情報}}', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{ユニット情報\n| 名前 = \n| 画像 = \n| 活動期間 = \n| レーベル = \n| 事務所 = \n| 公式サイト = \n| メンバー = \n| 旧メンバー = \n}}', | |||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | { | ||
label: '{{メンバー情報}}', | label: '{{メンバー情報}}', | ||
16行目: | 38行目: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: '{{メンバー情報\n| グループ = \n| チーム = \n| 名前 = \n| 読み = \n| 画像 = \n| 公式ニックネーム = \n| 所属事務所 = \n| 生年月日 = \n| 出身地 = \n| 血液型 = \n| 身長 = \n| 体重 = \n| スリーサイズ = \n| 靴のサイズ = \n| 合格期 = \n| 所属ユニット = \n| 選抜回数 = \n| サイリウム = \n| | pre: '{{メンバー情報\n| グループ = \n| チーム = \n| 名前 = \n| 読み = \n| 画像 = \n| 公式ニックネーム = \n| 所属事務所 = \n| 生年月日 = \n| 出身地 = \n| 血液型 = \n| 身長 = \n| 体重 = \n| スリーサイズ = \n| 靴のサイズ = \n| 合格期 = \n| 所属ユニット = \n| 選抜回数 = \n| サイリウム = \n}}', | ||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | |||
label: '{{関係者情報}}', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{関係者情報\n| 名前 = \n| 読み = \n| 役職 = \n| bgcolor = \n| 画像 = \n| ニックネーム = \n| 所属事務所 = \n| 生年月日 = \n| 出身地 = \n| 血液型 = \n| 身長 = \n| 体重 = \n}}', | |||
ownline: true | |||
} | } | ||
} | } | ||
25行目: | 58行目: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: '{{シングル情報\n| タイトル = \n| アーティスト = \n| 通算枚数 = \n| 区分 = シングル\n| 画像 = \n| 発売日 = \n| レーベル = \n| 選抜人数 = \n| 販売形態 = \n| 週間ランキング = \n| 初週売上 = \n| 月間ランキング = \n| 初月売上 = \n| 年間ランキング = \n| 売上枚数 = \n| 前作 = \n| 次作 = \n}}' | pre: '{{シングル情報\n| タイトル = \n| アーティスト = \n| 通算枚数 = \n| 区分 = シングル\n| 画像 = \n| 発売日 = \n| レーベル = \n| 選抜人数 = \n| 販売形態 = \n| 週間ランキング = \n| 初週売上 = \n| 月間ランキング = \n| 初月売上 = \n| 年間ランキング = \n| 売上枚数 = \n| 前作 = \n| 次作 = \n}}', | ||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | |||
label: '{{アルバム情報}}', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{アルバム情報\n| タイトル = \n| アーティスト = \n| 通算枚数 = \n| 区分 = シングル\n| 画像 = \n| 発売日 = \n| レーベル = \n| 選抜人数 = \n| 販売形態 = \n| 週間ランキング = \n| 初週売上 = \n| 月間ランキング = \n| 初月売上 = \n| 年間ランキング = \n| 売上枚数 = \n| 前作 = \n| 次作 = \n}}', | |||
ownline: true | |||
} | } | ||
} | } | ||
34行目: | 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 | |||
} | |||
} | |||
}, | |||
{ | |||
label: '[[ファイル:<ファイル名>|250px]]', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '[[ファイル:', | |||
post: '|250px]]' | |||
} | |||
} | |||
}, | |||
{ | |||
label: '{{書きかけ}}', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{書きかけ}}', | |||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | |||
label: '{{編集者希望}}', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{編集者希望}}', | |||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | |||
label: '{{情報希望}}', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{情報希望|', | |||
post: '}}', | |||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | |||
label: '{{更新}}', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{更新}}', | |||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | |||
label: '{{雑多}}', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{雑多}}', | |||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | |||
label: '{{発売前}}', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{発売前|', | |||
post: '}}', | |||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | |||
label: '{{予定}}', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{予定}}', | |||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | |||
label: '{{最新の出来事}}', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{最新の出来事}}', | |||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | |||
label: '{{最終更新}}', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{最終更新}}', | |||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | |||
label: '{{出典明記}}', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{出典明記}}', | |||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | |||
label: '{{編集合戦}}', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{編集合戦}}', | |||
ownline: true | |||
} | |||
} | |||
}, | |||
{ | |||
label: '{{保護中}}', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{保護中|reason=', | |||
post: '}}', | |||
ownline: true | |||
} | } | ||
} | } | ||
45行目: | 223行目: | ||
'characters': [ | 'characters': [ | ||
{ | { | ||
label: '{{ | label: '{{要出典}}', | ||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{要出典}}' | |||
} | |||
} | |||
}, | |||
{ | |||
label: '{{要出典|}}', | |||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: '{{ | pre: '{{要出典|', | ||
post: '}}' | post: '}}' | ||
} | } | ||
75行目: | 262行目: | ||
}, | }, | ||
{ | { | ||
label: '{{ | label: '{{出典 Google+|url= |by= |date= }}', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: '{{ | pre: '{{出典 Google+|url=', | ||
post: '}}' | post: '|by=|date=}}' | ||
} | } | ||
} | } | ||
}, | }, | ||
{ | { | ||
label: '{{ | label: '{{注釈}}', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: '{{ | pre: '{{注釈|', | ||
post: ' | post: '}}' | ||
} | } | ||
} | } | ||
}, | }, | ||
] | |||
}, | |||
'footers': { | |||
'layout': 'characters', | |||
'label': 'フッタ要素', | |||
'characters': [ | |||
{ | { | ||
label: ' | label: '== 注釈 ==', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '== 注釈 ==\n<references group="注釈" />', | ||
ownline: true | ownline: true | ||
} | } | ||
106行目: | 298行目: | ||
}, | }, | ||
{ | { | ||
label: ' | label: '== 出典 ==', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '== 出典 ==\n<references />', | ||
ownline: true | ownline: true | ||
} | } | ||
117行目: | 308行目: | ||
}, | }, | ||
{ | { | ||
label: '{{ | label: '{{DEFAULTSORT:}}', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: '{{ | pre: '{{DEFAULTSORT:', | ||
post: '}}', | post: '}}', | ||
ownline: true | ownline: true | ||
128行目: | 319行目: | ||
}, | }, | ||
{ | { | ||
label: ' | label: '[[カテゴリ:]]', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '[[カテゴリ:', | ||
post: ' | post: ']]', | ||
ownline: true | ownline: true | ||
} | } | ||
139行目: | 330行目: | ||
}, | }, | ||
{ | { | ||
label: ' | label: '[[jawp:]]', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '[[jawp:', | ||
post: ' | post: ']]', | ||
ownline: true | ownline: true | ||
} | } | ||
150行目: | 341行目: | ||
}, | }, | ||
{ | { | ||
label: ' | label: '[[akb49:]]', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '[[akb49:', | ||
post: ' | post: ']]', | ||
ownline: true | ownline: true | ||
} | } | ||
161行目: | 352行目: | ||
}, | }, | ||
{ | { | ||
label: ' | label: '[[stage48:]]', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '[[stage48:', | ||
post: ' | post: ']]', | ||
ownline: true | ownline: true | ||
} | } | ||
172行目: | 363行目: | ||
}, | }, | ||
{ | { | ||
label: ' | label: '[[akb48wikia:]]', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '[[akb48wikia:', | ||
post: ' | post: ']]', | ||
ownline: true | ownline: true | ||
} | } | ||
183行目: | 374行目: | ||
}, | }, | ||
{ | { | ||
label: ' | label: '[[nogipedia:]]', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '[[nogipedia:', | ||
post: ' | post: ']]', | ||
ownline: true | ownline: true | ||
} | } | ||
194行目: | 385行目: | ||
}, | }, | ||
{ | { | ||
label: ' | label: '[[baidu:]]', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '[[baidu:', | ||
post: ' | post: ']]', | ||
ownline: true | ownline: true | ||
} | } | ||
205行目: | 396行目: | ||
}, | }, | ||
{ | { | ||
label: ' | label: '[[namuwiki:]]', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: ' | pre: '[[namuwiki:', | ||
post: ' | post: ']]', | ||
ownline: true | ownline: true | ||
} | } | ||
} | } | ||
}, | }, | ||
] | ] | ||
255行目: | 420行目: | ||
name: { html: 'グループ<br>グループ<i>n</i>' }, | name: { html: 'グループ<br>グループ<i>n</i>' }, | ||
example: { html: 'AKB48' }, | example: { html: 'AKB48' }, | ||
description: { html: ' | description: { html: '所属グループ' } | ||
}, | }, | ||
{ | { | ||
name: { html: 'チーム<br>チーム<i>n</i>' }, | name: { html: 'チーム<br>チーム<i>n</i>' }, | ||
example: { html: ' | example: { html: 'チームA、研究生' }, | ||
description: { html: '「グループ」に対応する所属チーム | description: { html: '「グループ」に対応する所属チーム' } | ||
}, | }, | ||
{ | { | ||
name: { html: ' | name: { html: '元グループ<br>元グループ<i>n</i>' }, | ||
example: { html: '' }, | example: { html: 'AKB48' }, | ||
description: { html: ' | description: { html: '過去の所属グループ<br>現在48・46グループに所属している場合は入力しない' } | ||
}, | }, | ||
{ | { | ||
413行目: | 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 ); | ||
422行目: | 582行目: | ||
} ); | } ); | ||
} | } | ||
// </nowiki> |