Namespaces
Variants
Views
Actions

Template:cpp/container/table cell oo

From cppreference.com

style = "padding: 0 0 0 0;" |

 
 

[edit] [{{purge}}] Template documentation

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.

Contents

[edit] Example Table

Column Headers Template table_cell_hn table_cell_ho table_cell_h23
Example
array
unordered_set
vector
set
flat_set
flat_multiset
Row Headers Cells
Template Example Template Example Template Example Template Example
table_cell_ln
header
table_cell_n
at
table_cell text
table_cell_lo
header
table_cell_o
at
table_cell_l17
header
table_cell_17
extract
table_cell_l20
header
table_cell_20
contains
table_cell_l23
header
table_cell_23
replace
table_cell_lon
header1
header2
table_cell_nn
begin
cbegin
table_cell_on
begin
cbegin
table_cell_2323
begin
cbegin

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.