Template:Empty cell
Jump to navigation
Jump to search
[edit] [ ] Template documentation
This documentation is transcluded from Template:Empty cell/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
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.