Illegal property values + sorting
Last edit: 18:00, 27 April 2016
Just a couple of short questions:
- Can SMW support "partial dates"? Let's say, I would like to make an event article with date set to
1990-01-xxas I'm still not sure what the correct date is, effectively read as "just January 1990". Is there any workaround to use it in SMW? (Maybe "Allows pattern" but with date-semantics, not text, somehow?)
- My "partial dates" lead to errors marked with exclamation marks, and that's fully clear why. However, would it be possible not to exclude broken pages from the
#askresult refined with
| sort = Has date?
- Indeed, currently only things shown on the help page for datatype date are possible so this would be a feature request. Probably you could recreate an example setup at sandbox.semantic-mediawiki.org and link to this when creating and elaborating the feature request at github.com. Personally I cannot assess if it will be possible to support partial dates such as year-month or month-day.
- Perhaps you could additionally set some kind of "helper" property which is automatically set in a way that it allows sorting, e.g. a property of type text: So a date like January 1, 2016 could be 20160101 or January 1990 would be 19900100 etc. and sorted accordingly afterwards.
> still not sure what the correct date is, effectively read as "just January 1990". Is there any workaround to use it in
I'm not sure what the problem is but annotations like
Jan 1990 are supported, please have a look at .
1990-01-xx is not supported because the parser doesn't know how -xx should be interpret and I'm not entirely sure to have the parser in future to assume that it means Jan 1990.
Oops, that's news to me. Did not know that this was working though admittedly a couple of years passed since I had a more intense peep at something like this. Great!
> I'm not sure what the problem is
Me and my inattention... Reading the official documentation always helps, and I'm very sorry for being not careful reading it. Thank you very much! Also I noticed that for some reason I used
Has type::Text instead of
Has type::Date for one my properties whilst the rest were and are well-typed. Fixed it locally.
P.S. It looks like
YYYY-MM can work as well thus I need neither
00. That's awesome!