Diferencia entre revisiones de «Usuario:King of Herdaz/common.js»
Ir a la navegación
Ir a la búsqueda
m |
m |
||
(No se muestran 108 ediciones intermedias del mismo usuario) | |||
Línea 52: | Línea 52: | ||
'group': 'insert', |
'group': 'insert', |
||
'tool': 'file' |
'tool': 'file' |
||
⚫ | |||
− | |||
− | //remove original link button |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}); |
}); |
||
Línea 83: | Línea 76: | ||
}); |
}); |
||
− | // Adding |
+ | // Adding Artist header button for galleries to the "main" section |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
section: 'main', |
section: 'main', |
||
group: 'insert', |
group: 'insert', |
||
tools: { |
tools: { |
||
− | " |
+ | "Artist-header": { |
− | label: ' |
+ | label: 'Artist header', |
type: 'button', |
type: 'button', |
||
− | icon: '//upload.wikimedia.org/wikipedia/commons/ |
+ | icon: '//upload.wikimedia.org/wikipedia/commons/3/3a/Button_av-img.png', |
action: { |
action: { |
||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: |
+ | pre: '| <small><center>by {' + '{a|', |
− | post: ' |
+ | post: '}}</center></small>' |
} |
} |
||
} |
} |
||
Línea 103: | Línea 96: | ||
}); |
}); |
||
− | // Adding |
+ | // Adding image template button to the "main" section |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
section: 'main', |
section: 'main', |
||
group: 'insert', |
group: 'insert', |
||
tools: { |
tools: { |
||
− | " |
+ | "image": { |
− | label: ' |
+ | label: 'Image template', |
type: 'button', |
type: 'button', |
||
− | icon: '//upload.wikimedia.org/wikipedia/commons/ |
+ | icon: '//upload.wikimedia.org/wikipedia/commons/d/d8/Vector_toolbar_insert_image_button.png', |
action: { |
action: { |
||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: |
+ | pre: '{' + '{image|', |
− | post: |
+ | post: '|side=|width=|caption}}' |
} |
} |
||
} |
} |
||
Línea 123: | Línea 116: | ||
}); |
}); |
||
− | // Adding |
+ | // Adding Wikipedia link button to the "main" section |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
$('#wpTextbox1').wikiEditor('addToToolbar', { |
||
section: 'main', |
section: 'main', |
||
− | group: ' |
+ | group: 'insert', |
tools: { |
tools: { |
||
− | " |
+ | "wikipedia": { |
− | label: ' |
+ | label: 'Wikipedia', |
type: 'button', |
type: 'button', |
||
− | icon: '//upload.wikimedia.org/wikipedia/commons/ |
+ | icon: '//upload.wikimedia.org/wikipedia/commons/c/cb/Button_wikipedia.png', |
action: { |
action: { |
||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: |
+ | pre: "[[Wikipedia: ", |
⚫ | |||
} |
} |
||
} |
} |
||
Línea 147: | Línea 141: | ||
group: 'insert', |
group: 'insert', |
||
tools: { |
tools: { |
||
− | " |
+ | "break": { |
label: 'Break tag', |
label: 'Break tag', |
||
type: 'button', |
type: 'button', |
||
Línea 154: | Línea 148: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '<' + 'br />' |
+ | pre: '<' + 'br />' |
} |
} |
||
} |
} |
||
Línea 164: | Línea 158: | ||
$('#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
$('#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
||
section: 'main', |
section: 'main', |
||
− | group: ' |
+ | group: 'insert', |
tools: { |
tools: { |
||
− | " |
+ | "link": { |
label: 'Link', |
label: 'Link', |
||
type: 'button', |
type: 'button', |
||
Línea 184: | Línea 178: | ||
$('#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
$('#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
||
section: 'main', |
section: 'main', |
||
− | group: ' |
+ | group: 'insert', |
tools: { |
tools: { |
||
− | " |
+ | "hidden": { |
label: 'Hidden text', |
label: 'Hidden text', |
||
type: 'button', |
type: 'button', |
||
Línea 204: | Línea 198: | ||
$('#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
$('#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
||
section: 'main', |
section: 'main', |
||
− | group: ' |
+ | group: 'insert', |
tools: { |
tools: { |
||
− | " |
+ | "columns": { |
label: 'Columns', |
label: 'Columns', |
||
type: 'button', |
type: 'button', |
||
Línea 215: | Línea 209: | ||
pre: '{' + '{columns|' + '\n', |
pre: '{' + '{columns|' + '\n', |
||
post: '\n' + '}}' |
post: '\n' + '}}' |
||
+ | } |
||
+ | } |
||
+ | } |
||
+ | } |
||
⚫ | |||
+ | |||
+ | // Adding a <code> button to the "main" section |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | tools: { |
||
⚫ | |||
+ | label: 'Code', |
||
+ | type: 'button', |
||
+ | icon: '//upload.wikimedia.org/wikipedia/commons/2/23/Button_code.png', |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
} |
} |
||
} |
} |
||
Línea 365: | Línea 379: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{character' + '\n' + '|image=' + '\n' + '|unnamed=y' + '\n' + '|merge-family=y' + '\n' + '|parents=' + '\n' + '|spouse=' + '\n' + '|siblings=' + '\n' + '|children=' + '\n' + '|ancestors=' + '\n' + '|relatives=' + '\n' + '|descendants=' + '\n' + '|born=' + '\n' + '|died=' + '\n' + '|abilities=' + '\n' + '|bonded=' + '\n' + '|titles=' + '\n' + '|aliases=' + '\n' + '|skills=' + '\n' + '|achievements=' + '\n' + '|#profession=' + '\n' + '|profession=' + '\n' + '|occupation=' + '\n' + '|religion=' + '\n' + '|groups=' + '\n' + '|species=' + '\n' + '|era=' + '\n' + '|birthplace=' + '\n' + '|residence=' + '\n' + '|ethnicity=' + '\n' + '|nation=' + '\n' + '|nationality=' |
+ | pre: '{' + '{character' + '\n' + '|image=' + '\n' + '|unnamed=y' + '\n' + '|merge-family=y' + '\n' + '|parents=' + '\n' + '|spouse=' + '\n' + '|siblings=' + '\n' + '|children=' + '\n' + '|ancestors=' + '\n' + '|relatives=' + '\n' + '|descendants=' + '\n' + '|born=' + '\n' + '|died=' + '\n' + '|abilities=' + '\n' + '|bonded=' + '\n' + '|titles=' + '\n' + '|aliases=' + '\n' + '|skills=' + '\n' + '|achievements=' + '\n' + '|#profession=' + '\n' + '|profession=' + '\n' + '|occupation=' + '\n' + '|religion=' + '\n' + '|groups=' + '\n' + '|species=' + '\n' + '|era=' + '\n' + '|birthplace=' + '\n' + '|residence=' + '\n' + '|ethnicity=' + '\n' + '|nation=' + '\n' + '|nationality=' |
} |
} |
||
} |
} |
||
Línea 374: | Línea 388: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{architecture' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|usage=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=' |
+ | pre: '{' + '{architecture' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|usage=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=' |
} |
} |
||
} |
} |
||
Línea 383: | Línea 397: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{business' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|founder= / founders=' + '\n' + '|leader= / leaders=' + '\n' + '|members=' + '\n' + '|services=' + '\n' + '|products=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|nation=' |
+ | pre: '{' + '{business' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|founder= / founders=' + '\n' + '|leader= / leaders=' + '\n' + '|members=' + '\n' + '|services=' + '\n' + '|products=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|nation=' |
} |
} |
||
} |
} |
||
Línea 392: | Línea 406: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{culture' + '\n' + '|image=' + '\n' + '|related=' + '\n' + '|type=' + '\n' + '|era=' + '\n' + '|origin=' |
+ | pre: '{' + '{culture' + '\n' + '|image=' + '\n' + '|related=' + '\n' + '|type=' + '\n' + '|era=' + '\n' + '|origin=' |
} |
} |
||
} |
} |
||
Línea 401: | Línea 415: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{event' + '\n' + '|image=' + '\n' + '|partof=' + '\n' + '|date=' + '\n' + '|era=' + '\n' + '|participants=' + '\n' + '|effects=' + '\n' + '|city= / state= / region= / nation=' + '\n' + '|princedom= / dominance=' + '\n' + '|location=' |
+ | pre: '{' + '{event' + '\n' + '|image=' + '\n' + '|partof=' + '\n' + '|date=' + '\n' + '|era=' + '\n' + '|participants=' + '\n' + '|effects=' + '\n' + '|city= / state= / region= / nation=' + '\n' + '|princedom= / dominance=' + '\n' + '|location=' |
} |
} |
||
} |
} |
||
Línea 410: | Línea 424: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{food' + '\n' + '|image=' + '\n' + '|ingredients=' + '\n' + '|type=' + '\n' + '|taste=' + '\n' + '|origin=' |
+ | pre: '{' + '{food' + '\n' + '|image=' + '\n' + '|ingredients=' + '\n' + '|type=' + '\n' + '|taste=' + '\n' + '|origin=' |
} |
} |
||
} |
} |
||
Línea 419: | Línea 433: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{geography' + '\n' + '|map= / |image=' + '\n' + '|type=' + '\n' + '|era=' + '\n' + '|region=' |
+ | pre: '{' + '{geography' + '\n' + '|map= / |image=' + '\n' + '|type=' + '\n' + '|era=' + '\n' + '|region=' |
} |
} |
||
} |
} |
||
Línea 428: | Línea 442: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{group' + '\n' + '|image=' + '\n' + '|founder= / founders=' + '\n' + '|leader= / leaders=' + '\n' + '|hq=' + '\n' + '|type=' + '\n' + '|era=' |
+ | pre: '{' + '{group' + '\n' + '|image=' + '\n' + '|founder= / founders=' + '\n' + '|leader= / leaders=' + '\n' + '|hq=' + '\n' + '|type=' + '\n' + '|era=' |
} |
} |
||
} |
} |
||
Línea 437: | Línea 451: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{item' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|creator= / creators=' + '\n' + '|type=' + '\n' + '|function=' |
+ | pre: '{' + '{item' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|creator= / creators=' + '\n' + '|type=' + '\n' + '|function=' |
} |
} |
||
} |
} |
||
Línea 446: | Línea 460: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{lifeform' + '\n' + '|image=' + '\n' + '|type=' + '\n' + '|abilities=' + '\n' + '|use=' + '\n' + '|native=' + '\n' + '|sapient=y' |
+ | pre: '{' + '{lifeform' + '\n' + '|image=' + '\n' + '|type=' + '\n' + '|abilities=' + '\n' + '|use=' + '\n' + '|native=' + '\n' + '|sapient=y' |
} |
} |
||
} |
} |
||
Línea 455: | Línea 469: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{settlement' + '\n' + '|map/image=' + '\n' + '|ruler=' + '\n' + '|occupied=' + '\n' + '|era=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=' |
+ | pre: '{' + '{settlement' + '\n' + '|map/image=' + '\n' + '|ruler=' + '\n' + '|occupied=' + '\n' + '|era=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=' |
} |
} |
||
} |
} |
||
Línea 464: | Línea 478: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{location' + '\n' + '|map/image=' + '\n' + '|capital=' + '\n' + '|ruler=' + '\n' + '|occupied=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=' |
+ | pre: '{' + '{location' + '\n' + '|map/image=' + '\n' + '|capital=' + '\n' + '|ruler=' + '\n' + '|occupied=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=' |
} |
} |
||
} |
} |
||
Línea 473: | Línea 487: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{literature' + '\n' + '|image=' + '\n' + '|type=' + '\n' + '|author=' + '\n' + '|language=' + '\n' + '|era=' |
+ | pre: '{' + '{literature' + '\n' + '|image=' + '\n' + '|type=' + '\n' + '|author=' + '\n' + '|language=' + '\n' + '|era=' |
} |
} |
||
} |
} |
||
Línea 482: | Línea 496: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{vehicle' + '\n' + '|image=' + '\n' + '|owner/owners=' + '\n' + '|creator/creators=' + '\n' + '|type=' + '\n' + '|captain=' |
+ | pre: '{' + '{vehicle' + '\n' + '|image=' + '\n' + '|owner/owners=' + '\n' + '|creator/creators=' + '\n' + '|type=' + '\n' + '|captain=' |
} |
} |
||
} |
} |
||
Línea 508: | Línea 522: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{character' |
+ | pre: '{' + '{character' |
} |
} |
||
} |
} |
||
Línea 517: | Línea 531: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|residence=' |
+ | pre: '\n' + '|residence=' |
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
} |
} |
||
} |
} |
||
Línea 526: | Línea 549: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|profession=' |
+ | pre: '\n' + '|profession=' |
} |
} |
||
} |
} |
||
Línea 535: | Línea 558: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|#profession=' |
+ | pre: '\n' + '|#profession=' |
} |
} |
||
} |
} |
||
Línea 544: | Línea 567: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|skills=' |
+ | pre: '\n' + '|skills=' |
} |
} |
||
} |
} |
||
Línea 553: | Línea 576: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|species=' |
+ | pre: '\n' + '|species=' |
} |
} |
||
} |
} |
||
Línea 562: | Línea 585: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|abilities=' |
+ | pre: '\n' + '|abilities=' |
} |
} |
||
} |
} |
||
Línea 571: | Línea 594: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|ethnicity=' |
+ | pre: '\n' + '|ethnicity=' |
} |
} |
||
} |
} |
||
Línea 580: | Línea 603: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|born=' |
+ | pre: '\n' + '|born=' |
} |
} |
||
} |
} |
||
Línea 589: | Línea 612: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|died=' |
+ | pre: '\n' + '|died=' |
} |
} |
||
} |
} |
||
Línea 598: | Línea 621: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|nationality=' |
+ | pre: '\n' + '|nationality=' |
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
} |
} |
||
} |
} |
||
Línea 616: | Línea 630: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|bonded=' |
+ | pre: '\n' + '|bonded=' |
} |
} |
||
} |
} |
||
Línea 642: | Línea 656: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|world=Roshar' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[The Stormlight Archive]]' + '\n' + '}}' |
+ | pre: '\n' + '|world=Roshar' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[The Stormlight Archive]]' + '\n' + '}}' |
} |
} |
||
} |
} |
||
Línea 651: | Línea 665: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|world=Scadrial' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Mistborn Era 1]]' + '\n' + '}}' |
+ | pre: '\n' + '|world=Scadrial' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Mistborn Era 1]]' + '\n' + '}}' |
} |
} |
||
} |
} |
||
Línea 660: | Línea 674: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|world=Scadrial' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Mistborn Era 2]]' + '\n' + '}}' |
+ | pre: '\n' + '|world=Scadrial' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Mistborn Era 2]]' + '\n' + '}}' |
} |
} |
||
} |
} |
||
Línea 669: | Línea 683: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|world=Nalthis' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Warbreaker]]' + '\n' + '}}' |
+ | pre: '\n' + '|world=Nalthis' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Warbreaker]]' + '\n' + '}}' |
} |
} |
||
} |
} |
||
Línea 678: | Línea 692: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|world=Sel' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Elantris (book)|Elantris]]' + '\n' + '}}' |
+ | pre: '\n' + '|world=Sel' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Elantris (book)|Elantris]]' + '\n' + '}}' |
} |
} |
||
} |
} |
||
Línea 687: | Línea 701: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|earth=Alcatraz' + '\n' + '|books=[[Alcatraz Versus the Evil Librarians (series)|Alcatraz Versus the Evil Librarians]]' + '\n' + '}}' |
+ | pre: '\n' + '|earth=Alcatraz' + '\n' + '|books=[[Alcatraz Versus the Evil Librarians (series)|Alcatraz Versus the Evil Librarians]]' + '\n' + '}}' |
} |
} |
||
} |
} |
||
Línea 696: | Línea 710: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|world=Taldain' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[White Sand]]' + '\n' + '}}' |
+ | pre: '\n' + '|world=Taldain' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[White Sand]]' + '\n' + '}}' |
} |
} |
||
} |
} |
||
Línea 705: | Línea 719: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|world= |
+ | pre: '\n' + '|world=', |
+ | post: '\n' + '|universe=[[Cytoverse]]' + '\n' + '|books=[[Skyward (series)]]' + '\n' + '}}' |
||
} |
} |
||
} |
} |
||
Línea 731: | Línea 746: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '\'\'\'{' + '{SUBST:PAGENAME}}\'\'\'' |
+ | pre: '\n' + '\'\'\'{' + '{SUBST:PAGENAME}}\'\'\'' |
} |
} |
||
} |
} |
||
Línea 740: | Línea 755: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n\n' + '== Notes ==' |
+ | pre: '\n\n' + '== Notes ==' |
} |
} |
||
} |
} |
||
Línea 749: | Línea 764: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '<' + 'references />' |
+ | pre: '\n' + '<' + 'references />' |
} |
} |
||
} |
} |
||
Línea 758: | Línea 773: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '{' + '{stub}}' |
+ | pre: '\n' + '{' + '{stub}}' |
} |
} |
||
} |
} |
||
Línea 767: | Línea 782: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '{' + '{partial}}' |
+ | pre: '\n' + '{' + '{partial}}' |
} |
} |
||
} |
} |
||
Línea 776: | Línea 791: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '{' + '{complete}}' |
+ | pre: '\n' + '{' + '{complete}}' |
} |
} |
||
} |
} |
||
Línea 785: | Línea 800: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '{' + '{Alcatraz}}' |
+ | pre: '\n' + '{' + '{Alcatraz}}' |
} |
} |
||
} |
} |
||
Línea 794: | Línea 809: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '{' + '{Elantris}}' |
+ | pre: '\n' + '{' + '{Elantris}}' |
} |
} |
||
} |
} |
||
Línea 803: | Línea 818: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '{' + '{Mistborn|Era 1}}' |
+ | pre: '\n' + '{' + '{Mistborn|Era 1}}' |
} |
} |
||
} |
} |
||
Línea 812: | Línea 827: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '{' + '{Mistborn|Era 2}}' |
+ | pre: '\n' + '{' + '{Mistborn|Era 2}}' |
} |
} |
||
} |
} |
||
Línea 821: | Línea 836: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '{' + '{Reckoners}}' |
+ | pre: '\n' + '{' + '{Reckoners}}' |
} |
} |
||
} |
} |
||
Línea 830: | Línea 845: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '{' + '{Skyward}}' |
+ | pre: '\n' + '{' + '{Skyward}}' |
} |
} |
||
} |
} |
||
Línea 839: | Línea 854: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '{' + '{Stormlight}}' |
+ | pre: '\n' + '{' + '{Stormlight}}' |
} |
} |
||
} |
} |
||
Línea 848: | Línea 863: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '{' + '{Warbreaker}}' |
+ | pre: '\n' + '{' + '{Warbreaker}}' |
} |
} |
||
} |
} |
||
Línea 857: | Línea 872: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '{' + '{White Sand}}' |
+ | pre: '\n' + '{' + '{White Sand}}' |
} |
} |
||
} |
} |
||
Línea 883: | Línea 898: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{'+'{artist' + '\n' + '|image=' + '\n' + '|alias=' + '\n' + '|fb=' + '\n' + '|reddit=' + '\n' + '|behance=' + '\n' + '|da=' + '\n' + '|ig=' + '\n' + '|as=' + '\n' + '|tumblr=' + '\n' + '|twitter=' + '\n' + '|site=' + '\n' + '|license=all|some|none|official' + '\n' + '|contact=' + '\n' + '|type=fan|interior|cover|multimedia' + '\n' + '|no-notify=y' + '\n' + '}}' + '\n' + '\n' + '\n' + '== Gallery ==' + '\n' |
+ | pre: '{'+'{artist' + '\n' + '|image=' + '\n' + '|alias=' + '\n' + '|fb=' + '\n' + '|reddit=' + '\n' + '|behance=' + '\n' + '|da=' + '\n' + '|ig=' + '\n' + '|as=' + '\n' + '|tumblr=' + '\n' + '|twitter=' + '\n' + '|site=' + '\n' + '|license=all|some|none|official' + '\n' + '|contact=' + '\n' + '|type=fan|interior|cover|multimedia' + '\n' + '|no-notify=y' + '\n' + '}}' + '\n' + '\n' + '\n' + '== Gallery ==' + '\n' |
} |
} |
||
} |
} |
||
Línea 892: | Línea 907: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '== Official artwork ==' + '\n' + '<' + 'gallery mode="packed" heights=200px caption="Official artwork">' + '\n' + '\n' + '</gallery>' + '\n' + '\n' + '== Portraits ==' + '\n' + '<' + 'gallery mode="packed" heights=200px caption="Portraits">' + '\n' + '\n' + '</gallery>' + '\n' + '\n' + '== Scenes ==' + '\n' + '<' + 'gallery mode="packed" heights=200px caption="Scenes">' + '\n' + '\n' + '</gallery>' + '\n' + '\n' + '[' + '[Category:Gallery Subpages]]' |
+ | pre: '== Official artwork ==' + '\n' + '<' + 'gallery mode="packed" heights=200px caption="Official artwork">' + '\n' + '\n' + '</gallery>' + '\n' + '\n' + '== Portraits ==' + '\n' + '<' + 'gallery mode="packed" heights=200px caption="Portraits">' + '\n' + '\n' + '</gallery>' + '\n' + '\n' + '== Scenes ==' + '\n' + '<' + 'gallery mode="packed" heights=200px caption="Scenes">' + '\n' + '\n' + '</gallery>' + '\n' + '\n' + '[' + '[Category:Gallery Subpages]]' |
} |
} |
||
} |
} |
||
Línea 921: | Línea 936: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{cat tag|Books|book cover}}' |
+ | pre: '{' + '{cat tag|Books|book cover}}' |
} |
} |
||
} |
} |
||
Línea 930: | Línea 945: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{cat tag|Character images}}' |
+ | pre: '{' + '{cat tag|Character images}}' |
} |
} |
||
} |
} |
||
Línea 939: | Línea 954: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{cat tag|Art}}' |
+ | pre: '{' + '{cat tag|Art}}' |
} |
} |
||
} |
} |
||
Línea 948: | Línea 963: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{cat tag|Interior art}}' |
+ | pre: '{' + '{cat tag|Interior art}}' |
} |
} |
||
} |
} |
||
Línea 957: | Línea 972: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{cat tag|Interior art}}' |
+ | pre: '{' + '{cat tag|Interior art}}' |
} |
} |
||
} |
} |
||
Línea 966: | Línea 981: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '|official=y' + '\n' |
+ | pre: '|official=y' + '\n' |
} |
} |
||
} |
} |
||
Línea 975: | Línea 990: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|tracer=' |
+ | pre: '\n' + '|tracer=' |
} |
} |
||
} |
} |
||
Línea 984: | Línea 999: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|modified=' |
+ | pre: '\n' + '|modified=' |
} |
} |
||
} |
} |
||
Línea 993: | Línea 1008: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '|book=' |
+ | pre: '\n' + '|book=' |
} |
} |
||
} |
} |
||
Línea 1012: | Línea 1027: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '<br style="clear:right;"/>' |
+ | pre: '<br style="clear:right;"/>' |
} |
} |
||
} |
} |
||
Línea 1021: | Línea 1036: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '<br style="clear:left;"/>' |
+ | pre: '<br style="clear:left;"/>' |
} |
} |
||
} |
} |
||
Línea 1030: | Línea 1045: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '<' + 'gallery caption="Gallery" mode="packed" heights=200px>' + '\n' |
+ | pre: '<' + 'gallery caption="Gallery" mode="packed" heights=200px>' + '\n' |
} |
} |
||
} |
} |
||
Línea 1039: | Línea 1054: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '</gallery>' |
+ | pre: '</gallery>' |
} |
} |
||
} |
} |
||
Línea 1048: | Línea 1063: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{meta/done}}' |
+ | pre: '{' + '{meta/done}}' |
} |
} |
||
} |
} |
||
Línea 1115: | Línea 1130: | ||
options: { |
options: { |
||
pre: '{' + '{merge|', |
pre: '{' + '{merge|', |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | }, |
||
+ | 'anchor': { |
||
⚫ | |||
+ | action: { |
||
+ | type: 'encapsulate', |
||
+ | options: { |
||
+ | pre: '{' + '{anchor|', |
||
post: '}}' |
post: '}}' |
||
} |
} |
||
Línea 1124: | Línea 1149: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{delete}}' |
+ | pre: '{' + '{delete}}' |
} |
} |
||
} |
} |
||
Línea 1133: | Línea 1158: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{cite}}' |
+ | pre: '{' + '{cite}}' |
} |
} |
||
} |
} |
||
Línea 1142: | Línea 1167: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{theory}}' |
+ | pre: '{' + '{theory}}' |
} |
} |
||
} |
} |
||
Línea 1151: | Línea 1176: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{disputed}}' |
+ | pre: '{' + '{disputed}}' |
} |
} |
||
} |
} |
||
Línea 1160: | Línea 1185: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{expand}}' |
+ | pre: '{' + '{expand}}' |
} |
} |
||
} |
} |
||
Línea 1169: | Línea 1194: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{clarify}}' |
+ | pre: '{' + '{clarify}}' |
} |
} |
||
} |
} |
||
Línea 1178: | Línea 1203: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{uncanonical}}' |
+ | pre: '{' + '{uncanonical}}' |
} |
} |
||
} |
} |
||
Línea 1187: | Línea 1212: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{copyright}}' |
+ | pre: '{' + '{copyright}}' |
} |
} |
||
} |
} |
||
Línea 1213: | Línea 1238: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{{for|' |
+ | pre: '{' + '{for|' |
} |
} |
||
} |
} |
||
Línea 1233: | Línea 1258: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '[[Category: Nominal redirects]]' |
+ | pre: '[' + '[Category: Nominal redirects]]' |
} |
} |
||
} |
} |
||
Línea 1242: | Línea 1267: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '[[Category: Structural redirects]]' |
+ | pre: '[' + '[Category: Structural redirects]]' |
} |
} |
||
} |
} |
||
Línea 1251: | Línea 1276: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '[[Category: Subsection redirects]]' |
+ | pre: '[' + '[Category: Subsection redirects]]' |
} |
} |
||
} |
} |
||
Línea 1260: | Línea 1285: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '[[Category: Correction redirects]]' |
+ | pre: '[' + '[Category: Correction redirects]]' |
} |
} |
||
} |
} |
||
Línea 1269: | Línea 1294: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{for|/Gallery|more images}}' |
+ | pre: '{' + '{for|/Gallery|more images}}' |
} |
} |
||
} |
} |
||
Línea 1290: | Línea 1315: | ||
pre: '<pre>', |
pre: '<pre>', |
||
post: '</pre>' |
post: '</pre>' |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
} |
} |
||
} |
} |
||
Línea 1308: | Línea 1323: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '<DynamicPageList>' + '\n' + 'mode=ordered' + '\n' + 'category=' + '\n' + 'notcategory=' + '\n' + 'namespace=' + '\n' + 'ordermethod=sortkey' + '\n' + 'order=ascending' + '\n' + '</DynamicPageList>' |
+ | pre: '<DynamicPageList>' + '\n' + 'mode=ordered' + '\n' + 'category=' + '\n' + 'notcategory=' + '\n' + 'namespace=' + '\n' + 'ordermethod=sortkey' + '\n' + 'order=ascending' + '\n' + '</DynamicPageList>' |
} |
} |
||
} |
} |
||
Línea 1317: | Línea 1332: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{for|:Category:Residents of {' + '{SUBST:PAGENAME}}|a full list see}}' |
+ | pre: '{' + '{for|:Category:Residents of {' + '{SUBST:PAGENAME}}|a full list see}}' |
} |
} |
||
} |
} |
||
Línea 1326: | Línea 1341: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{Special:PrefixIndex/{' + '{FULLPAGENAME}}/|stripprefix=1}}' |
+ | pre: '{' + '{Special:PrefixIndex/{' + '{FULLPAGENAME}}/|stripprefix=1}}' |
} |
} |
||
} |
} |
||
}, |
}, |
||
'spoiler': { |
'spoiler': { |
||
− | label: '{' + '{spoiler| |
+ | label: '{' + '{spoiler|}}', |
action: { |
action: { |
||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '{' + '{spoiler| |
+ | pre: '\n' + '{' + '{spoiler|}}' |
} |
} |
||
} |
} |
||
}, |
}, |
||
'update': { |
'update': { |
||
− | label: '{' + '{update| |
+ | label: '{' + '{update|}}', |
action: { |
action: { |
||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '{' + '{update| |
+ | pre: '\n' + '{' + '{update|}}' |
} |
} |
||
} |
} |
||
}, |
}, |
||
'demoted': { |
'demoted': { |
||
− | label: '{' + '{demoted| |
+ | label: '{' + '{demoted|}}', |
action: { |
action: { |
||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\n' + '{' + '{demoted| |
+ | pre: '\n' + '{' + '{demoted|}}' |
} |
} |
||
} |
} |
||
Línea 1379: | Línea 1394: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{file ref|Elendel_Daily_broadsheet.png|\'\'The Elendel Daily\'\' broadsheet}}' |
+ | pre: '{' + '{file ref|Elendel_Daily_broadsheet.png|\'\'The Elendel Daily\'\' broadsheet}}' |
} |
} |
||
} |
} |
||
Línea 1388: | Línea 1403: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{file ref|House_Record_broadsheet.jpg|\'\'The House Record\'\' broadsheet}}' |
+ | pre: '{' + '{file ref|House_Record_broadsheet.jpg|\'\'The House Record\'\' broadsheet}}' |
} |
} |
||
} |
} |
||
Línea 1397: | Línea 1412: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '{' + '{file ref|New_Ascendancy_broadsheet.jpg|\'\'The New Ascendancy\'\' broadsheet}}' |
+ | pre: '{' + '{file ref|New_Ascendancy_broadsheet.jpg|\'\'The New Ascendancy\'\' broadsheet}}' |
} |
} |
||
} |
} |
||
Línea 1406: | Línea 1421: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\'\'[[Elendel Daily]]\'\'' |
+ | pre: '\'\'[[Elendel Daily]]\'\'' |
} |
} |
||
} |
} |
||
Línea 1415: | Línea 1430: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\'\'[[House Record]]\'\'' |
+ | pre: '\'\'[[House Record]]\'\'' |
} |
} |
||
} |
} |
||
Línea 1424: | Línea 1439: | ||
type: 'encapsulate', |
type: 'encapsulate', |
||
options: { |
options: { |
||
− | pre: '\'\'[[New Ascendancy]]\'\'' |
+ | pre: '\'\'[[New Ascendancy]]\'\'' |
} |
} |
||
} |
} |
||
Línea 1434: | Línea 1449: | ||
} |
} |
||
} ); |
} ); |
||
− | |||
}; |
}; |
||
Revisión actual del 00:32 28 dic 2021
//change syntax highlighter timeout time ('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js&action=raw&ctype=text/javascript'); syntaxHighlighterConfig = { timeout: 45, } //customize toolbar var customizeToolbar = function() { /* Your code goes here */ //removing original buttons I don't want //Remove default references button $( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', { 'section': 'main', 'group': 'insert', 'tool': 'reference' }); //remove bulleted list button $( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', { 'section': 'advanced', 'group': 'format', 'tool': 'ulist' }); //remove numbered list button $( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', { 'section': 'advanced', 'group': 'format', 'tool': 'olist' }); //remove <br> button so I can replace it with my own <br/> button $( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', { 'section': 'advanced', 'group': 'format', 'tool': 'newline' }); //remove table button $( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', { 'section': 'advanced', 'group': 'insert', 'tool': 'table' }); //remove File button $( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', { 'section': 'main', 'group': 'insert', 'tool': 'file' }); //Adding various buttons // Adding category button to the "main" section $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'main', group: 'insert', tools: { "category": { label: 'Category', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/2/2d/Button_clipboard_category.png', action: { type: 'encapsulate', options: { pre: "[[Category: ", post: "]]" } } } } }); // Adding Artist header button for galleries to the "main" section $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'main', group: 'insert', tools: { "Artist-header": { label: 'Artist header', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/3/3a/Button_av-img.png', action: { type: 'encapsulate', options: { pre: '| <small><center>by {' + '{a|', post: '}}</center></small>' } } } } }); // Adding image template button to the "main" section $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'main', group: 'insert', tools: { "image": { label: 'Image template', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/d/d8/Vector_toolbar_insert_image_button.png', action: { type: 'encapsulate', options: { pre: '{' + '{image|', post: '|side=|width=|caption}}' } } } } }); // Adding Wikipedia link button to the "main" section $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'main', group: 'insert', tools: { "wikipedia": { label: 'Wikipedia', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/c/cb/Button_wikipedia.png', action: { type: 'encapsulate', options: { pre: "[[Wikipedia: ", post: "|]]" } } } } }); // Adding <br/> button to the "main" section $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'main', group: 'insert', tools: { "break": { label: 'Break tag', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/1/13/Button_enter.png', action: { type: 'encapsulate', options: { pre: '<' + 'br />' } } } } }); // Adding link button to the "main" section $('#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'main', group: 'insert', tools: { "link": { label: 'Link', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/9/97/Button_int_link.png', action: { type: 'encapsulate', options: { pre: "[[", post: "]]" } } } } }); // Adding hidden text button to the "main" section $('#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'main', group: 'insert', tools: { "hidden": { label: 'Hidden text', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/1/1b/Button_hide_wiki_tag.png', action: { type: 'encapsulate', options: { pre: "<!--", post: "-->" } } } } }); // Adding columns button to the "main" section $('#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'main', group: 'insert', tools: { "columns": { label: 'Columns', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/2/25/Vector_toolbar_bulleted_list_button.png', action: { type: 'encapsulate', options: { pre: '{' + '{columns|' + '\n', post: '\n' + '}}' } } } } }); // Adding a <code> button to the "main" section $('#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'main', group: 'insert', tools: { "code": { label: 'Code', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/2/23/Button_code.png', action: { type: 'encapsulate', options: { pre: '<' + 'code>', post: '</' + 'code>' } } } } }); //Adding a bunch of dropdowns to the "advanced" section for easy access //Add new references dropdown to the "advanced" section $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', groups: { list: { tools: { references: { label: 'refs', type: 'select', list: { 'book': { label: '{' + '{book ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{book ref|', post: '}}' } } }, 'wob': { label: '{' + '{wob ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{wob ref|', post: '}}' } } }, 'ref': { label: '{' + '{ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{ref|text=', post: '}}' } } }, 'epigraph': { label: '{' + '{epigraph ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{epigraph ref|', post: '}}' } } }, 'au': { label: '{' + '{au ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{au ref|', post: '}}' } } }, 'msh': { label: '{' + '{msh ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{msh ref|', post: '}}' } } }, 'tes': { label: '{' + '{tes ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{tes ref|', post: '}}' } } }, 'file': { label: '{' + '{file ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{file ref|', post: '}}' } } }, 'mapref': { label: '{' + '{map ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{map ref|', post: '}}' } } }, 'url': { label: '{' + '{url ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{url ref|url=', post: '|text=|date=|site=}}' } } }, '17s': { label: '{' + '{17s ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{17s ref|topic/news/post', post: '|id#|description|date=}}' } } } } } } } } } ); //Adding an infobox dropdown to the "advanced" section $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', groups: { list: { tools: { infoboxes: { label: 'infoboxes', type: 'select', list: { 'character': { label: '{' + '{character}}', action: { type: 'encapsulate', options: { pre: '{' + '{character' + '\n' + '|image=' + '\n' + '|unnamed=y' + '\n' + '|merge-family=y' + '\n' + '|parents=' + '\n' + '|spouse=' + '\n' + '|siblings=' + '\n' + '|children=' + '\n' + '|ancestors=' + '\n' + '|relatives=' + '\n' + '|descendants=' + '\n' + '|born=' + '\n' + '|died=' + '\n' + '|abilities=' + '\n' + '|bonded=' + '\n' + '|titles=' + '\n' + '|aliases=' + '\n' + '|skills=' + '\n' + '|achievements=' + '\n' + '|#profession=' + '\n' + '|profession=' + '\n' + '|occupation=' + '\n' + '|religion=' + '\n' + '|groups=' + '\n' + '|species=' + '\n' + '|era=' + '\n' + '|birthplace=' + '\n' + '|residence=' + '\n' + '|ethnicity=' + '\n' + '|nation=' + '\n' + '|nationality=' } } }, 'architecture': { label: '{' + '{architecture}}', action: { type: 'encapsulate', options: { pre: '{' + '{architecture' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|usage=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=' } } }, 'business': { label: '{' + '{business}}', action: { type: 'encapsulate', options: { pre: '{' + '{business' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|founder= / founders=' + '\n' + '|leader= / leaders=' + '\n' + '|members=' + '\n' + '|services=' + '\n' + '|products=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|nation=' } } }, 'culture': { label: '{' + '{culture}}', action: { type: 'encapsulate', options: { pre: '{' + '{culture' + '\n' + '|image=' + '\n' + '|related=' + '\n' + '|type=' + '\n' + '|era=' + '\n' + '|origin=' } } }, 'event': { label: '{' + '{event}}', action: { type: 'encapsulate', options: { pre: '{' + '{event' + '\n' + '|image=' + '\n' + '|partof=' + '\n' + '|date=' + '\n' + '|era=' + '\n' + '|participants=' + '\n' + '|effects=' + '\n' + '|city= / state= / region= / nation=' + '\n' + '|princedom= / dominance=' + '\n' + '|location=' } } }, 'food': { label: '{' + '{food}}', action: { type: 'encapsulate', options: { pre: '{' + '{food' + '\n' + '|image=' + '\n' + '|ingredients=' + '\n' + '|type=' + '\n' + '|taste=' + '\n' + '|origin=' } } }, 'geography': { label: '{' + '{geography}}', action: { type: 'encapsulate', options: { pre: '{' + '{geography' + '\n' + '|map= / |image=' + '\n' + '|type=' + '\n' + '|era=' + '\n' + '|region=' } } }, 'group': { label: '{' + '{group}}', action: { type: 'encapsulate', options: { pre: '{' + '{group' + '\n' + '|image=' + '\n' + '|founder= / founders=' + '\n' + '|leader= / leaders=' + '\n' + '|hq=' + '\n' + '|type=' + '\n' + '|era=' } } }, 'item': { label: '{' + '{item}}', action: { type: 'encapsulate', options: { pre: '{' + '{item' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|creator= / creators=' + '\n' + '|type=' + '\n' + '|function=' } } }, 'lifeform': { label: '{' + '{lifeform}}', action: { type: 'encapsulate', options: { pre: '{' + '{lifeform' + '\n' + '|image=' + '\n' + '|type=' + '\n' + '|abilities=' + '\n' + '|use=' + '\n' + '|native=' + '\n' + '|sapient=y' } } }, 'settlement': { label: '{' + '{settlement}}', action: { type: 'encapsulate', options: { pre: '{' + '{settlement' + '\n' + '|map/image=' + '\n' + '|ruler=' + '\n' + '|occupied=' + '\n' + '|era=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=' } } }, 'location': { label: '{' + '{location}}', action: { type: 'encapsulate', options: { pre: '{' + '{location' + '\n' + '|map/image=' + '\n' + '|capital=' + '\n' + '|ruler=' + '\n' + '|occupied=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=' } } }, 'literature': { label: '{' + '{literature}}', action: { type: 'encapsulate', options: { pre: '{' + '{literature' + '\n' + '|image=' + '\n' + '|type=' + '\n' + '|author=' + '\n' + '|language=' + '\n' + '|era=' } } }, 'vehicle': { label: '{' + '{vehicle}}', action: { type: 'encapsulate', options: { pre: '{' + '{vehicle' + '\n' + '|image=' + '\n' + '|owner/owners=' + '\n' + '|creator/creators=' + '\n' + '|type=' + '\n' + '|captain=' } } } } } } } } } ); //Add new build-a-box dropdown to the "advanced" section $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', groups: { list: { tools: { simplecharacterinfobox: { label: 'build-a-box', type: 'select', list: { 'start': { label: '{' + '{character', action: { type: 'encapsulate', options: { pre: '{' + '{character' } } }, 'residence': { label: '|residence=', action: { type: 'encapsulate', options: { pre: '\n' + '|residence=' } } }, 'imageparam': { label: '|image=', action: { type: 'encapsulate', options: { pre: '\n' + '|image=' } } }, 'profession': { label: '|profession=', action: { type: 'encapsulate', options: { pre: '\n' + '|profession=' } } }, '#profession': { label: '|#profession=', action: { type: 'encapsulate', options: { pre: '\n' + '|#profession=' } } }, 'skills': { label: '|skills=', action: { type: 'encapsulate', options: { pre: '\n' + '|skills=' } } }, 'species': { label: '|species=', action: { type: 'encapsulate', options: { pre: '\n' + '|species=' } } }, 'abilities': { label: '|abilities=', action: { type: 'encapsulate', options: { pre: '\n' + '|abilities=' } } }, 'ethnicity': { label: '|ethnicity=', action: { type: 'encapsulate', options: { pre: '\n' + '|ethnicity=' } } }, 'born': { label: '|born=', action: { type: 'encapsulate', options: { pre: '\n' + '|born=' } } }, 'died': { label: '|died=', action: { type: 'encapsulate', options: { pre: '\n' + '|died=' } } }, 'nationality': { label: '|nationality=', action: { type: 'encapsulate', options: { pre: '\n' + '|nationality=' } } }, 'bonded': { label: '|bonded=', action: { type: 'encapsulate', options: { pre: '\n' + '|bonded=' } } } } } } } } } ); //Add new infobox endings dropdown to the "advanced" section $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', groups: { list: { tools: { endings: { label: 'ends', type: 'select', list: { 'sa': { label: 'Stormlight', action: { type: 'encapsulate', options: { pre: '\n' + '|world=Roshar' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[The Stormlight Archive]]' + '\n' + '}}' } } }, 'mbe1': { label: 'MB Era 1', action: { type: 'encapsulate', options: { pre: '\n' + '|world=Scadrial' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Mistborn Era 1]]' + '\n' + '}}' } } }, 'mbe2': { label: 'MB Era 2', action: { type: 'encapsulate', options: { pre: '\n' + '|world=Scadrial' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Mistborn Era 2]]' + '\n' + '}}' } } }, 'wb': { label: 'Warbreaker', action: { type: 'encapsulate', options: { pre: '\n' + '|world=Nalthis' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Warbreaker]]' + '\n' + '}}' } } }, 'ela': { label: 'Elantris', action: { type: 'encapsulate', options: { pre: '\n' + '|world=Sel' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Elantris (book)|Elantris]]' + '\n' + '}}' } } }, 'alc': { label: 'Alcatraz', action: { type: 'encapsulate', options: { pre: '\n' + '|earth=Alcatraz' + '\n' + '|books=[[Alcatraz Versus the Evil Librarians (series)|Alcatraz Versus the Evil Librarians]]' + '\n' + '}}' } } }, 'ws': { label: 'White Sand', action: { type: 'encapsulate', options: { pre: '\n' + '|world=Taldain' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[White Sand]]' + '\n' + '}}' } } }, 'skyward': { label: 'Skyward', action: { type: 'encapsulate', options: { pre: '\n' + '|world=', post: '\n' + '|universe=[[Cytoverse]]' + '\n' + '|books=[[Skyward (series)]]' + '\n' + '}}' } } } } } } } } } ); //Add new page ends dropdown to the "advanced" section $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', groups: { list: { tools: { bottoms: { label: 'bottoms', type: 'select', list: { 'pagename': { label: '{' + '{SUBST:PAGENAME}}', action: { type: 'encapsulate', options: { pre: '\n' + '\'\'\'{' + '{SUBST:PAGENAME}}\'\'\'' } } }, 'notes': { label: '== Notes ==', action: { type: 'encapsulate', options: { pre: '\n\n' + '== Notes ==' } } }, 'refsection': { label: '<' + 'references/>', action: { type: 'encapsulate', options: { pre: '\n' + '<' + 'references />' } } }, 'stub': { label: '{' + '{stub}}', action: { type: 'encapsulate', options: { pre: '\n' + '{' + '{stub}}' } } }, 'partial': { label: '{' + '{partial}}', action: { type: 'encapsulate', options: { pre: '\n' + '{' + '{partial}}' } } }, 'complete': { label: '{' + '{complete}}', action: { type: 'encapsulate', options: { pre: '\n' + '{' + '{complete}}' } } }, 'alcatraz': { label: '{' + '{Alcatraz}}', action: { type: 'encapsulate', options: { pre: '\n' + '{' + '{Alcatraz}}' } } }, 'elantris': { label: '{' + '{Elantris}}', action: { type: 'encapsulate', options: { pre: '\n' + '{' + '{Elantris}}' } } }, 'mbera1': { label: '{' + '{Mistborn|Era 1}}', action: { type: 'encapsulate', options: { pre: '\n' + '{' + '{Mistborn|Era 1}}' } } }, 'mbera2': { label: '{' + '{Mistborn|Era 2}}', action: { type: 'encapsulate', options: { pre: '\n' + '{' + '{Mistborn|Era 2}}' } } }, 'reckoners': { label: '{' + '{Reckoners}}', action: { type: 'encapsulate', options: { pre: '\n' + '{' + '{Reckoners}}' } } }, 'sky': { label: '{' + '{Skyward}}', action: { type: 'encapsulate', options: { pre: '\n' + '{' + '{Skyward}}' } } }, 'storm': { label: '{' + '{Stormlight}}', action: { type: 'encapsulate', options: { pre: '\n' + '{' + '{Stormlight}}' } } }, 'warbreaker': { label: '{' + '{Warbreaker}}', action: { type: 'encapsulate', options: { pre: '\n' + '{' + '{Warbreaker}}' } } }, 'whitesand': { label: '{' + '{White Sand}}', action: { type: 'encapsulate', options: { pre: '\n' + '{' + '{White Sand}}' } } } } } } } } } ); //Add new art dropdown to the "advanced" section $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', groups: { list: { tools: { art: { label: 'art', type: 'select', list: { 'artistbox': { label: '{' + '{artist}}', action: { type: 'encapsulate', options: { pre: '{'+'{artist' + '\n' + '|image=' + '\n' + '|alias=' + '\n' + '|fb=' + '\n' + '|reddit=' + '\n' + '|behance=' + '\n' + '|da=' + '\n' + '|ig=' + '\n' + '|as=' + '\n' + '|tumblr=' + '\n' + '|twitter=' + '\n' + '|site=' + '\n' + '|license=all|some|none|official' + '\n' + '|contact=' + '\n' + '|type=fan|interior|cover|multimedia' + '\n' + '|no-notify=y' + '\n' + '}}' + '\n' + '\n' + '\n' + '== Gallery ==' + '\n' } } }, 'gallerysubpage': { label: 'gallery subpage', action: { type: 'encapsulate', options: { pre: '== Official artwork ==' + '\n' + '<' + 'gallery mode="packed" heights=200px caption="Official artwork">' + '\n' + '\n' + '</gallery>' + '\n' + '\n' + '== Portraits ==' + '\n' + '<' + 'gallery mode="packed" heights=200px caption="Portraits">' + '\n' + '\n' + '</gallery>' + '\n' + '\n' + '== Scenes ==' + '\n' + '<' + 'gallery mode="packed" heights=200px caption="Scenes">' + '\n' + '\n' + '</gallery>' + '\n' + '\n' + '[' + '[Category:Gallery Subpages]]' } } }, 'artbox': { label: '{' + '{art}}', action: { type: 'encapsulate', options: { pre: '{' + '{art' + '\n' + '|#artist=' + '\n' + '|series=' + '\n' + '|#source=', post: '\n' + '|type=' + '\n' + '}}' } } }, 'artistheading': { label: 'artist header', action: { type: 'encapsulate', options: { pre: '| <small><center>by {' + '{a|', post: '}}</center></small>' } } }, 'bookcovercat': { label: '{' + '{cat tag|Books|book cover}}', action: { type: 'encapsulate', options: { pre: '{' + '{cat tag|Books|book cover}}' } } }, 'charactercat': { label: '{' + '{cat tag|Character images}}', action: { type: 'encapsulate', options: { pre: '{' + '{cat tag|Character images}}' } } }, 'artcat': { label: '{' + '{cat tag|Art}}', action: { type: 'encapsulate', options: { pre: '{' + '{cat tag|Art}}' } } }, 'interiorartcat': { label: '{' + '{cat tag|Interior art}}', action: { type: 'encapsulate', options: { pre: '{' + '{cat tag|Interior art}}' } } }, 'interiorartcat': { label: '{' + '{cat tag|Interior art}}', action: { type: 'encapsulate', options: { pre: '{' + '{cat tag|Interior art}}' } } }, 'officialart': { label: '|official=y', action: { type: 'encapsulate', options: { pre: '|official=y' + '\n' } } }, 'tracer': { label: '|tracer=', action: { type: 'encapsulate', options: { pre: '\n' + '|tracer=' } } }, 'modified': { label: '|modified=', action: { type: 'encapsulate', options: { pre: '\n' + '|modified=' } } }, 'bookparam': { label: '|book=', action: { type: 'encapsulate', options: { pre: '\n' + '|book=' } } }, 'email': { label: 'Email', action: { type: 'encapsulate', options: { pre: '[mailto:', post: ' Email]' } } }, 'clearright': { label: 'clear:right', action: { type: 'encapsulate', options: { pre: '<br style="clear:right;"/>' } } }, 'clearleft': { label: 'clear:left', action: { type: 'encapsulate', options: { pre: '<br style="clear:left;"/>' } } }, 'galleryheader': { label: 'gallery header', action: { type: 'encapsulate', options: { pre: '<' + 'gallery caption="Gallery" mode="packed" heights=200px>' + '\n' } } }, 'endgallery': { label: '</gallery>', action: { type: 'encapsulate', options: { pre: '</gallery>' } } }, 'metadone': { label: '{' + '{meta/done}}', action: { type: 'encapsulate', options: { pre: '{' + '{meta/done}}' } } } } } } } } } ); //Add new dropdown of commonly used tags to the "advanced" section $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', groups: { list: { tools: { tags: { label: 'tags', type: 'select', list: { 'cattag': { label: '{' + '{cat tag|}}', action: { type: 'encapsulate', options: { pre: '{' + '{cat tag|', post: '}}' } } }, 'tagplus': { label: '{' + '{tag+|}}', action: { type: 'encapsulate', options: { pre: '{' + '{tag+|', post: '}}' } } }, 'tag': { label: '{' + '{tag|}}', action: { type: 'encapsulate', options: { pre: '{' + '{tag|', post: '}}' } } }, 'move': { label: '{' + '{move|}}', action: { type: 'encapsulate', options: { pre: '{' + '{move|', post: '}}' } } }, 'merge': { label: '{' + '{merge|}}', action: { type: 'encapsulate', options: { pre: '{' + '{merge|', post: '}}' } } }, 'anchor': { label: '{' + '{anchor|}}', action: { type: 'encapsulate', options: { pre: '{' + '{anchor|', post: '}}' } } }, 'delete': { label: '{' + '{delete}}', action: { type: 'encapsulate', options: { pre: '{' + '{delete}}' } } }, 'cite': { label: '{' + '{cite}}', action: { type: 'encapsulate', options: { pre: '{' + '{cite}}' } } }, 'theory': { label: '{' + '{theory}}', action: { type: 'encapsulate', options: { pre: '{' + '{theory}}' } } }, 'disputed': { label: '{' + '{disputed}}', action: { type: 'encapsulate', options: { pre: '{' + '{disputed}}' } } }, 'expand': { label: '{' + '{expand}}', action: { type: 'encapsulate', options: { pre: '{' + '{expand}}' } } }, 'clarify': { label: '{' + '{clarify}}', action: { type: 'encapsulate', options: { pre: '{' + '{clarify}}' } } }, 'uncanonical': { label: '{' + '{uncanonical}}', action: { type: 'encapsulate', options: { pre: '{' + '{uncanonical}}' } } }, 'copyright': { label: '{' + '{copyright}}', action: { type: 'encapsulate', options: { pre: '{' + '{copyright}}' } } } } } } } } } ); //Add new dropdown for other stuff to the "advanced" section $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', groups: { list: { tools: { references: { label: 'other', type: 'select', list: { 'for': { label: '{' + '{for|', action: { type: 'encapsulate', options: { pre: '{' + '{for|' } } }, 'collapsible': { label: 'Collapsing', action: { type: 'encapsulate', options: { pre: '{| class="mw-collapsible mw-collapsed" width=100%' + '\n' + '|-' + '\n' + '|' + '\n' + '|-' + '\n' + '|' + '\n', post: '\n' + '|}' } } }, //Redirect cat tags 'nominal': { label: 'Nominal', action: { type: 'encapsulate', options: { pre: '[' + '[Category: Nominal redirects]]' } } }, 'structural': { label: 'Structural', action: { type: 'encapsulate', options: { pre: '[' + '[Category: Structural redirects]]' } } }, 'subsection': { label: 'Subsection', action: { type: 'encapsulate', options: { pre: '[' + '[Category: Subsection redirects]]' } } }, 'correction': { label: 'Correction', action: { type: 'encapsulate', options: { pre: '[' + '[Category: Correction redirects]]' } } }, 'forgallery': { label: '{' + '{for|/' + 'Gallery', action: { type: 'encapsulate', options: { pre: '{' + '{for|/Gallery|more images}}' } } }, 'roshardate': { label: '{' + '{rosharan date}}', action: { type: 'encapsulate', options: { pre: '{' + '{rosharan date|', post: '}}' } } }, 'pre': { label: '<pre>', action: { type: 'encapsulate', options: { pre: '<pre>', post: '</pre>' } } }, 'dpl': { label: '<dynamicpagelist>', action: { type: 'encapsulate', options: { pre: '<DynamicPageList>' + '\n' + 'mode=ordered' + '\n' + 'category=' + '\n' + 'notcategory=' + '\n' + 'namespace=' + '\n' + 'ordermethod=sortkey' + '\n' + 'order=ascending' + '\n' + '</DynamicPageList>' } } }, 'forresidents': { label: '{' + '{for|Residents', action: { type: 'encapsulate', options: { pre: '{' + '{for|:Category:Residents of {' + '{SUBST:PAGENAME}}|a full list see}}' } } }, 'prefixindex': { label: 'PrefixIndex', action: { type: 'encapsulate', options: { pre: '{' + '{Special:PrefixIndex/{' + '{FULLPAGENAME}}/|stripprefix=1}}' } } }, 'spoiler': { label: '{' + '{spoiler|}}', action: { type: 'encapsulate', options: { pre: '\n' + '{' + '{spoiler|}}' } } }, 'update': { label: '{' + '{update|}}', action: { type: 'encapsulate', options: { pre: '\n' + '{' + '{update|}}' } } }, 'demoted': { label: '{' + '{demoted|}}', action: { type: 'encapsulate', options: { pre: '\n' + '{' + '{demoted|}}' } } } } } } } } } ); //Add new broadsheet citations dropdown to the "advanced" section $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', groups: { list: { tools: { broadsheets: { label: 'broadsheets', type: 'select', list: { 'elendel-ref': { label: 'Elendel ref', action: { type: 'encapsulate', options: { pre: '{' + '{file ref|Elendel_Daily_broadsheet.png|\'\'The Elendel Daily\'\' broadsheet}}' } } }, 'house-ref': { label: 'House ref', action: { type: 'encapsulate', options: { pre: '{' + '{file ref|House_Record_broadsheet.jpg|\'\'The House Record\'\' broadsheet}}' } } }, 'ascendancy-ref': { label: 'Ascendancy ref', action: { type: 'encapsulate', options: { pre: '{' + '{file ref|New_Ascendancy_broadsheet.jpg|\'\'The New Ascendancy\'\' broadsheet}}' } } }, 'elendel': { label: 'Elendel', action: { type: 'encapsulate', options: { pre: '\'\'[[Elendel Daily]]\'\'' } } }, 'house': { label: 'House', action: { type: 'encapsulate', options: { pre: '\'\'[[House Record]]\'\'' } } }, 'ascendancy': { label: 'Ascendancy', action: { type: 'encapsulate', options: { pre: '\'\'[[New Ascendancy]]\'\'' } } } } } } } } } ); }; /* * Check if view is in edit mode and that the required modules are available. Then, customize the toolbar... * Don't touch below this line! */ if (['edit', 'submit'].indexOf(mw.config.get('wgAction')) !== -1) { mw.loader.using('user.options').then(function() { // This can be the string "0" if the user disabled the preference ([[phab:T54542#555387]]) if (mw.user.options.get('usebetatoolbar') == 1) { $.when( mw.loader.using('ext.wikiEditor'), $.ready ).then(customizeToolbar); } }); }