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:
- 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.
- 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.
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)