Web - Amazon

We provide Linux to the World


We support WINRAR [What is this] - [Download .exe file(s) for Windows]

CLASSICISTRANIERI HOME PAGE - YOUTUBE CHANNEL
SITEMAP
Audiobooks by Valerio Di Stefano: Single Download - Complete Download [TAR] [WIM] [ZIP] [RAR] - Alphabetical Download  [TAR] [WIM] [ZIP] [RAR] - Download Instructions

Make a donation: IBAN: IT36M0708677020000000008016 - BIC/SWIFT:  ICRAITRRU60 - VALERIO DI STEFANO or
Privacy Policy Cookie Policy Terms and Conditions
User:Ingoolemo/Threads/06/07/06a - Wikipedia, the free encyclopedia

User:Ingoolemo/Threads/06/07/06a

From Wikipedia, the free encyclopedia

< User:Ingoolemo | Threads | 06 | 07

[edit] My latest idea for the extra edit buttons

To: MarkS
CC: Piotrus

Note: this comment is part of a synchronised thread. You can reply by clicking the [edit] link next to the comment's heading, or following this link. To ensure that you can see any further responses I make, add this page to your watchlist. Once you have replied, feel free to remove this boilerplate.

I decided it was best to start a new thread on this topic.

I had an idea for the editbuttons script that may or may not work. See User:Ingoolemo/extraeditbuttons.js for the code and User:Ingoolemo/Extra editbuttons for a correspondence table.

  1. I move each editbutton script to a separate subpage of the main script. Each editbutton is assigned a numerical name; currently spanning 1-22.
  2. I create a wincbutton function that imports the button script from its numerical page. This allows editors to perform very easy customisation of the order and placement of their buttons. By referencing the correspondence table mentioned above, for example, they can cherrypick the buttons they want and decide which order they want. Because the buttons are referenced numerically, all one needs to do is paste the main editbutton script--easy to do with a template--, then type something as simple as wincbutton('12').
  3. The custombutton function allows users to create their own buttons. I don't know if multiple variables are even possible in JavaScript, or if I treated them correctly, but if I did, it will allow Piotr to implement many of his ideas. I include examples below, but note that the following MAY NOT WORK, due to my lack of JavaScript skills:
    • custombutton('blahblah/Button_tl_template.png','Tl','{{tl|','}}','template name')
    • custombutton('blahblah/Button_subst_template.png','Subst','{{subst:','}}','template name')
    • custombutton('blahblah/Button_disambig','Disambig','{{disambiguation}}','','')
    • custombutton('blahblah/Button_welcome_from_Piotrus','Welcome','{{User:Piotrus/w}}','','')
  4. I have also developed an advanced linebreak button (User:Ingoolemo/extraeditbuttons.js/6a.js) that allows the user to define clear.
  5. I have developed Piotr's advanced references option. First, you click on the 'advanced references' button, which inserts <ref name="Insert reference name. Then, you either click on the 'c' button or the '/' button. The 'c' button allows you to add citation information, and the '/' button allows you to refer to a previous footnote.
Ingoolemo talk 03:41, 7 July 2006 (UTC)

Update: I have not yet tested the custombutton feature, but it seems that my current editbutton design is causing major rendering issues. I will get back to you guys when I have explored the problem further. Ingoolemo talk 00:58, 9 July 2006 (UTC)

The rendering issues have disappeared now that I've moved it from a subpage to my main javascript, but I still haven't got them up and running yet. Ingoolemo talk 02:21, 9 July 2006 (UTC)

My previous technique did not work. I have now developed a new system at User:Userscripts/Extra editbuttons/source2.js. Under this system, each button is defined as a function, and the buttons can be activated within a user's javascript by calling each button by its function name. (See User:Ingoolemo/standard.js for an example.)

I have not yet tested the custombutton(s,o,c,t,i) function. Ingoolemo talk 21:33, 14 July 2006 (UTC)

[edit] Final report

I have tried several methods that would allow end-users to alter the order of the buttons (and to cherry-pick them) with more ease. They all failed. The only option—or so it seems to my untrained opinion—is to paste the XEB script (awesome acronym, isn't it?) to a subpage of their own and edit it there.

I still have not tested custombutton(s,o,c,t,i), but I do expect that to work.

I would like to suggest that the XEB code (currently at User:MarkS/extraeditbuttons.js) be moved to User:Userscripts/Extra editbuttons/source.js. While I was doing my experiments, I intended for them to be moved to your namespace, but didn't want to do that until I had permission. It just seems so much more logical to me to have them in a central location.

Mark: thank you for XEB. Piotrus: thank you for getting me thinking about ways to improve it. Ingoolemo talk 02:14, 18 July 2006 (UTC)

I also strongly recommend taking a look at some of the differences between the current XEB code and my code at User:Ingoolemo/xeb.js. Ingoolemo talk 02:33, 18 July 2006 (UTC)

I am back (at last). Thanks for trying different ways of altering the code so the order of buttons can be amended.

I have had a play as well and have a method which might work. Broadly if the user defines a variable XEBOrder in their javascript before including the XEB code then this variable will override the standard order. For example: XEBOrder="A,C,E" will not display the standard XEB buttons, instead it will only display buttons A,C and E (in that order).

How does it work? The code first tests to see if XEBOrder has been defined. It it has it takes the user's value. If it hasn't been defined then it creates the variable with the default XEB buttons. It then works through each button in XEBOrder and creates the buttons requested (each button is now in a separate function).

The advantages I see in this method are:

  1. For user's who aren't bothered by the button order the XEB script works without any changes and produces a default set of buttons.
  2. You can change the order of buttons easily.
  3. You can hide buttons you don't want.
  4. The XEB script can contain extra non-standard buttons which user's can turn on if they want.
  5. The configuration is easy.

The current code is in the dev version of XEB and you can see the use of XEBOrder in my monobook.js. If you want to test it then simply include the dev version of XEB in your monobook rather than the standard version.

This is just a piece of code to test at the moment. Depending of the feedback I might look to:

  1. Change the button names from A,B,C,D... to more relevant names
  2. Add the extra buttons that have been requested. These might be non-standard buttons (i.e. only show if you use XEBOrder) to stop the toolbar getting too long.
  3. Move the code out of my userspace.

Any feedback is welcome. --MarkS (talk) 08:34, 24 July 2006 (UTC)

[edit] XEB Development version

I have updated the dev version of XEB. The new version includes:

  1. The ability to change the order of the buttons as requested by Piotrus
  2. The ability to hide buttons or show 'non-default' buttons.
  3. An optional set of buttons for adding references. These buttons are copies of those current in Ingoolemo's XEB script. These extra buttons are optional and only appear if requested by the user.

This new development version is in the form I would like to go live with and should include the main changes that were originally requested. The only thing missing is the other buttons requested by User:Piotrus - these can be added later.

Details (including how to make the extra refernce buttons appear) can be found on the XEB page. I invite your comments before I move the code to the live version. --MarkS (talk) 20:23, 5 August 2006 (UTC)

Our "Network":

Project Gutenberg
https://gutenberg.classicistranieri.com

Encyclopaedia Britannica 1911
https://encyclopaediabritannica.classicistranieri.com

Librivox Audiobooks
https://librivox.classicistranieri.com

Linux Distributions
https://old.classicistranieri.com

Magnatune (MP3 Music)
https://magnatune.classicistranieri.com

Static Wikipedia (June 2008)
https://wikipedia.classicistranieri.com

Static Wikipedia (March 2008)
https://wikipedia2007.classicistranieri.com/mar2008/

Static Wikipedia (2007)
https://wikipedia2007.classicistranieri.com

Static Wikipedia (2006)
https://wikipedia2006.classicistranieri.com

Liber Liber
https://liberliber.classicistranieri.com

ZIM Files for Kiwix
https://zim.classicistranieri.com


Other Websites:

Bach - Goldberg Variations
https://www.goldbergvariations.org

Lazarillo de Tormes
https://www.lazarillodetormes.org

Madame Bovary
https://www.madamebovary.org

Il Fu Mattia Pascal
https://www.mattiapascal.it

The Voice in the Desert
https://www.thevoiceinthedesert.org

Confessione d'un amore fascista
https://www.amorefascista.it

Malinverno
https://www.malinverno.org

Debito formativo
https://www.debitoformativo.it

Adina Spire
https://www.adinaspire.com