MediaWiki:Common.js: Difference between revisions

From The Jolly Contrarian
Jump to navigation Jump to search
m (Reverted edits by Amwelladmin (talk) to last revision by Root)
No edit summary
 
(71 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
var customizeToolbar = function() {
/* Good source of edit buttons: http://commons.wikimedia.org/wiki/Mediawiki_edit_toolbar */
if (mwCustomEditButtons) {
  mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/eb/Button_plantilla.png",
    "speedTip": "template {{ }}",
    "tagOpen": "{{",
    "tagClose": "}}",
    "sampleText": "text"}


  mwCustomEditButtons[mwCustomEditButtons.length] = {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/16/Button_fairuse.png",
'sections': {
    "speedTip": "{{tag|xxx}}",
'manual': {
    "tagOpen": "{{tag|",
'type': 'toolbar', // Can also be 'booklet'
    "tagClose": "}}",
'label': 'Manual'
    "sampleText": "text"}
// or 'labelMsg': 'section-manual-label' for a localized label
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'manual',
'groups': {
'tags': {
'label': 'Tags' // or use labelMsg for a localized label, see above
}
}
} );


  mwCustomEditButtons[mwCustomEditButtons.length] = {
$('#wpTextbox1').wikiEditor('addToToolbar', {
    "imageFile": "http://localhost/mediawiki/images/h1.png",
section: 'advanced',
    "speedTip": "h1",
group: 'format',
    "tagOpen": "{{h1|",
tools: {
    "tagClose": "}}",
"template": {
    "sampleText": "text"}
label: 'long dash',
type: 'button',
icon: 'https://jollycontrarian.com/images/5/55/Dash.png',
action: {
type: 'encapsulate',
options: {
pre: "",
post: ""
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'scarequotes',
type: 'button',
icon: 'https://jollycontrarian.com/images/b/ba/Scare.png',
action: {
type: 'encapsulate',
options: {
pre: "",
post: "”"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'apostrophe',
type: 'button',
icon: 'https://jollycontrarian.com/images/5/5b/Apo.png',
action: {
type: 'encapsulate',
options: {
pre: "",
post: ""
}
}
}
}
});


  mwCustomEditButtons[mwCustomEditButtons.length] = {
$('#wpTextbox1').wikiEditor('addToToolbar', {
    "imageFile": "http://localhost/mediawiki/images/h2.png",
section: 'advanced',
    "speedTip": "h2",
group: 'format',
    "tagOpen": "{{h2|",
tools: {
    "tagClose": "}}",
"template": {
    "sampleText": "text"}
label: '{{ - }}',
type: 'button',
icon: 'https://jollycontrarian.com/images/3/30/Template.png',
action: {
type: 'encapsulate',
options: {
pre: "{{",
post: "}}"
}
}
}
}
});


  mwCustomEditButtons[mwCustomEditButtons.length] = {
$('#wpTextbox1').wikiEditor('addToToolbar', {
    "imageFile": "http://localhost/mediawiki/images/h3.png",
section: 'advanced',
    "speedTip": "h3",
group: 'format',
    "tagOpen": "{{h3|",
tools: {
    "tagClose": "}}",
"Substitute": {
    "sampleText": "text"}
label: 'subst:',
type: 'button',
icon: 'https://jollycontrarian.com/images/0/03/Sbs.png',
action: {
type: 'encapsulate',
options: {
pre: "{{subst:",
post: "}}"
}
}
}
}
});


  mwCustomEditButtons[mwCustomEditButtons.length] = {
$('#wpTextbox1').wikiEditor('addToToolbar', {
    "imageFile": "http://localhost/mediawiki/images/h4.png",
section: 'advanced',
    "speedTip": "h4",
group: 'format',
    "tagOpen": "{{h4|",
tools: {
    "tagClose": "}}",
"redirect": {
    "sampleText": "text"}
label: '==>',
type: 'button',
icon: 'https://jollycontrarian.com/images/9/91/Redirect.png',
action: {
type: 'encapsulate',
options: {
pre: "#redirect[[",
post: "]]"
}
}
}
}
});


  mwCustomEditButtons[mwCustomEditButtons.length] = {
$('#wpTextbox1').wikiEditor('addToToolbar', {
    "imageFile": "http://localhost/mediawiki/images/c.png",
section: 'advanced',
    "speedTip": "1 category",
group: 'format',
    "tagOpen": "{{c|",
tools: {
    "tagClose": "}}",
"template": {
    "sampleText": "text"}
label: 'tag',
type: 'button',
icon: 'https://jollycontrarian.com/images/7/76/Tag.png',
action: {
type: 'encapsulate',
options: {
pre: "{{t|",
post: "}}"
}
}
}
}
});


  mwCustomEditButtons[mwCustomEditButtons.length] = {
$('#wpTextbox1').wikiEditor('addToToolbar', {
    "imageFile": "http://localhost/mediawiki/images/c2.png",
section: 'advanced',
    "speedTip": "2 categories",
group: 'format',
    "tagOpen": "{{c2|",
tools: {
    "tagClose": "|}}",
"Prov": {
    "sampleText": "text"}
label: 'isdaprov',
type: 'button',
icon: 'https://jollycontrarian.com/images/5/50/Isd.png',
action: {
type: 'encapsulate',
options: {
pre: "{{isdaprov|",
post: "}}"
}
}
}
}
});


  mwCustomEditButtons[mwCustomEditButtons.length] = {
$('#wpTextbox1').wikiEditor('addToToolbar', {
    "imageFile": "http://localhost/mediawiki/images/c3.png",
section: 'advanced',
    "speedTip": "3 categories",
group: 'format',
    "tagOpen": "{{c3|",
tools: {
    "tagClose": "||}}",
"Prov": {
    "sampleText": "text"}
label: 'euaprov',
type: 'button',
icon: 'https://jollycontrarian.com/images/5/50/eua.png',
action: {
type: 'encapsulate',
options: {
pre: "{{euaprov|",
post: "}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"ietaprov": {
label: 'ietaprov',
type: 'button',
icon: 'https://jollycontrarian.com/images/e/e9/Gms.png',
action: {
type: 'encapsulate',
options: {
pre: "{{ietaprov|",
post: "}}"
}
}
}
}
});


  mwCustomEditButtons[mwCustomEditButtons.length] = {
$('#wpTextbox1').wikiEditor('addToToolbar', {
    "imageFile": "http://localhost/mediawiki/images/c4.png",
section: 'advanced',
    "speedTip": "4 categories",
group: 'format',
    "tagOpen": "{{c4|",
tools: {
    "tagClose": "|||}}",
"gmraprov": {
    "sampleText": "text"}
label: '{{{1}}}|',
type: 'button',
icon: 'https://jollycontrarian.com/images/4/49/blank.png',
action: {
type: 'encapsulate',
options: {
pre: "{{{{{1}}}|",
post: "}}"
}
}
}
}
});


  mwCustomEditButtons[mwCustomEditButtons.length] = {
$('#wpTextbox1').wikiEditor('addToToolbar', {
    "imageFile": "http://localhost/mediawiki/images/b1.png",
section: 'advanced',
    "speedTip": "b1",
group: 'format',
    "tagOpen": "{{b1|",
tools: {
    "tagClose": "}}",
"Equity Derivs": {
    "sampleText": "text"}
label: 'eqderivprov',
type: 'button',
icon: 'https://jollycontrarian.com/images/c/c3/Eqd.png',
action: {
type: 'encapsulate',
options: {
pre: "{{eqderivprov|",
post: "}}"
}
}
}
}
});


  mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://localhost/mediawiki/images/b2.png",
    "speedTip": "b2",
    "tagOpen": "{{b2|",
    "tagClose": "}}",
    "sampleText": "text"}


  mwCustomEditButtons[mwCustomEditButtons.length] = {
$('#wpTextbox1').wikiEditor('addToToolbar', {
    "imageFile": "http://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png",
section: 'advanced',
    "speedTip": "redirect",
group: 'format',
    "tagOpen": "#redirect[[",
tools: {
    "tagClose": "]]",
"template": {
    "sampleText": "pagename"}
label: 'vmcsaprov',
type: 'button',
icon: 'https://jollycontrarian.com/images/3/37/Csa.png',
action: {
type: 'encapsulate',
options: {
pre: "{{vmcsaprov|",
post: "}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'top trumps',
type: 'button',
icon: 'http://jollycontrarian.com/w/images/7/7d/Tag2.png',
action: {
type: 'encapsulate',
options: {
pre: "{{fwmdtt|nickname=",
post: "| imagetype=png| tagline= | documentation= | docscore=0| amendability= |amendscore=0| collateral= | collateralscore =0| transferability= | transferscore =0| leverage= | leveragescore =0| frightometer= | frightscore=0}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'wasteprov',
type: 'button',
icon: 'https://jollycontrarian.com/images/2/27/Wp.png',
action: {
type: 'encapsulate',
options: {
pre: "{{wasteprov|",
post: "}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: 'cddprov',
type: 'button',
icon: 'https://jollycontrarian.com/images/e/ec/Cp.png',
action: {
type: 'encapsulate',
options: {
pre: "{{cddprov|",
post: "}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: '{{g}}',
type: 'button',
icon: 'https://jollycontrarian.com/images/a/a7/Gl.PNG',
action: {
type: 'encapsulate',
options: {
pre: "{{g}}",
post: ""
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: '{{sa}}',
type: 'button',
icon: 'https://jollycontrarian.com/images/7/7c/Sa.PNG',
action: {
type: 'encapsulate',
options: {
pre: "{{sa}}",
post: ""
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: '{{ucits5prov|}}',
type: 'button',
icon: 'https://jollycontrarian.com/images/d/d7/U.PNG',
action: {
type: 'encapsulate',
options: {
pre: "{{ucits5prov|",
post: "}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
"template": {
label: '{{strike|}}',
type: 'button',
icon: 'https://jollycontrarian.com/images/8/83/Aif.PNG',
action: {
type: 'encapsulate',
options: {
pre: "{{strike|",
post: "|}}"
}
}
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'tags',
tools: {
"template": {
label: 'isdamanual',
type: 'button',
icon: 'https://jollycontrarian.com/images/c/c2/MI2002.png',
action: {
type: 'encapsulate',
options: {
pre: "{{isdamanual|",
post: "}}"
}
}
}
}
});


  mwCustomEditButtons[mwCustomEditButtons.length] = {
};
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a0/Button_references_alt.png",
    "speedTip": "falcon head",
    "tagOpen": "{{falconrat|",
    "tagClose": "}}",
    "sampleText": "text"}


  mwCustomEditButtons[mwCustomEditButtons.length] = {
if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/e1/Button_smiley.png",
mw.loader.using( 'user.options' ).then( function () {
    "speedTip": "Arabella Story Tag",
if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) {
    "tagOpen": "{{Arabella|",
$.when(
    "tagClose": "}}",
mw.loader.using( 'ext.wikiEditor' ), $.ready
    "sampleText": "text"}
).then( customizeToolbar );
}
} );
}


  mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png",
    "speedTip": "Arabella Page Tag",
    "tagOpen": "{{Arabellastory}}",
    "tagClose": "",
    "sampleText": ""}


  mwCustomEditButtons[mwCustomEditButtons.length] = {
// Add the customizations to LiquidThreads' edit toolbar, if available
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/bc/Button_guillemet.png",
mw.hook( 'ext.lqt.textareaCreated' ).add( customizeToolbar );
    "speedTip": "Nextprev",
    "tagOpen": "{{nextprev|",
    "tagClose": "}}",
    "sampleText": "{{Arabella|}}|{{Arabella|}}"}


  mwCustomEditButtons[mwCustomEditButtons.length] = {
/* Any JavaScript here will be loaded for all users on every page load. */
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/16/Button_fairuse.png",
    "speedTip": "orcacle",
    "tagOpen": "{{oracle|",
    "tagClose": "}}",
    "sampleText": ""}
    mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://localhost/mediawiki/images/a/a9/Fender_button.png",
    "speedTip": "guitar",
    "tagOpen": "{{g|",
    "tagClose": "}}",
    "sampleText": ""}


    mwCustomEditButtons[mwCustomEditButtons.length] = {
/* Any JavaScript here will be loaded for all users on every page load. */
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3f/Button_attendre.png",
/* Good site for buttons: http://commons.wikimedia.org/wiki/Mediawiki_edit_toolbar */
    "speedTip": "guitar",
    "tagOpen": "{{c|Oracle Timeline}} <small>''[http://localhost/mediawiki/index.php?title=Template: _ _ _-_Oracle&action=edit edit template]''</small><br>",
    "tagClose": "",
    "sampleText": ""}
}

Latest revision as of 15:07, 1 February 2024

var customizeToolbar = function() {

$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	'sections': {
		'manual': {
			'type': 'toolbar', // Can also be 'booklet'
			'label': 'Manual'
			// or 'labelMsg': 'section-manual-label' for a localized label
		}
	}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	'section': 'manual',
	'groups': {
		'tags': {
			'label': 'Tags' // or use labelMsg for a localized label, see above
		}
	}
} );

$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"template": {
			label: 'long dash',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/5/55/Dash.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "—",
					post: ""
				}
			}
		}
	}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"template": {
			label: 'scarequotes',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/b/ba/Scare.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "“",
					post: "”"
				}
			}
		}
	}
});	
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"template": {
			label: 'apostrophe',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/5/5b/Apo.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "’",
					post: ""
				}
			}
		}
	}
});

$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"template": {
			label: '{{ - }}',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/3/30/Template.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{",
					post: "}}"
				}
			}
		}
	}
});	

$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"Substitute": {
			label: 'subst:',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/0/03/Sbs.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{subst:",
					post: "}}"
				}
			}
		}
	}
});	

$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"redirect": {
			label: '==>',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/9/91/Redirect.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "#redirect[[",
					post: "]]"
				}
			}
		}
	}
});	
	

$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"template": {
			label: 'tag',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/7/76/Tag.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{t|",
					post: "}}"
				}
			}
		}
	}
});	

$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"Prov": {
			label: 'isdaprov',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/5/50/Isd.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{isdaprov|",
					post: "}}"
				}
			}
		}
	}
});

$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"Prov": {
			label: 'euaprov',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/5/50/eua.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{euaprov|",
					post: "}}"
				}
			}
		}
	}
});	
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"ietaprov": {
			label: 'ietaprov',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/e/e9/Gms.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{ietaprov|",
					post: "}}"
				}
			}
		}
	}
});	

$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"gmraprov": {
			label: '{{{1}}}|',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/4/49/blank.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{{{{1}}}|",
					post: "}}"
				}
			}
		}
	}
});	

$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"Equity Derivs": {
			label: 'eqderivprov',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/c/c3/Eqd.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{eqderivprov|",
					post: "}}"
				}
			}
		}
	}
});	


$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"template": {
			label: 'vmcsaprov',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/3/37/Csa.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{vmcsaprov|",
					post: "}}"
				}
			}
		}
	}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"template": {
			label: 'top trumps',
			type: 'button',
			icon: 'http://jollycontrarian.com/w/images/7/7d/Tag2.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{fwmdtt|nickname=",
					post: "| imagetype=png| tagline= | documentation= | docscore=0| amendability= |amendscore=0| collateral= | collateralscore =0| transferability= | transferscore =0| leverage= | leveragescore =0| frightometer= | frightscore=0}}"
				}
			}
		}
	}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"template": {
			label: 'wasteprov',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/2/27/Wp.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{wasteprov|",
					post: "}}"
				}
			}
		}
	}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"template": {
			label: 'cddprov',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/e/ec/Cp.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{cddprov|",
					post: "}}"
				}
			}
		}
	}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"template": {
			label: '{{g}}',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/a/a7/Gl.PNG',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{g}}",
					post: ""
				}
			}
		}
	}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"template": {
			label: '{{sa}}',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/7/7c/Sa.PNG',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{sa}}",
					post: ""
				}
			}
		}
	}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"template": {
			label: '{{ucits5prov|}}',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/d/d7/U.PNG',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{ucits5prov|",
					post: "}}"
				}
			}
		}
	}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'format',
	tools: {
		"template": {
			label: '{{strike|}}',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/8/83/Aif.PNG',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{strike|",
					post: "|}}"
				}
			}
		}
	}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
	section: 'advanced',
	group: 'tags',
	tools: {
		"template": {
			label: 'isdamanual',
			type: 'button',
			icon: 'https://jollycontrarian.com/images/c/c2/MI2002.png',
			action: {
				type: 'encapsulate',
				options: {
					pre: "{{isdamanual|",
					post: "}}"
				}
			}
		}
	}
});

};

if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) {
	mw.loader.using( 'user.options' ).then( function () {
		if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) {
			$.when(
				mw.loader.using( 'ext.wikiEditor' ), $.ready
			).then( customizeToolbar );
		}
	} );
}


// Add the customizations to LiquidThreads' edit toolbar, if available
mw.hook( 'ext.lqt.textareaCreated' ).add( customizeToolbar );

/* Any JavaScript here will be loaded for all users on every page load. */

 /* Any JavaScript here will be loaded for all users on every page load. */
 /* Good site for buttons: http://commons.wikimedia.org/wiki/Mediawiki_edit_toolbar */