Template:Table end
| This template is used on many pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page before implementing them. |
Usage
This template ends any table (with bar-brace "|}") and may be used with any other templates that begin a one-level table, except with template {{Collapse top}} which requires a {{collapse bottom}} to end a collapsible text.
This template duplicates {{s-end}} for technical reasons. See the documentation on that page. Any succession template ending with {{end}} should be changed to {{s-end}}.
Position
WARNING: Template {{end}} must be placed on a separate line for ending a table; otherwise, it inserts a literal bar-brace "|}" into the text.
Redirects
Other "table end" templates redirect here, which some may prefer visually: for example ending {{Election box}} series with Template:TLx.
Alternatively a hidden comment can be used, such as {{End}} <!-- Election box -->, to indicate which table start template it matches.
Example
<syntaxhighlight lang="wikitext">
| Party | Main candidate | Votes | % | +/– | Seats | +/– | |
|---|---|---|---|---|---|---|---|
| Green | John Johnson | 12 | 50% | +5 | 5 | +1 | |
</syntaxhighlight> Result:
| Party | Main candidate | Votes | % | +/– | Seats | +/– | |
|---|---|---|---|---|---|---|---|
| Green | John Johnson | 12 | 50% | +5 | 5 | +1 | |
Tracking categories
TemplateData
<templatedata> {
"description": "Ends a table. Must appear on a separate line. Normally used with"params": { } } </templatedata>
See also
- {{!)}}
- {{Rugby squad end}} inserts two instances of wikitable closing markup
- {{Div col end}} inserts a closing
<div></div>tag - {{End tab}} inserts two closing
<div></div>tags - {{Pope list end}} inserts a wikitext
|}closing tag followed by a closing<div></div>tag - {{Column-generating template families}}
| The above documentation is transcluded from Template:Table end/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |