This is an old revision of Playground/TableMarkupReference from 02/27/2026 15:34 edited by WikiAdmin.
View source for Table Markup Reference
===1. Table Markup Scheme===
The generic markup for table elements follows this scheme:
##**!!*|!!!!(blue)(attribute parameters)!!!!(green){style parameters}!!content!!||!!**##
====Example:====
##""*|(i=main_heading){text-size: 120%}This is the main heading|*""##
====Understanding the Table Markup Scheme====
1. **Opening delimiter** --- **##!!^|!!##** is any of the delimiters described in the //elements table// below.
1. **Attributes** --- **##!!(blue)(attribute parameters)!!##** is an optional series of ##parameter=value## declarations enclosed in brackets. Valid parameters are described in the //attribute table// below. Multiple parameter declarations can be separated with a space (**## ##**).
1. **Style** --- **##!!(green){style parameters}!!##** is an optional series of CSS style declarations enclosed in braces. Multiple style declarations can be separated with a semicolon (**##;##**).
1. **Content** --- **##content##** can be any valid content for that element (including [[Docs:TextFormatting|formatted text]]).
1. **Closing delimiter** --- **##!!||!!##** is the standard delimiter.
====Note:====
Some elements are //self closing// and do not accept any attributes, style parameters or content. See the notes in the //elements table// below.
===2. Elements===
#|
!|{width: 80%}|!
?| Table Elements |?
*| HTML Elements | Delimiter | Notes |*
|| ##<table>## | ##""!|""## | Optional, only useful for adding attributes. **Must** be first in table markup if used. Should be on a line by itself. ||
|| ##<caption>## | ##""?|""## | ||
|| ##<colgroup>## | ##""_|""## | ||
|| ##<col>## | ##""-|""##| Selfclosing - must not be closed! ||
|| ##<thead>## | ##""[|""## | ||
|| ##<tfoot>## | ##""]|""## | ||
|| ##<tbody>## | ##""|#|""## | ||
|| ##<tr>## | ##""||""## | Must be set for each row of table cells. ||
|| ##<th>## | ##""^|""## | ||
|| ##<td>## | ##""|""## | ||
|#
===3. Attributes===
#|
?|Table Attributes|?
*| Attribute | Markup key |*
*|(x=2) Core |*
|| ##id## | ##i## ||
|| ##class## | ##c## ||
|| ##style## | ##s## ||
*|(x=2) i18n |*
|| ##lang## | ##l## ||
|| ##dir## | ##d## ||
*|(x=2) Table cells |*
|| ##colspan## | ##x## ||
|| ##rowspan## | ##y## ||
|| ##scope## | ##o## ||
|#