Template talk:2012 NL Wild Card standings

Editors: Avoid a common mistake when updating this template
When editing this template in order to update it with a change in the team order, please note that the data for each team comprises TWO lines of code which must stay together in order for the highlighting parameter  to work correctly. Here is a correct example:


 * San Francisco Giants || 39 || 32 || .540 || - || 21-14 || 18-18
 * New York Mets || 38 || 32 || .540 || ½ || 22-15 || 16-17
 * New York Mets || 38 || 32 || .540 || ½ || 22-15 || 16-17
 * New York Mets || 38 || 32 || .540 || ½ || 22-15 || 16-17

And here is an example where the template highlighting function is broken because the two lines were not kept together:


 * San Francisco Giants || 39 || 32 || .540 || - || 21-14 || 18-18
 * New York Mets || 38 || 32 || .540 || ½ || 22-15 || 16-17
 * New York Mets || 38 || 32 || .540 || ½ || 22-15 || 16-17
 * New York Mets || 38 || 32 || .540 || ½ || 22-15 || 16-17

Note that in the above incorrect example, a user applying the template with the parameter NYM will result in the team line for the San Francisco Giants being highlighted. --Threephi (talk) 17:31, 24 June 2012 (UTC)