Hi Yaron,
I think that the main advantage of the spinbox over a generic field is that the spinbox is recognizable as input for inserting only numbers. So often the users of my wikis make mistakes and inserted values like "over 9000" or "9000 (approximately)" instead of just "9000". This usually leaded to problems in queries and the wiki produced not nice looking error notifications.
I usually solved these problems by adding explanations to the fields and use regex filtering. However I think that the amount or user errors will decrease if we use spinner for numbers.

I agree though that the the change in default look of the forms is very important and always must be done very carefully: I myself hated the switch to KDE4, Unity and most of all GMail's-barbarian-forced-switch-to-a-new-look.

Another thing is that wiki-admins may have attached some CSS and JS to html elements and the change will broke the appearance of their forms.

So I'll integrate the spinbox input to SFI. 

Sincerely yours,


02.07.2012 19:45 пользователь "Yaron Koren" <yaron@wikiworks.com> написал:

Hi Yury,

Very interesting. This certainly looks like a useful input, though I don't know if it makes sense as a default input for the "Number" type. Personally, I associate "spinners" with graphical applications like word processors and illustration apps, where it lets you quickly try out small variations on different settings, then preview to see whether that's an improvement or not. I don't know if I've ever seen a spinner on an input where the number is known in advance, and you just have to enter it in. (I've seen dropdowns in cases like that, like when you have to enter the number of people in an online reservations form, but that's not entirely the same thing.)

Maybe other people disagree, though. If you or othes have more opinions about this, feel free to share them. It would be a pretty big change to the look of forms, but sometimes change is good.

If it's not going to be the default input type, though, I would say it makes more sense in SFI, because that's where most of the Javascript-based inputs go.

By the way, it would be nice to actually see the spinner input in action, but it looks like editing on that wiki is restricted to administrators. Not that big a deal, though - I can imagine how it works.

Also - it's great to see the "two listboxes" input, above it on the form! It looks even cooler than I thought it would be; I didn't realize there was an autocompletion element to it too.


On Mon, Jul 2, 2012 at 9:55 AM, Yury Katkov <katkov.juriy@gmail.com> wrote:
Hi everyone!

Alexey Klimovich from WikiVote developed great form input for spinners
(spinboxes). Should we integrate this input with SF or with SFI? In my
opinion spinner should be default input for number data: not because
those little buttons are handy but because the user recognizes
immediately that she have to put the number (not string) in the box.

You can see the input in action here [1] and this library [2] have been used.

The input supports the following parameters:
* min and max values
* showonfocus - show buttons on hover

We'll probably add these parameters soon:
* step - the step of a single increment/decrement
* prefix - text before the number
* suffix - text after the number

[1] http://goo.gl/raIY9
[2] https://github.com/btburnett3/jquery.ui.spinner

Sincerely yours,
Yury Katkov

WikiWorks · MediaWiki Consulting · http://wikiworks.com