Hello,
I'm using the MediaWiki:Common.js and want to have the edit bar images
locally but I cannot get them to display.
All I've tried to change is the imageFile line. The following don't work:
"imageFile":
"$wgScriptPath\skins\common\images\editbar\Button_redirect.png",
"imageFile": "\skins\common\images\editbar\Button_redirect.png",
"imageFile": "skins\common\images\editbar\Button_redirect.png",
Even
"imageFile":
"c:\wamp\www\mywikipedia\skins\common\images\editbar\Button_redirect.png",
and
"imageFile":
"http:\\localhost\mywikipedia\skins\common\images\editbar\Button_redirect.png",
don't work. I've also tried backslashes instead of slashes.
Any thoughts about what should work? The original code snippet is below.
Maybe I need to set something in LocalSettings other than
$wgScriptPath = "/mywikipedia"; ?
//This is a modified copy of a script by User:MarkS for extra features
added by User:Voice of All.
// This is based on the original code on Wikipedia:Tools/Editing tools
// To disable this script, add <code>mwCustomEditButtons = [];<code> to
[[Special:Mypage/monobook.js]]
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":
"http://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png",
"speedTip": "Redirect",
"tagOpen": "#REDIRECT [[",
"tagClose": "]]",
"sampleText": "Insert text"};