Diferencia entre revisiones de «Usuario:King of Herdaz/common.js»

m
sin resumen de edición
m
m
 
(No se muestran 171 ediciones intermedias del mismo usuario)
/* Your code goes here */
 
//removing original buttons I don't want
//add new section to editing toolbar
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'sections': {
'snippets': {
'type': 'booklet',
'label': 'Useful Stuff',
'pages': {
//page of art stuff
'section-art': {
'label': 'Art stuff',
'layout': 'characters',
'characters': [
{
'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'
}
},
'label': '{' + '{artist}}'
},
{
'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]]'
}
},
'label': 'Gallery subpage'
},
{
'action': {
'type': 'encapsulate',
'options': {
'pre': '{' + '{art' + '\n' + '|#artist=' + '\n' + '|series=' + '\n' + '|#source=',
'post': '\n' + '|type=' + '\n' + '}}'
}
},
'label': 'Art infobox'
},
{
'action': {
'type': 'encapsulate',
'options': {
'pre': '<small><center>by {' + '{a|',
'post': '}}</center></small>'
}
},
'label': 'Artist heading'
},
'{' + '{cat tag|Books|book cover}}',
'{' + '{cat tag|Character images}}',
'{' + '{cat tag|Art}}',
'{' + '{cat tag|Interior art}}',
'|official=y' + '\n',
'\n' + '|tracer=',
'\n' + '|modified=',
'\n' + '|book=',
'\n' + '|series=',
{
'action': {
'type': 'encapsulate',
'options': {
'pre': '[mailto:',
'post': ' Email]'
}
},
'label': 'Email'
},
'<br style="clear:right;"/>',
'<' + 'gallery caption="Gallery" mode="packed" heights=200px>' + '\n',
]
},
//page of other useful stuff
'section-tags': {
'label': 'Other Stuff',
'layout': 'characters',
'characters': [
'\n' + '{' + '{spoiler|sa4}}',
'\n' + '{' + '{update|sa4}}',
'\n' + '{' + '{demoted|sa4}}',
'{' + '{for|/Gallery|more images}}',
'\n' + '{' + '{columns|count=2|',
'<br/>',
{
'action': {
'type': 'encapsulate',
'options': {
'pre': '{' + '{Rosharan date|',
'post': '}}'
}
},
'label': '{' + '{Rosharan date}}'
},
{
'action': {
'type': 'encapsulate',
'options': {
'pre': '<pre>',
'post': '</pre>'
}
},
'label': '<pre>'
},
{
'action': {
'type': 'encapsulate',
'options': {
'pre': '{' + '{cat tag|',
'post': '}}'
}
},
'label': '{' + '{cat tag|}}'
},
{
'action': {
'type': 'encapsulate',
'options': {
'pre': '{' + '{tag+|',
'post': '}}'
}
},
'label': '{' + '{tag+|}}'
},
{
'action': {
'type': 'encapsulate',
'options': {
'pre': '{' + '{tag|',
'post': '}}'
}
},
'label': '{' + '{tag|}}'
},
'{' + '{expand}}',
'{' + '{cite}}',
'{' + '{delete}}',
'{' + '{clarify}}',
'{' + '{disputed}}',
{
'action': {
'type': 'encapsulate',
'options': {
'pre': '{' + '{move|',
'post': '}}'
}
},
'label': '{' + '{move|}}'
},
{
'action': {
'type': 'encapsulate',
'options': {
'pre': '{' + '{merge|',
'post': '}}'
}
},
'label': '{' + '{merge|}}'
},
{
'action': {
'type': 'encapsulate',
'options': {
'pre': '{' + '{anchor|',
'post': '}}'
}
},
'label': '{' + '{anchor|}}'
},
'{' + '{theory}}',
'{' + '{uncanonical}}',
'{' + '{copyright}}',
{
'action': {
'type': 'encapsulate',
'options': {
'pre': '<code>',
'post': '</code>'
}
},
'label': '<code>'
},
{
'action': {
'type': 'encapsulate',
'options': {
'pre': '<strike>',
'post': '</strike>'
}
},
'label': '<strike>'
},
{
'action': {
'type': 'encapsulate',
'options': {
'pre': '<DynamicPageList>' + '\n' + 'mode=ordered' + '\n' + 'category=' + '\n' + 'notcategory=' + '\n' + 'namespace=' + '\n' + 'ordermethod=sortkey' + '\n' + 'order=ascending' + '\n' + '</DynamicPageList>'
}
},
'label': '<dynamicpagelist>'
},
'{' + '{for|:Category:Residents of {' + '{SUBST:PAGENAME}}|a full list see}}',
'{' + '{Special:PrefixIndex/{' + '{FULLPAGENAME}}/|stripprefix=1}}',
]
},
//page of commonly used infoboxes
'section-infoboxes': {
'label': 'Infoboxes',
'layout': 'characters',
'characters': [
'{'+'{architecture',
'{'+'{business',
'{'+'{character',
'{'+'{event',
'{'+'{food',
'{'+'{geography',
'{'+'{group',
'{'+'{item',
'{'+'{lifeform',
'{'+'{literature',
'{'+'{location',
'{'+'{settlement',
'{'+'{vehicle',
]
},
//page of commonly used infobox parameters
'section-params': {
'label': 'Infobox Parameters',
'layout': 'characters',
'characters': [
'\n' + '|residence=',
'\n' + '|profession=',
'\n' + '|#profession=',
'\n' + '|species=',
'\n' + '|abilities=',
'\n' + '|ethnicity=',
'\n' + '|born=',
'\n' + '|died=',
'\n' + '|nationality=',
'\n' + '|image=',
'\n' + '|residence=',
'\n' + '|world=Scadrial',
'\n' + '|world=Roshar',
'\n' + '|world=Nalthis',
'\n' + '|world=Taldain',
'\n' + '|earth=Alcatraz',
'\n' + '|universe=[[Cosmere]]',
'\n' + '|books=[[Mistborn Era 1]]' + '\n' + '}}',
'\n' + '|books=[[Mistborn Era 2]]' + '\n' + '}}',
'\n' + '|books=[[The Stormlight Archive]]' + '\n' + '}}',
'\n' + '|books=[[Warbreaker]]' + '\n' + '}}',
//alcatraz is very long so I had to do it differently
{
'action': {
'type': 'encapsulate',
'options': {
'pre': '\n' + '|books=[[Alcatraz Versus the Evil Librarians (series)|Alcatraz Versus the Evil Librarians]]' + '\n' + '}}'
}
},
'label': '|books=Alcatraz'
},
]
},
//page of stuff commonly used at the end of a page
'section-bottom': {
'label': 'Bottom of Page',
'layout': 'characters',
'characters': [
'== Notes ==',
'\n' + '<' + 'references/>',
'\n' + '{' + '{stub}}',
'\n' + '{' + '{partial}}',
'\n' + '{' + '{complete}}',
'\n' + '{' + '{Alcatraz}}',
'\n' + '{' + '{Elantris}}',
'\n' + '{' + '{Mistborn|Era 1}}',
'\n' + '{' + '{Mistborn|Era 2}}',
'\n' + '{' + '{Reckoners}}',
'\n' + '{' + '{Skyward}}',
'\n' + '{' + '{Stormlight}}',
'\n' + '{' + '{Warbreaker}}',
'\n' + '{' + '{White Sand}}',
]
}
}
}
}
});
 
//Remove Adddefault categoryreferences button to the "advanced" section
$( '#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: 'advancedmain',
group: 'insert',
tools: {
});
 
// AddAdding imageArtist templateheader button for galleries to the "advancedmain" section
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advancedmain',
group: 'insert',
tools: {
"categoryArtist-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',
});
 
// AddAdding Wikipedia link button to the "advancedmain" section
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advancedmain',
group: 'insert',
tools: {
"categorywikipedia": {
label: 'Wikipedia',
type: 'button',
});
 
// AddAdding signature<br/> button to the "advancedmain" section
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advancedmain',
group: 'formatinsert',
tools: {
"categorybreak": {
label: 'SignatureBreak tag',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/d1/d113/Button_mysignatureButton_enter.png',
action: {
type: 'encapsulate',
options: {
pre: '~~<' + '~~br />'
}
}
});
 
// AddAdding link button to the "advancedmain" section
$('#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advancedmain',
group: 'formatinsert',
tools: {
"commentlink": {
label: 'Link',
type: 'button',
});
 
// AddAdding hidden text button to the "advancedmain" section
$('#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advancedmain',
group: 'formatinsert',
tools: {
"commenthidden": {
label: 'Hidden text',
type: 'button',
type: 'encapsulate',
options: {
pre: "<!-- ",
post: " -->"
}
}
});
 
// AddAdding columns button to the "advancedmain" section
$('#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advancedmain',
group: 'formatinsert',
tools: {
"commentcolumns": {
label: 'Columns',
type: 'button',
});
 
//Remove defaultAdding referencesa <code> button to the "main" section
$( '#wpTextbox1' ).wikiEditor( 'removeFromToolbaraddToToolbar', {
' section': 'main',
' group': 'insert',
tools: {
'tool': 'reference'
"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
tools: {
references: {
label: 'Referencesrefs',
type: 'select',
list: {
'book-button': {
label: '{' + '{book ref}}',
action: {
}
},
'wob-button': {
label: '{' + '{wob ref}}',
action: {
}
},
'ref-button': {
label: '{' + '{ref}}',
action: {
}
},
'epigraph-button': {
label: '{' + '{epigraph ref}}',
action: {
}
},
'au-button': {
label: '{' + '{au ref}}',
action: {
}
},
'msh-button': {
label: '{' + '{msh ref}}',
action: {
}
},
'file-buttontes': {
label: '{' + '{tes ref}}',
action: {
type: 'encapsulate',
options: {
pre: '{' + '{tes ref|',
post: '}}'
}
}
},
'file': {
label: '{' + '{file ref}}',
action: {
}
},
'url-buttonmapref': {
label: '{' + '{map ref}}',
action: {
type: 'encapsulate',
options: {
pre: '{' + '{map ref|',
post: '}}'
}
}
},
'url': {
label: '{' + '{url ref}}',
action: {
}
},
'17s-button': {
label: '{' + '{17s ref}}',
action: {
tools: {
infoboxes: {
label: 'Infoboxesinfoboxes',
type: 'select',
list: {
'character-button': {
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=',
post: ''
}
}
},
'architecture-button': {
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=',
post: ''
}
}
},
'business-button': {
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=',
post: ''
}
}
},
'culture-button': {
label: '{' + '{culture}}',
action: {
type: 'encapsulate',
options: {
pre: '{' + '{culture' + '\n' + '|image=' + '\n' + '|related=' + '\n' + '|type=' + '\n' + '|era=' + '\n' + '|origin=',
post: ''
}
}
},
'event-button': {
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=',
post: ''
}
}
},
'food-button': {
label: '{' + '{food}}',
action: {
type: 'encapsulate',
options: {
pre: '{' + '{food' + '\n' + '|image=' + '\n' + '|ingredients=' + '\n' + '|type=' + '\n' + '|taste=' + '\n' + '|origin=',
post: ''
}
}
},
'geography-button': {
label: '{' + '{geography}}',
action: {
type: 'encapsulate',
options: {
pre: '{' + '{geography' + '\n' + '|map= / |image=' + '\n' + '|type=' + '\n' + '|era=' + '\n' + '|region=',
post: ''
}
}
},
'group-button': {
label: '{' + '{group}}',
action: {
type: 'encapsulate',
options: {
pre: '{' + '{group' + '\n' + '|image=' + '\n' + '|founder= / founders=' + '\n' + '|leader= / leaders=' + '\n' + '|hq=' + '\n' + '|type=' + '\n' + '|era=',
post: ''
}
}
},
'item-button': {
label: '{' + '{item}}',
action: {
type: 'encapsulate',
options: {
pre: '{' + '{item' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|creator= / creators=' + '\n' + '|type=' + '\n' + '|function=',
post: ''
}
}
},
'lifeform-button': {
label: '{' + '{lifeform}}',
action: {
type: 'encapsulate',
options: {
pre: '{' + '{lifeform' + '\n' + '|image=' + '\n' + '|type=' + '\n' + '|abilities=' + '\n' + '|use=' + '\n' + '|native=' + '\n' + '|sapient=y',
post: ''
}
}
},
'settlement-button': {
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=',
post: ''
}
}
},
'location-button': {
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=',
post: ''
}
}
},
'literature-button': {
label: '{' + '{literature}}',
action: {
type: 'encapsulate',
options: {
pre: '{' + '{literature' + '\n' + '|image=' + '\n' + '|type=' + '\n' + '|author=' + '\n' + '|language=' + '\n' + '|era=',
post: ''
}
}
},
'vehicle-button': {
label: '{' + '{vehicle}}',
action: {
type: 'encapsulate',
options: {
pre: '{' + '{vehicle' + '\n' + '|image=' + '\n' + '|owner/owners=' + '\n' + '|creator/creators=' + '\n' + '|type=' + '\n' + '|captain=',
post: ''
}
}
} );
 
//Add new broadsheet citationsbuild-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',
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-buttonref': {
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: '{\' + \'{file ref|Elendel_Daily_broadsheet.png|''The [[Elendel Daily]]\'\' Broadsheet}}',
post: ''
}
}
},
'house-button': {
label: 'House',
action: {
type: 'encapsulate',
options: {
pre: '{\' + \'{file ref|House_Record_broadsheet.jpg|''The [[House Record]]\'\' Broadsheet}}',
post: ''
}
}
},
'ascendency-buttonascendancy': {
label: 'AscendencyAscendancy',
action: {
type: 'encapsulate',
options: {
pre: '{\' + \'{file ref|New_Ascendancy_broadsheet.jpg|''The [[New AscendencyAscendancy]]\'\' Broadsheet}}',
post: ''
}
}
8718

ediciones