MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Amwelladmin (talk | contribs) No edit summary |
Amwelladmin (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": " | "imageFile": "http://amwellclear.co.uk/w/images/e/e2/Button_Tag.PNG", | ||
"speedTip": "tag (links and categorises)", | "speedTip": "tag (links and categorises)", | ||
"tagOpen": "{{tag|", | "tagOpen": "{{tag|", | ||
Line 14: | Line 14: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": " | "imageFile": "http://amwellclear.co.uk/w/images/b/b8/Button_Tg2.PNG", | ||
"speedTip": "tag (links and categorises and allows a short name)", | "speedTip": "tag (links and categorises and allows a short name)", | ||
"tagOpen": "{{t2|", | "tagOpen": "{{t2|", | ||
Line 28: | Line 28: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": " | "imageFile": "http://amwellclear.co.uk/w/images/e/ed/Button_I.PNG", | ||
"speedTip": "isdaprov", | "speedTip": "isdaprov", | ||
"tagOpen": "{{isdaprov|", | "tagOpen": "{{isdaprov|", | ||
Line 35: | Line 35: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": " | "imageFile": "http://amwellclear.co.uk/w/images/5/56/Button_Ia.PNG", | ||
"speedTip": "isdaanatomy", | "speedTip": "isdaanatomy", | ||
"tagOpen": "{{isdaanatomy}}", | "tagOpen": "{{isdaanatomy}}", | ||
Line 49: | Line 49: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": " | "imageFile": "http://amwellclear.co.uk/w/images/a/a7/Button_G.PNG", | ||
"speedTip": "gmraprov", | "speedTip": "gmraprov", | ||
"tagOpen": "{{gmraprov|", | "tagOpen": "{{gmraprov|", | ||
Line 63: | Line 63: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": " | "imageFile": "http://amwellclear.co.uk/w/images/b/ba/Clausebutton.png", | ||
"speedTip": "clause", | "speedTip": "clause", | ||
"tagOpen": "{{clause|", | "tagOpen": "{{clause|", | ||
Line 70: | Line 70: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": " | "imageFile": "http://amwellclear.co.uk/w/images/d/d6/Button_ccp.PNG", | ||
"speedTip": "ccp", | "speedTip": "ccp", | ||
"tagOpen": "{{ccp|", | "tagOpen": "{{ccp|", | ||
Line 77: | Line 77: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": " | "imageFile": "http://amwellclear.co.uk/w/images/c/cd/Button_cdea.PNG", | ||
"speedTip": "cassprov", | "speedTip": "cassprov", | ||
"tagOpen": "{{cassprov|", | "tagOpen": "{{cassprov|", | ||
Line 151: | Line 151: | ||
"speedTip": "osla", | "speedTip": "osla", | ||
"tagOpen": "{{oslaprov|", | "tagOpen": "{{oslaprov|", | ||
"tagClose": "}}", | |||
"sampleText": "text"}; | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/bb/Wiki-button-italic-be.png", | |||
"speedTip": "pca", | |||
"tagOpen": "{{pcaprov|", | |||
"tagClose": "}}", | "tagClose": "}}", | ||
"sampleText": "text"}; | "sampleText": "text"}; | ||
} | } |
Revision as of 16:18, 22 April 2014
/* 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 */ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://amwellclear.co.uk/w/images/e/e2/Button_Tag.PNG", "speedTip": "tag (links and categorises)", "tagOpen": "{{tag|", "tagClose": "}}", "sampleText": "text"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://amwellclear.co.uk/w/images/b/b8/Button_Tg2.PNG", "speedTip": "tag (links and categorises and allows a short name)", "tagOpen": "{{t2|", "tagClose": "}}", "sampleText": "LongText|Shorttext"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#REDIRECT [[", "tagClose": "]]", "sampleText": "Insert text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://amwellclear.co.uk/w/images/e/ed/Button_I.PNG", "speedTip": "isdaprov", "tagOpen": "{{isdaprov|", "tagClose": "}}", "sampleText": "provision"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://amwellclear.co.uk/w/images/5/56/Button_Ia.PNG", "speedTip": "isdaanatomy", "tagOpen": "{{isdaanatomy}}", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/29/Button_double_angle_quotes_with_ellipsis.png", "speedTip": "isdaquote", "tagOpen": "{{isdaquote|", "tagClose": "|SECTION|2002}}", "sampleText": "Provision"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://amwellclear.co.uk/w/images/a/a7/Button_G.PNG", "speedTip": "gmraprov", "tagOpen": "{{gmraprov|", "tagClose": "}}", "sampleText": "provision"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/94/Vector_toolbar_insert_new_line_button.png", "speedTip": "linebreak", "tagOpen": "<br>", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://amwellclear.co.uk/w/images/b/ba/Clausebutton.png", "speedTip": "clause", "tagOpen": "{{clause|", "tagClose": "}}", "sampleText": "SHORTNAME|AGREEMENT|EDITION|CLAUSE"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://amwellclear.co.uk/w/images/d/d6/Button_ccp.PNG", "speedTip": "ccp", "tagOpen": "{{ccp|", "tagClose": "}}", "sampleText": "text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://amwellclear.co.uk/w/images/c/cd/Button_cdea.PNG", "speedTip": "cassprov", "tagOpen": "{{cassprov|", "tagClose": "}}", "sampleText": "text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/50/Vector_toolbar_italic_C_button.png", "speedTip": "csaprov", "tagOpen": "{{csaprov|", "tagClose": "}}", "sampleText": "text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_API_%C9%9B.png", "speedTip": "eqderivprov", "tagOpen": "{{eqderivprov|", "tagClose": "}}", "sampleText": "text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/94/Subst-button-bg.png", "speedTip": "subst", "tagOpen": "{{subst:", "tagClose": "}}", "sampleText": "text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/01/Button_enum.gif", "speedTip": "TOC", "tagOpen": "{{YEAR AGREEMENT Section NUMBER TOC}}", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/17/Button_small_2.png", "speedTip": "FCA Rulebook term", "tagOpen": "{{fcaprov|", "tagClose": "}}", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a4/Vector_toolbar_bold_G_button.png", "speedTip": "GMSLAprov", "tagOpen": "{{gmslaprov|", "tagClose": "}}", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/fe/Button_context.png", "speedTip": "CASS", "tagOpen": "{{cassprov|", "tagClose": "}}", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/b4/Button_category03.png", "speedTip": "BIPRU", "tagOpen": "{{bipruprov|", "tagClose": "}}", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/77/Button_cyrillic_capital_fita.png", "speedTip": "Oracle", "tagOpen": "{{oracle|", "tagClose": "}}", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/cd/Button_recycler.png", "speedTip": "osla", "tagOpen": "{{oslaprov|", "tagClose": "}}", "sampleText": "text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/bb/Wiki-button-italic-be.png", "speedTip": "pca", "tagOpen": "{{pcaprov|", "tagClose": "}}", "sampleText": "text"}; }