Familypedia
Familypedia
Forums: Index > Help desk > Commas in year names



Some of our pages are now displaying year names with commas in them. Example at County Sligo#People.

I have discussed it with User:Thurstan, who seems to have done the most recent adjusting of relevant templates. Here's the history of date display problems as he summarised it:

  1. In the original design, when Phlox discovered that the years were displaying with commas (and that there was no display option to suppress the commas for type "number"), he changed the "year" fields to type "date", which did display properly.
  2. After the last upgrade, the forms now gave a full "date-chooser" for the year fields, and always stuff a full date into the "year" fields. So every time a form was used to edit, the date fields broke. So we changed the data type for "year" back to "number", which gives us the "comma" problem.

What's the solution? Surely this is not the only SMW website that takes a year as a property then wants to display it without a comma? Maybe someone can read Help:Semantic forms with more insight than I have, in case the solution is on that page or a page it links to.

-- Robin Patterson (Talk) 09:35, April 23, 2011 (UTC)


It doesn't affect all of our SMW-generated displays. See, for example, http://familypedia.wikia.com/wiki/Semantic_MediaWiki/demo_query-subquery. So what's the secret? -- Robin Patterson (Talk) 12:23, December 30, 2012 (UTC)

That example displays the "dates", not the "years": dates have always been okay, it is just that people keep choosing to display "years" instead. Thurstan (talk) 20:24, December 30, 2012 (UTC)

You are an apparently inexhaustible fund of useful infofacts. I've changed Template:Show county people accordingly. What's next? -- Robin Patterson (Talk) 03:13, December 31, 2012 (UTC)


They came back again (along with an unrelated space-deletion) in Andrei's series of changes to {{Showfacts biograohy}}. Why? -- Robin Patterson (Talk) 22:37, November 13, 2013 (UTC)

Because he is displaying "years" again, not dates. Thurstan (talk) 23:21, November 13, 2013 (UTC)