Jump to content

User talk:Siipikarja/Helsinki tram

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Rolling stock[edit]

I combined the two tables in the Rolling stock section to one sortable table. This took quite some time and effort to make it work. I tried my best to keep the data legitimate but some inaccuracies may have slipped in. If you have time and motivation, please verify the data.

A few words about the table:

  • Before adding new rows or cells be sure to understand the sorting logic: Help:Sorting
  • Standards-compliant web browser may render the table differently than Internet Explorer. When modifying the table, double-check that the table renders and sorts correctly in both types of browsers. IE's Javascript engine is slower than the Standards-compliant web browser's JavaScript engines www.codinghorror.com
  • Don't use rowspan or colspan, they will break the sorting functionality
  • Columns with time and number spans are sorted as strings, not as numbers. Therefore, hidden sort keys need to be used where strings are not of equal width (width being the number of characters). Otherwise, for example, 32 is sorted as bigger than 100.
  • The Tram Type column intentionally sorts to logical groups, not alphabetically.
  • Don't split the rows with <br />-tags as the table becomes ugly. If the data in an individual cell seems to swell up, then reconsider should the data be in the table in the first place. Consider adding the information to the article body text or alternatively using foot notes. The table cannot and should not hold complete data but merely serve as a summary.
  • I wasn't able to find the car height for all of the tram types as FTS lists some heights with and some without the pantograph. It would be more informative to list the height without the pantograph.
  • When adding data to the table, please update the Totals row to reflect the changes.
  • Round figures to one decimal when adding data and use dot (.) as decimal separator to ensure correct sorting.
  • If major changes need to be done, it is a good idea to copy the table to a sandbox under your own Wikipedia homepage, implement the changes and test the functionality there, and then copy-paste the modified table to the article.

--Siipikarja 10:23, 13 April 2009 (UTC)[reply]