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

Of course, as soon as I go to bed, my brain comes up with a brilliant idea for a solution. Well, my brain and I think it's brilliant. We'll type it up quickly, and you guys can tell us whether we're brilliant or daft. ;-)

Idea:

Infobox item would be set up with three cost parameters. Each editor would use two. They would appear in the blank template in this order: | Scost= The parameter names are short for "Sam cost", "Full cost", and "Discounted cost", respectively.
 * Fcost=
 * Dcost=


 * If Sam is complete, the editor enters:
 * Scost= cost seen on screen
 * Fcost= cost seen on screen
 * If Sam is not complete, the editor enters:
 * Fcost= cost seen on screen
 * Dcost= cost seen on screen

Whether an editor has completed Sam's contracts or not, every editor will use Cost first, then use a different template on the line immediately below it. Every editor will have an entry for Fcost, which always is the full cost of a building. The template does a quick test:
 * If it received parameter Scost,
 * then the infobox "Cost" field displays Fcost and the "Discounted Cost" field displays Scost.
 * else, if it received parameter Dcost,
 * then the infobox "Cost" field displays Fcost and the "Discounted Cost" field displays Dcost.
 * else, display an error message.

So, whaddaya think?