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": "https://jollycontrarian.com/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": "https://jollycontrarian.com/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|", | ||
"tagClose": "}}", | "tagClose": "}}", | ||
"sampleText": " | "sampleText": "LongText|Shorttext"} | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
Line 28: | Line 28: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": " | "imageFile": "https://jollycontrarian.com/images/e/ed/Button_I.PNG", | ||
"speedTip": "isdaprov", | "speedTip": "isdaprov", | ||
"tagOpen": "{{isdaprov|", | "tagOpen": "{{isdaprov|", | ||
"tagClose": "}}", | "tagClose": "}}", | ||
"sampleText": "provision"}; | "sampleText": "provision"}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": " | "imageFile": "https://jollycontrarian.com/images/5/56/Button_Ia.PNG", | ||
"speedTip": " | "speedTip": "isdaprov", | ||
"tagOpen": "{{ | "tagOpen": "{{isdaanatomy", | ||
"tagClose": "}}", | "tagClose": "}}", | ||
"sampleText": " | "sampleText": ""}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/29/Button_double_angle_quotes_with_ellipsis.png", | "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/29/Button_double_angle_quotes_with_ellipsis.png", | ||
Line 47: | Line 47: | ||
"tagClose": "|SECTION|2002}}", | "tagClose": "|SECTION|2002}}", | ||
"sampleText": "Provision"}; | "sampleText": "Provision"}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "https://jollycontrarian.com/images/5/55/Button_GTMA.PNG", | |||
"speedTip": "GTMAclause", | |||
"tagOpen": "{{GTMAclause|", | |||
"tagClose": "}}", | |||
"sampleText": "clause no"}; | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "https://jollycontrarian.com/images/a/a7/Button_G.PNG", | |||
"speedTip": "gtmaaprov", | |||
"tagOpen": "{{gtmaprov|", | |||
"tagClose": "}}", | |||
"sampleText": "provision"}; | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
Line 57: | Line 71: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/94/Vector_toolbar_insert_new_line_button.png", | "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/94/Vector_toolbar_insert_new_line_button.png", | ||
"speedTip": " | "speedTip": "linebreak", | ||
"tagOpen": "<br", | "tagOpen": "<br", | ||
"tagClose": ">", | "tagClose": ">", |
Revision as of 09:57, 16 July 2012
/* 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": "https://jollycontrarian.com/images/e/e2/Button_Tag.PNG", "speedTip": "tag (links and categorises)", "tagOpen": "{{tag|", "tagClose": "}}", "sampleText": "text"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://jollycontrarian.com/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": "https://jollycontrarian.com/images/e/ed/Button_I.PNG", "speedTip": "isdaprov", "tagOpen": "{{isdaprov|", "tagClose": "}}", "sampleText": "provision"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://jollycontrarian.com/images/5/56/Button_Ia.PNG", "speedTip": "isdaprov", "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": "https://jollycontrarian.com/images/5/55/Button_GTMA.PNG", "speedTip": "GTMAclause", "tagOpen": "{{GTMAclause|", "tagClose": "}}", "sampleText": "clause no"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://jollycontrarian.com/images/a/a7/Button_G.PNG", "speedTip": "gtmaaprov", "tagOpen": "{{gtmaprov|", "tagClose": "}}", "sampleText": "provision"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/18/Button_quotes_2.png", "speedTip": "gtmaquote", "tagOpen": "{{gtmaquote|", "tagClose": "|REFERENCE}}", "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": "https://jollycontrarian.com/images/b/ba/Clausebutton.png", "speedTip": "<br>", "tagOpen": "{{clause|", "tagClose": "}}", "sampleText": "SHORTNAME|AGREEMENT|EDITION|CLAUSE"}; } {{clause|SHORTNAME|AGREEMENT|EDITION|CLAUSE}}