User talk:MarkS/Extra edit buttons: Difference between revisions
No edit summary |
→Breaks table sorting?: Fixed |
||
Line 130: | Line 130: | ||
I'm using an out-of-the-box installation of MediaWiki 1.9.3 and my sortable tables are no longer sortable. Testing on Wikipedia, I see the same thing; when I'm using the extra edit buttons, I cannot sort tables. |
I'm using an out-of-the-box installation of MediaWiki 1.9.3 and my sortable tables are no longer sortable. Testing on Wikipedia, I see the same thing; when I'm using the extra edit buttons, I cannot sort tables. |
||
:This should now be fixed. The problem arose because both sortable tables and XEB had a function with an identical name (getElement ByClassName if I remember). This is a function I grabbed off the net and is incredibly useful. I've renamed the XEB version but the issue could arise somewhere else with another script. --<font color="blue">[[User:MarkS|Mark]]</font><font color="#0080A0">[[User:MarkS|S]]</font>([[User_talk:MarkS|<sup>talk</sup>]]) 21:10, 1 May 2007 (UTC) |
|||
== Does it work on other Wikimedia Wikis? == |
== Does it work on other Wikimedia Wikis? == |
Revision as of 21:10, 1 May 2007
Hi there,
We are desperately looking for the extended toolbar, aspecially for tables, only... Where is the 'monobook.js'? It's not in the mediawiki files I downloaded on 10 Jan. 2007 from the official site... So the 'simple' install just doesn't work. Please give instructions how to add this for a user who just downloaded the wiki package, installed it and doesn't know diddly about it otherwise.
Many thanks, Marc
Hi Mark,
This is interesting. How to add this for my site? Can we do this without editing the EditPage.php.
Thanks Vasu
May you please add a button for right to left align?
Thanks,
David
- You mean right
for left? For what in fact is left used? --Olliminatore 15:16, 19 September 2006 (UTC)
- As of 13 October2006 XEB includes left aligned, centred and right aligned buttons --MarkS (talk) 15:45, 13 October 2006 (UTC)
When adding your own new buttons, how do we specify the url for the button's image? You look like you're using the absolute path of the image ex: 6/6a/Button_sup_letter.png. But I can't see that path when I search for that image on wikipedia. So I assume I create images using gimp, them upload them to wikipedia. But how do I know the path to the image?
Thanks in advance, Jason L Michael
- Hi Jason, you can find the absolute path to the image by clicking on its link in its description page, e.g. here, you would click on the text right beneath the picture which says "John_W._Bricker_cropped.jpg (10KB, MIME type: image/jpeg)". That takes you to the absolute path: http://upload.wikimedia.org/wikipedia/en/7/77/John_W._Bricker_cropped.jpg
- --Matt57 15:45, 28 October 2006 (UTC)
- All the icons are now in commons so rather than specify the full path on each line 'http://upload.wikimedia.org/wikipedia/commons/' is added to the front of each URL. If you are looking at the code then you can see variable Isrc is defined at the top to hold this part of the URL. Isrc is then added to the location specified for each button.
Reference tags
Hello there. This seems like a great tool, but there's one more thing I'm missing. There's plenty of reference templates available out there and copy-pasting them and then filling them with content might be a tedious task. Is there a way to create buttons that would paste the three most common templates?
- {{cite book | author = | coauthors = | title = | year = | editor = | pages = | chapter = | chapterurl = | publisher = | location = | id =ISBN | url = | format = | accessdate = }}
- {{cite journal | author = | year = | month = | title = | journal = | volume = | issue = | pages = | id = | url = | format = | accessdate = }}
- {{cite web | author= | title= | publisher= | year= | work= | url= | accessdate= }}
//Halibutt 09:02, 31 October 2006 (UTC)
- There are two ways:
- You could use the mwCustomEditButtons function directly in your own monobook.js. mwCustomEditButtons is an array which contains details of the buttons to add. You can see an example of using it in extraeditbuttons.js.
- Extra buttons can be added. These would probably be non-standard buttons. This ensures the buttons don't appear automatically for everybody. You would then need to use XEBOrder to get the buttons to appear.
- I'm willing to follow the second option and add the buttons into XEB. Would you be willing to design the icons? --MarkS (talk) 20:34, 1 November 2006 (UTC)
Have you had a chance to implement these useful citation buttons? NigelG (or Ndsg) | Talk 00:43, 6 February 2007 (UTC)
Gallery created
It's much larger then I expected - perhaps it should be split off? In either case, we need to move some buttons to Commons; and it should be helpful for people designing their own buttons (we can also use a place to list them). -- Piotr Konieczny aka Prokonsul Piotrus | talk 19:18, 24 December 2006 (UTC)
Button images not appearing
A really useful tool: thanks!
One problem, though. I've added some buttons to colour text, as follows (in my monobook.js):
- myButtons={'_BL':['http://commons.wikimedia.org/wiki/Image:Bouton_Vandale0.png','blue','<span style="color:blue">','</span>','text'], '_GR':['http://commons.wikimedia.org/wiki/Image:Bouton_Vandale1.png','green','<span style="color:green">','</span>','text'], '_FU':['http://commons.wikimedia.org/wiki/Image:Bouton_Vandale2.png','fuchsia','<span style="color:fuchsia">','</span>','text'], '_RE':['http://commons.wikimedia.org/wiki/Image:Bouton_Vandale3.png','red','<span style="color:red">','</span>','text']}; :XEBOrder="R,F,Q,_GR,_BL,_FU,_RE";
The buttons work; but instead of getting the images, all I see in the toolbar is the tooltips ("blue", "green", etc). What am I doing wrong? --NigelG (or Ndsg) | Talk 18:51, 30 January 2007 (UTC)
- The URL you have provided doesn't actually link to the picture. Your URL's point to the page that contains all the wikimedia stuff (menus, licence, the picture etc...). In your case if you go to this page then just below each image is a link to the picture itself. Follow the link to get to just the button image. For example the image for your first button is at: http://upload.wikimedia.org/wikipedia/commons/f/f0/Bouton_Vandale0.png. You need to take the URL of this page and that in, rather than the page you are linked to. --MarkS (talk) 20:11, 2 February 2007 (UTC)
Thanks! I've finally got them to work. But how does this fit in with your previous statement?
- "All the icons are now in commons so rather than specify the full path on each line 'http://upload.wikimedia.org/wikipedia/commons/' is added to the front of each URL."
It seems that you still have to type the whole verbose URL - or have I missed something? --NigelG (or Ndsg) | Talk 00:47, 6 February 2007 (UTC)
How to have extra buttons installed on my wiki
Hi,
What is the license for extra buttons. Is it possible to place them on my wiki? If yes what are the steps I have to follow to have them? Do I have to make any changes to code? Is it possible to default users accounts to have extra buttons by default (i.e. each user doesn't have to copy all the code, etc.)
Regards, Aretai 13:59, 2 February 2007 (UTC)
- Comment on my talk page. --MarkS (talk) 20:11, 2 February 2007 (UTC)
Thank you - it works on my MediaWiki
Thank you! I finaly figured out how to install this on my MediaWiki site. This is great. IIt works great. I also have the wikEd installed for the other users, but it only works for FireFox. Many of the potential users of my site use IE7 and IE6, so, this universal extra buttons are very helpful. This will make Wiki style editting a bit more approachable for some. Thank you again!Kohyin 22:18, 15 February 2007 (UTC)
Ref tag button
I see from the Changes section that some buttons have been modified:
- "6 March 2007 Major upgrade. XEB now features popups on some of the buttons. These display a dialog box to complete with parameters. The markup code then depends on the inserted text."
In the case of the <ref>...</ref> button this has made things worse. I find it much easier to type (sometimes quite long) footnotes in the text, then highlight them and click on the Ref button. This used to work, but no longer does so. Could you please reinstate it? Thanks -- NigelG (or Ndsg) | Talk 12:25, 14 March 2007 (UTC
- NigelG, quick question: Would you be happy with a single option for the moment to turn all the popups off in one go?
- In the longer term I know something needs to be done to improve the reference popup. The popup is an attempt to fix the two types of buttons for reference that XEB has (one does the whole reference in one go, whilst the other builds in up in bits so you can specify the name as well as the reference). The ultimate intention is that the popup should pick up the selected text, the insert button should be the one with the focus (so if you press enter it is just entered) and that the popup can let you specify different types of cite references (my understanding is that is what should be between the ref tags). Any comments on this as a longer term plan? --MarkS (talk) 18:10, 14 March 2007 (UTC)
- I've added an option to turn off popups entirely. Simply add
XEBPopups=false;
to your monobook.js before the XEB code is include. I'll look for more sophisticated solutions when I get a proper chance. Comments on the reference button in general (see above) or this fix are welcome. --MarkS (talk) 22:38, 14 March 2007 (UTC)
- I've added an option to turn off popups entirely. Simply add
- Thanks for giving us the option, & for doing it so promptly! Yes, that's fine for the time being.
- In the longer term it would certainly be nice to have an additional option of the various Cite templates (book, journal, web) inside the Ref tags. But remember that not all Refs are for citations of this sort: some are just footnotes with additional information. So allowance must be made for this type of Ref as well. --NigelG (or Ndsg) | Talk 00:00, 15 March 2007 (UTC)
Multiple Lines
Is it possible to create buttons on two lines? Like having two button toolbars? If I use to many, then the toolbar extends off of the page. How can I fix this?
thanks--198.70.22.217 17:42, 16 March 2007 (UTC)
Mac OS tested
Being a user of Mac OS and Mac OS alone, I can confirm that it works perfectly. I can make text:
- Klein
- Underlined; and
- Defined
- Made clear
In short, it's brilliant! CarrotMan 07:27, 17 March 2007 (UTC)
Breaks table sorting?
I'm using an out-of-the-box installation of MediaWiki 1.9.3 and my sortable tables are no longer sortable. Testing on Wikipedia, I see the same thing; when I'm using the extra edit buttons, I cannot sort tables.
- This should now be fixed. The problem arose because both sortable tables and XEB had a function with an identical name (getElement ByClassName if I remember). This is a function I grabbed off the net and is incredibly useful. I've renamed the XEB version but the issue could arise somewhere else with another script. --MarkS(talk) 21:10, 1 May 2007 (UTC)
Does it work on other Wikimedia Wikis?
Hi, this is great! But does it work on other wikimedia wikis? ♠TomasBat (@)(Contribs)(Sign!) 03:26, 31 March 2007 (UTC)
prettytable not working
Although the the popup box is great, if i select anything more than caption when the table resolves it shows the table 'options' like
align="center" which showed with just selecting align center. if i build the table option by itself then this does not appear to happen. So it seems to be some kind of timing error? any ideas? --Dtsig 04:17, 22 April 2007 (UTC)