Template:cpp/container/table cell/doc

This family of templates is used to control the formatting of the Member function table on the C++ Containers library page cpp/container page.

A single table does not justify this many highly-complex templates and these should probably be refactored into fewer and/or more generic templates. In the mean time we will attempt to provide some documentation for what currently exists.

Example Table
Note that templates lon, on, nn create a "double" cell. These cells do not take up an extra row in the overall table; the inner division is done by embedding a sub-table in the cell. Put another way: in this example table, the title cell table_cell_lon does not have "rowspan=2" attribute.

Templates

 * cpp/container/table_cell makes a "default" cell with a grey background. This cell does not link to anything.
 * cpp/container/table_cell_o makes a cell with a blue background.
 * cpp/container/table_cell_n makes a cell with a green background.
 * cpp/container/table_cell_17 makes a cell with a yellow background.
 * cpp/container/table_cell_20 makes a cell with a orange background.
 * cpp/container/table_cell_23 makes a cell with a red background.
 * cpp/container/table_cell_hn makes a column-header with a green background.
 * cpp/container/table_cell_ho makes a column-header with a blue background.
 * These two templates are always used to link to a container page, e.g. cpp/container/array.
 * cpp/container/table_cell_lo makes a row-header with a blue background.
 * cpp/container/table_cell_ln makes a row-header with a green background.
 * cpp/container/table_cell_l17 makes a row-header with a yellow background.
 * cpp/container/table_cell_l20 makes a row-header with a orange background.
 * cpp/container/table_cell_l23 makes a row-header with a red background.
 * cpp/container/table_cell_nn makes a split cell. Both top and bottom have a green background.
 * cpp/container/table_cell_on makes a split cell. The top half has a blue background and the bottom half has a green background.
 * cpp/container/table_cell_2323 makes a split cell. Both top and bottom have a red background.
 * cpp/container/table_cell_lon makes a split row-header. The top half has a blue background and the bottom has a green background.

Parameters
These templates take three types of parameters:
 * link: A link target. This parameter must be something where   expands to a valid wiki link.
 * text: Text to display in (part of) the cell.
 * (opt) text: Optional text for the cell. If not set, the cell's link target will be displayed.

History
The base templates have been created by User:P12 during initial rewrite from DokuWiki-based wiki to MediaWiki. They later have been enhanced with new standards as they were released.