MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Amwelladmin (talk | contribs) Undo revision 10189 by Amwelladmin (talk) |
Amwelladmin (talk | contribs) m Reverted edits by Amwelladmin (talk) to last revision by Root |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | |||
/* 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] = { | |||
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/16/Button_fairuse.png", | |||
"speedTip": "{{tag|xxx}}", | |||
"tagOpen": "{{tag|", | |||
"tagClose": "}}", | |||
"sampleText": "text"} | |||
} | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://localhost/mediawiki/images/h1.png", | |||
"speedTip": "h1", | |||
"tagOpen": "{{h1|", | |||
"tagClose": "}}", | |||
"sampleText": "text"} | |||
} | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": "http://localhost/mediawiki/images/h2.png", | |||
"speedTip": "h2", | |||
"tagOpen": "{{h2|", | |||
"tagClose": "}}", | |||
"sampleText": "text"} | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://localhost/mediawiki/images/h3.png", | |||
"speedTip": "h3", | |||
"tagOpen": "{{h3|", | |||
"tagClose": "}}", | |||
"sampleText": "text"} | |||
} | |||
} | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": "http://localhost/mediawiki/images/h4.png", | |||
"speedTip": "h4", | |||
"tagOpen": "{{h4|", | |||
"tagClose": "}}", | |||
"sampleText": "text"} | |||
// | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": "http://localhost/mediawiki/images/c.png", | |||
"speedTip": "1 category", | |||
"tagOpen": "{{c|", | |||
"tagClose": "}}", | |||
"sampleText": "text"} | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://localhost/mediawiki/images/c2.png", | |||
"speedTip": "2 categories", | |||
"tagOpen": "{{c2|", | |||
"tagClose": "|}}", | |||
"sampleText": "text"} | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://localhost/mediawiki/images/c3.png", | |||
"speedTip": "3 categories", | |||
"tagOpen": "{{c3|", | |||
"tagClose": "||}}", | |||
"sampleText": "text"} | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://localhost/mediawiki/images/c4.png", | |||
"speedTip": "4 categories", | |||
"tagOpen": "{{c4|", | |||
"tagClose": "|||}}", | |||
"sampleText": "text"} | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://localhost/mediawiki/images/b1.png", | |||
"speedTip": "b1", | |||
"tagOpen": "{{b1|", | |||
"tagClose": "}}", | |||
"sampleText": "text"} | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://localhost/mediawiki/images/b2.png", | |||
"speedTip": "b2", | |||
"tagOpen": "{{b2|", | |||
"tagClose": "}}", | |||
"sampleText": "text"} | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png", | |||
"speedTip": "redirect", | |||
"tagOpen": "#redirect[[", | |||
"tagClose": "]]", | |||
"sampleText": "pagename"} | |||
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] = { | |||
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/e1/Button_smiley.png", | |||
"speedTip": "Arabella Story Tag", | |||
"tagOpen": "{{Arabella|", | |||
"tagClose": "}}", | |||
"sampleText": "text"} | |||
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] = { | |||
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/bc/Button_guillemet.png", | |||
"speedTip": "Nextprev", | |||
"tagOpen": "{{nextprev|", | |||
"tagClose": "}}", | |||
"sampleText": "{{Arabella|}}|{{Arabella|}}"} | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"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] = { | |||
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3f/Button_attendre.png", | |||
"speedTip": "guitar", | |||
"tagOpen": "{{c|Oracle Timeline}} <small>''[http://localhost/mediawiki/index.php?title=Template: _ _ _-_Oracle&action=edit edit template]''</small><br>", | |||
"tagClose": "", | |||
"sampleText": ""} | |||
} |
Revision as of 12:10, 22 December 2015
/* Any JavaScript here will be loaded for all users on every page load. */ /* 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] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/16/Button_fairuse.png", "speedTip": "{{tag|xxx}}", "tagOpen": "{{tag|", "tagClose": "}}", "sampleText": "text"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://localhost/mediawiki/images/h1.png", "speedTip": "h1", "tagOpen": "{{h1|", "tagClose": "}}", "sampleText": "text"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://localhost/mediawiki/images/h2.png", "speedTip": "h2", "tagOpen": "{{h2|", "tagClose": "}}", "sampleText": "text"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://localhost/mediawiki/images/h3.png", "speedTip": "h3", "tagOpen": "{{h3|", "tagClose": "}}", "sampleText": "text"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://localhost/mediawiki/images/h4.png", "speedTip": "h4", "tagOpen": "{{h4|", "tagClose": "}}", "sampleText": "text"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://localhost/mediawiki/images/c.png", "speedTip": "1 category", "tagOpen": "{{c|", "tagClose": "}}", "sampleText": "text"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://localhost/mediawiki/images/c2.png", "speedTip": "2 categories", "tagOpen": "{{c2|", "tagClose": "|}}", "sampleText": "text"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://localhost/mediawiki/images/c3.png", "speedTip": "3 categories", "tagOpen": "{{c3|", "tagClose": "||}}", "sampleText": "text"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://localhost/mediawiki/images/c4.png", "speedTip": "4 categories", "tagOpen": "{{c4|", "tagClose": "|||}}", "sampleText": "text"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://localhost/mediawiki/images/b1.png", "speedTip": "b1", "tagOpen": "{{b1|", "tagClose": "}}", "sampleText": "text"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://localhost/mediawiki/images/b2.png", "speedTip": "b2", "tagOpen": "{{b2|", "tagClose": "}}", "sampleText": "text"} mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png", "speedTip": "redirect", "tagOpen": "#redirect[[", "tagClose": "]]", "sampleText": "pagename"} 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] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/e1/Button_smiley.png", "speedTip": "Arabella Story Tag", "tagOpen": "{{Arabella|", "tagClose": "}}", "sampleText": "text"} 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] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/bc/Button_guillemet.png", "speedTip": "Nextprev", "tagOpen": "{{nextprev|", "tagClose": "}}", "sampleText": "{{Arabella|}}|{{Arabella|}}"} mwCustomEditButtons[mwCustomEditButtons.length] = { "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] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3f/Button_attendre.png", "speedTip": "guitar", "tagOpen": "{{c|Oracle Timeline}} <small>''[http://localhost/mediawiki/index.php?title=Template: _ _ _-_Oracle&action=edit edit template]''</small><br>", "tagClose": "", "sampleText": ""} }