Last modified: 2008-11-10 16:35:50 UTC
If you try to print out the given page http://sandbox.semantic-mediawiki.org/index.php?title=Property:Birthday you will get some random numbers in front of the dates. The error alredy shows in the printing preview, but not in the printable version page. Analysing the page source showed, that the random numbers come from the column sorting algorithm: "class="smwsortkey">-2147475600</span>14 December 1901". The smwsortkey class is defined in SMW_custom.css. But it seems, that it is not used for printing. Workaround: on the server edit the file "mediawiki/skins/common/commonPrint.css" and add the following code: /*hide keys for sorting table entries*/ span.smwsortkey{ display: none; } This works for me but obviously there should be implemented a cleaner solution. The bug has been reproduced on Internet Explorer 7.0, Firefoy 3.0.1 and Epiphany 2.14.3. Regards Roland Pons .
The numbers you see are sorting keys for ordering the table rows properly. They are normally hidden with a suitable style. Apparently, while the "printable version" shows the styles, the actual printout uses different styles (this can be observed for all styling SMW adds, but it is not as problematic in many cases). The problem occurs since we specify our styles only for media "screen" and "projection", but not for print. This will be rectified in the next version.