Forums: Index > Help desk > Year not a number

Child Table Missing Years[]

Hi Robin - I notice for some time now that when calcuating a showfacts children table, it is dropping years prior to 1575. "year not a number" - example on Nicholas St Lawrence (1460-1526). It does okay with dates after about 1597. Any ideas on this? MainTour (talk) 02:55, December 5, 2016 (UTC)

The reason for the cut-off year (around 1590) is probably that that was when Pope Gregory revised the calendar (ignored until 1751 by Protestants). See Gregorian calendar. But why our software now has problems is something best answered by User:Thurstan, I expect. I'm copying this to a forum because numerous contributors will eventually be asking the same question unless we can fix it. -- Robin Patterson (Talk) 03:36, December 6, 2016 (UTC)
As we noted at Forum:SMW on Familypedia#November_2016, the new version of SMW append "JL" to dates that it thinks are Julian dates. However the fancy "smart" date formatting in {{Showfacts children}} expects that a year should be a number, and therefore gets an error. If I convert it to displaying Property:Birth date string and Property:Death date string, the problem should be fixed, and this should banish any remaining "year is decremented" problems. Some more items on my "to do" list are:
  • include the approximations in the "XXX date string" properties
  • creating "WeddingN date string" properties, to be used in {{showfacts biography}} and {{showfacts person}}
  • revise the logic of {{Showfacts children}}, to do "copy children from spouse" properly, as previously discussed
Thurstan (talk) 04:37, December 6, 2016 (UTC)
The test version at {{Showfacts children-ex}} looks good to me after minimal testing. Thurstan (talk) 06:44, December 6, 2016 (UTC)
I have now released the new version of {{Showfacts children}}. Thurstan (talk) 02:50, December 30, 2016 (UTC)

Invalid time[]

Sviatoslav I of Kiev (c942-972) (the only recorded grandchild of the slightly famous Rurik) has nothing apparently wrong with his death year coding but displays error messages. What's going on? -- Robin Patterson (Talk) 22:53, April 14, 2017 (UTC)

I've noticed that on various medieval entries: I suspect that SMW doesn't like the combination of Year < 1000, month specified and day not specified. You could try various combinations on Test Person to see when exactly it happens. Thurstan (talk) 00:19, April 15, 2017 (UTC)