No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
It accepts one {{Parameter|mandatory|string}}, the contents of the first cell, and up to six additional {{Parameter|optional|string}}s for a total of seven possible columns. | It accepts one {{Parameter|mandatory|string}}, the contents of the first cell, and up to six additional {{Parameter|optional|string}}s for a total of seven possible columns. | ||
It accepts an additional {{ | It accepts an additional {{Parameter|optional|named}}, {{Code|display}}. If set to a zero-length string, it uses CSS to hide the entire row. | ||
==Return== | ==Return== | ||
The supplied parameters are used to construct a {{Code|<nowiki><tr /></nowiki>}} with each parameter wrapped in a {{Code|<nowiki><td /></nowiki>}}. | The supplied parameters are used to construct a {{Code|<nowiki><tr /></nowiki>}} with each parameter wrapped in a {{Code|<nowiki><td /></nowiki>}}. | ||
{{ | {{return|{{TableTop|Up|Down|Charm|Strange|Top|Bottom}}{{TableMid|A|B|C|D|E|F}}{{TableMid|1|2|3|4|5|6}}{{TableEnd}}}} | ||
An example for {{ | An example for {{Code|display}} is not possible, as it hides things. | ||
Latest revision as of 14:10, 25 January 2023
Template:TableMid is used in conjunction with other Table Templates in the creation of properly formatted tables.
Usage
It accepts one mandatory string parameter, the contents of the first cell, and up to six additional optional string parameters for a total of seven possible columns.
It accepts an additional optional named parameter, display. If set to a zero-length string, it uses CSS to hide the entire row.
Return
The supplied parameters are used to construct a <tr /> with each parameter wrapped in a <td />.
| Up | Down | Charm | Strange | Top | Bottom |
|---|---|---|---|---|---|
| A | B | C | D | E | F |
| 1 | 2 | 3 | 4 | 5 | 6 |
An example for display is not possible, as it hides things.
