Board Thread:New on TrainStation Wiki/@comment-5596770-20140217222504/@comment-15636815-20141203000010

A thought/suggestion/recommendation/whatever you want to call it:

The section of Infobox item that calculates a building's passenger-to-spaces ratio currently reads:

In this state, if an editor included a number for the "pass" parameter and failed/neglected/refused/whatever to include a number for the "size" parameter, the template will choke when it attempts to divide by zero. I ran a little test, and the ratio field filled with 13 copies of an error message in bold, red text. Yeah, thirteen.

To prevent the errors, we could add a second check to the first line: The second-to-last line could be expanded to three lines for consistency, if desired.

Finally, to make it easier to read, plus make its format consistent with the format of the other #if statements in the template, I recommended this slight modification to the formdec call:

Have a nice day. ;-)