User:Purodha/common.js
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
// add buttons to the edit page toolbar
if (mwCustomEditButtons)
{
function kshCustomEditButtonInsertIndex(offset)
{
return(offset);
for(var i=mwCustomEditButtons.length; i>offset; --i)
{
mwCustomEditButtons[i] = mwCustomEditButtons[i-1]
}
return(offset)
}
// →[[]] [[Image:Button_arrow_right.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/f/ff/Button_arrow_right.png",
"speedTip": "Loor op",
"tagOpen": "→ [[",
"tagClose": "]]",
"sampleText": "Tittel fun dä Sigk"}
/* „“ [[Image:Button_Anführung.png]] */
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/0/05/Button_Anführung.png",
"speedTip": "Anföhronge",
"tagOpen": "„",
"tagClose": "“",
"sampleText": "Täx"}
/* "" [[Image:Button_quotes.png]] */
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/4/4d/Button_quotes.png",
"speedTip": "Ënglesche Anföhronge",
"tagOpen": '"',
"tagClose": '"',
"sampleText": "Text"}
//big [[Image:Button_big_2.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/c/cb/Button_big_2.png",
"speedTip": "big",
"tagOpen": "<big>",
"tagClose": "</big>",
"sampleText": "Text"}
//small [[Image:Button_small_2.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/1/17/Button_small_2.png",
"speedTip": "small",
"tagOpen": "<small>",
"tagClose": "</small>",
"sampleText": "Tex en klëijn"}
//sup [[Image:Button_sup_2.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/9/99/Button_sup_2.png",
"speedTip": "Huh_jeshtëllt",
"tagOpen": "<sup>",
"tagClose": "</sup>",
"sampleText": "Tëx huh_jeshtëllt"}
//sub [[Image:Button_sub_2.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/e/e5/Button_sub_2.png",
"speedTip": "Noh onge jeshtëllt",
"tagOpen": "<sub>",
"tagClose": "</sub>",
"sampleText": "Noh onge jeshtëllte Tëx"};
//s [[Image:Button_strike.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png",
"speedTip": "Dorschjeschtresche",
"tagOpen": "<s>",
"tagClose": "</s>",
"sampleText": "Dorschjeschtresche Tëx"};
//code [[Image:Button_code.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/2/23/Button_code.png",
"speedTip": "code",
"tagOpen": "<code>",
"tagClose": "</code>",
"sampleText": "Text"}
//span [[Image:Button_span_2.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/7/72/Button_span_2.png",
"speedTip": "span",
"tagOpen": '<span class="plainlinks">',
"tagClose": "</span>",
"sampleText": "Text"}
//en [[Image:Button_l_en.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/6/63/Button_l_en.png",
"speedTip": "Ob_Änglesch",
"tagOpen": "<i lang=\"en\">",
"tagClose": "</i>",
"sampleText": "English text sample"}
// &nbsp; [[Image:Button nbsp 1.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/5/55/Button_nbsp_1.png",
"speedTip": "Enne Zwescheroum, dä nėt ed_Äng fun_enne Rëij wääde kann",
"tagOpen": " ",
"tagClose": "",
"sampleText": ""}
// <br /> [[Image:Button_enter.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png",
"speedTip": "Eng vun de Reij, un nöüje Reij aanfange",
"tagOpen": "<br />",
"tagClose": "",
"sampleText": ""}
//{{}} [[Image:Button_plantilla.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/e/eb/Button_plantilla.png",
"speedTip": "Alls_en Schablohn opprohfe",
"tagOpen": "{{",
"tagClose": "}}",
"sampleText": "Schablon"}
//Forsooch:
// mwCustomEditButtons[mwCustomEditButtons.length] = mwCustomEditButtons[0]
};