Hi,
I'm planning to use the datepicker-field for birth dates. Unfortunately, the list of selectable years reaches only to 2006. So you have to select the correct day and month and a random year and then change the date in the input-field again. This is not really straight forward.
Is there a chance to add more years to the "select-field"?
Thx Stefan
On Mon, Sep 12, 2016 at 5:42 AM, Dr. Hirn drhirn@gmail.com wrote:
Hi,
I'm planning to use the datepicker-field for birth dates. Unfortunately, the list of selectable years reaches only to 2006. So you have to select the correct day and month and a random year and then change the date in the input-field again. This is not really straight forward.
Is there a chance to add more years to the "select-field"?
Thx Stefan
Are you using one of these two, or something else? https://www.mediawiki.org/wiki/Manual:DateInputWidget https://www.mediawiki.org/wiki/Manual:DateTimeInputWidget Both of those worked for me for selecting older years (the first was tested via Commons' UploadWizard, the second via the API Sandbox). More context/detail/links might help. :-)
Hi,
Sorry I didn't respond to this before. For anyone who's wondering, Stefan is asking about the "datepicker" input type from the Semantic Forms extension:
https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Input_types/Datepick...
It in turn gets its functionality from the jQuery UI library's "Datepicker" module:
https://jqueryui.com/datepicker/#dropdown-month-year
Stefan - it's true that the year dropdown only shows a 10-year range around the currently-selected year - i.e. 2006 to 2026 - which is annoying. However, what you can do is select 2006, then open the dropdown again and the earliest selectable year will now be 1996, and then keep going like that.
That's also annoying to do, and a lot of users probably won't even realize that it's possible. What I would strongly recommend is to instead use the default "date" input type, which is better for historical dates - "datepicker" is really only intended for picking dates around the present time.
-Yaron
On Tue, Sep 13, 2016 at 3:17 PM, Nick Wilson (Quiddity) < nwilson@wikimedia.org> wrote:
On Mon, Sep 12, 2016 at 5:42 AM, Dr. Hirn drhirn@gmail.com wrote:
Hi,
I'm planning to use the datepicker-field for birth dates. Unfortunately,
the list of selectable years reaches only to 2006. So you have to select the correct day and month and a random year and then change the date in the input-field again. This is not really straight forward.
Is there a chance to add more years to the "select-field"?
Thx Stefan
Are you using one of these two, or something else? https://www.mediawiki.org/wiki/Manual:DateInputWidget https://www.mediawiki.org/wiki/Manual:DateTimeInputWidget Both of those worked for me for selecting older years (the first was tested via Commons' UploadWizard, the second via the API Sandbox). More context/detail/links might help. :-)
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi,
hmm, the solution Tobias proposed could work. Still not very practical.
Think, I'll stay with Yarons approach.
Thanks for your answers!
Stefan
On 13.09.2016 21:40, Yaron Koren wrote:
Hi,
Sorry I didn't respond to this before. For anyone who's wondering, Stefan is asking about the "datepicker" input type from the Semantic Forms extension:
https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Input_types/Datepick...
It in turn gets its functionality from the jQuery UI library's "Datepicker" module:
https://jqueryui.com/datepicker/#dropdown-month-year
Stefan - it's true that the year dropdown only shows a 10-year range around the currently-selected year - i.e. 2006 to 2026 - which is annoying. However, what you can do is select 2006, then open the dropdown again and the earliest selectable year will now be 1996, and then keep going like that.
That's also annoying to do, and a lot of users probably won't even realize that it's possible. What I would strongly recommend is to instead use the default "date" input type, which is better for historical dates - "datepicker" is really only intended for picking dates around the present time.
-Yaron
On Tue, Sep 13, 2016 at 3:17 PM, Nick Wilson (Quiddity) < nwilson@wikimedia.org> wrote:
On Mon, Sep 12, 2016 at 5:42 AM, Dr. Hirn drhirn@gmail.com wrote:
Hi,
I'm planning to use the datepicker-field for birth dates. Unfortunately,
the list of selectable years reaches only to 2006. So you have to select the correct day and month and a random year and then change the date in the input-field again. This is not really straight forward.
Is there a chance to add more years to the "select-field"?
Thx Stefan
Are you using one of these two, or something else? https://www.mediawiki.org/wiki/Manual:DateInputWidget https://www.mediawiki.org/wiki/Manual:DateTimeInputWidget Both of those worked for me for selecting older years (the first was tested via Commons' UploadWizard, the second via the API Sandbox). More context/detail/links might help. :-)
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org