Template talk:KCR Infobox

From Wikipedia, the free encyclopedia

[edit] Revamp

I've just made a major change to this template with the aim of standardizing parameters and making the code a little more readable. It will also play better with the {{s-rail}}/{{s-line}} set of templates whose usage has increased significantly over the last few months.

  1. Formatting - I have reduced the amount of internal formatting and opted for standardized classes wherever possible. The internal structure is derived from {{Infobox Station}}.
  2. Parameters - I have eliminated the following parameters: line, opened, name_chi, name, coordinates. In each case, these appeared to be vestigial parameters superceded by others. There's no point in keeping a parallel structure, especially while the number of overall transclusions in the article namespace remains low.
  3. Optional parameters - Instead of the cumbersome "to be added", all parameters except the naming and map parameters are optional; if unset, nothing will appear at all.
  4. Template calls - The lineN parameter now calls {{HK-KCR lines}} and {{HK-KCR color}}. The practical difference is that color resolution is now external to this template, and that the line variables should be in the format East Rail instead of East.

Overall I think this simplifies maintenance and makes the template more extensible. Comments appreciated. Mackensen (talk) 01:48, 20 July 2007 (UTC)