Template:Empty cell/doc
Jump to navigation
Jump to search
Usage
Used to make empty cells in tables. ​
is a Unicode zero-width space.
{| class="wikitable mw-datatable" |- ! {{empty cell}} !! heading1 !! heading2 |- | row1 || row1, cell1 || row1, cell2 |- | row2 || row2, cell1 || row2, cell2 |- |}
Renders as:
| heading1 | heading2 |
---|---|---|
row1 | row1, cell1 | row1, cell2 |
row2 | row2, cell1 | row2, cell2 |
(Note: leading and trailing spaces between cell divisions are rendered the same by the MediaWiki parser. The table above could be written with a single space between items and still be correct.)
Rationale
Using this template may slightly improve accessibility for screen readers. Additionally, it avoids another editor mistakenly correcting what seems to be tripled markup.