Template:Sport table cell/doc

Usage
This template returns blue background for a table cell, if the first parameter exists, and returns, for the table cell contents, the 1st parameter with the first and third digit swapped if there is an en dash – in the 1st parameter. If the 1st parameter does not exist and the 2nd parameter does, just the 2nd parameter is returned. If neither the 1st parameter nor the 2nd parameter exist, a grey background with contents of a period "." is returned to display an apparently blank cell.

For example,   returns style="background-color:#B8C8FF"|2–1 While   returns style="background-color:#B8C8FF"|anything without – While   returns anything with or without –

This is intended for sports results for teams up and down and across in a table. If team parings, Tm3 at Tm1 is set to 3-0, Tm2 at Tm3 to 3/19 and all other pairings are nonexistent the following table: produces the following:

Note that blue is home games for teams in leftmost column.