Mr. Johnson (talk | contribs) No edit summary |
Mr. Johnson (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
}}"> | }}"> | ||
<div class="blackbox-1a"></div> | <div class="blackbox-1a"></div> | ||
<div class="blackbox-1b" id="{{{caption}}}">{{caption|{{Required|caption|Template:TableTop}}</div> | <div class="blackbox-1b" id="{{{caption}}}">{{{caption|{{Required|caption|Template:TableTop}}}}}</div> | ||
<div class="blackbox-1c"></div> | <div class="blackbox-1c"></div> | ||
<div class="blackbox-1d"></div> | <div class="blackbox-1d"></div> |
Revision as of 19:10, 21 November 2023
Template:TableTop
Template:TableTop
is used in conjunction with other Table Templates in the creation of properly formatted tables.
Usage
It accepts one mandatory unnamed string parameter and up to six additional optional unnamed string parameters. All seven are used as headers in the table.
It also requires mandatory named string parameter:
caption
— adds a table caption.
It supports two optional named parameters:
float
— controls which side of the content the table appears on,left
orright
.sortable
— if set totrue
it adds thesortable
option to the<table />
class.
Return
The table starts with <table class="wikitable">
, then the supplied parameters are used to construct a <th />
with each parameter wrapped in a <td />
. For example, {{TableTop|Column A|Column B|Column C|caption=Sample|sortable=true}}
produces the header in:
Sample
Column A | Column B | Column C |
---|---|---|
Cell A1 | Cell B1 | Cell C1 |
Cell A2 | Cell B2 | Cell C2 |
Cell A3 | Cell B3 | Cell C3 |
[ edit ]
The documentation above was transcluded from Template:TableTop/Documentation. [ edit ]