Jump to content

User talk:MarkS/Extra edit buttons

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by MarkS (talk | contribs) at 21:13, 1 May 2007 (→‎Does it work on other Wikimedia Wikis?: Should do). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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)[reply]
As of 13 October2006 XEB includes left aligned, centred and right aligned buttons --MarkS (talk) 15:45, 13 October 2006 (UTC)[reply]

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)[reply]
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)[reply]

There are two ways:
  1. 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.
  2. 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)[reply]
More: Thanh công cụ soạn thảo --Nguyễn Thế Phúc Talk 04:07, 4 March 2007 (UTC)[reply]

Have you had a chance to implement these useful citation buttons? NigelG (or Ndsg) | Talk 00:43, 6 February 2007 (UTC)[reply]

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)[reply]

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)[reply]

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)[reply]

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)[reply]

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)[reply]

Comment on my talk page. --MarkS (talk) 20:11, 2 February 2007 (UTC)[reply]

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)[reply]

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)[reply]
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)[reply]
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)[reply]


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)[reply]

Mac OS tested

Being a user of Mac OS and Mac OS alone, I can confirm that it works perfectly. I can make text:

  1. Small
  2. Underlined; and
Defined
Made clear

In short, it's brilliant! CarrotMan 07:27, 17 March 2007 (UTC)[reply]

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)[reply]

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)[reply]

It should copy over to other wikimedia wikis without any problems. The buttons are all in commons so they shouldn't cause any problem. It might be even work directly but adapting the monobook code to include the full URL. I haven't tried this but can't imagine any problems. I'll have a look if I get a chance.

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)[reply]