User:DLManiac/Template:Tournament table templates/doc

The templates in the series are intended for use in tournament performance tables for articles such as darts, snooker, and tennis players. For an example, see Phil Taylor career statistics. These come in 2 varieties, cell templates for use in individual cells of the table, and legends to unify the tables across Wikipedia.

For example, makes a cell with a green background and bold W. The optional link in the cell is taken from the first parameter; and the option to change text comes from the second parameter. So and  are also options. The intention is generally that the first parameter is the link to that specific edition of the tournament, with no "[[" required.

If you want to use other attributes for the table cells, e.g.  or , they need to be put before the template call and there must be no vertical bar   in between them:

... ! ...
 * rowspan=2
 * colspan=2
 * colspan=2
 * colspan=2

Templates
Also, for a legend that can be used on most pages containing these cell templates

generates the following table:

Code
Common code to most if not all the templates in this series: |style="background: #abcdef; vertical-align: middle; text-align: ; " class="table-tournament"|