style="padding: 0; background: #eeddab;"|
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.
[edit] Example Table
Column Headers
|
Template
|
table_cell_hn
|
table_cell_ho
|
table_cell_h23
|
Example
|
|
|
|
|
|
|
Row Headers
|
Cells
|
Template
|
Example
|
Template
|
Example
|
Template
|
Example
|
Template
|
Example
|
table_cell_ln
|
|
table_cell_n
|
|
table_cell
|
text
|
table_cell_lo
|
|
table_cell_o
|
|
table_cell_l17
|
|
table_cell_17
|
|
table_cell_l20
|
|
table_cell_20
|
|
table_cell_l23
|
|
table_cell_23
|
|
table_cell_lon
|
|
table_cell_nn
|
|
table_cell_on
|
|
table_cell_2323
|
|
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.
[edit] Templates
[edit] Parameters
These templates take three types of parameters:
- link: A link target. This parameter must be something where [[ {{{1}}} ]] 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.
Template
|
Parameter 1
|
Parameter 2
|
Parameter 3
|
table_cell
|
text
|
--
|
--
|
table_cell_o
|
link
|
(opt) text
|
--
|
table_cell_n
|
link
|
(opt) text
|
--
|
table_cell_17
|
link
|
(opt) text
|
--
|
table_cell_20
|
link
|
(opt) text
|
--
|
table_cell_23
|
link
|
(opt) text
|
--
|
table_cell_ho
|
link
|
(opt) text
|
--
|
table_cell_hn
|
link
|
(opt) text
|
--
|
table_cell_ln
|
text
|
--
|
--
|
table_cell_lo
|
text
|
--
|
--
|
table_cell_l17
|
text
|
--
|
--
|
table_cell_l20
|
text
|
--
|
--
|
table_cell_l23
|
text
|
--
|
--
|
table_cell_nn
|
text
|
text
|
--
|
table_cell_on
|
text
|
text
|
--
|
table_cell_2323
|
text
|
text
|
--
|
table_cell_lon
|
link
|
text
|
text
|
[edit] 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.