Template:End/doc

{{Documentation subpage}}

{{high-use}}

Usage

This template ends any table (with bar-brace "|}") and may be used with any other templates that begin a one-level table and require no further closing markup.

Note: Using the standard table end wikitext {{code||}}} will work correctly, but may be seen as an error by some maintenance utilities.

This template duplicates {{tl|s-end}} for technical reasons. See the documentation on that page. Any succession template ending with {{tl|end}} should be changed to {{tl|s-end}}.

= Position =

WARNING: Template {{tl|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 to this one. Where possible, use the end template that matches the start template. For example, tables opened with {{Tlx|Election box}} and similar templates should be closed with the redirect {{TLx|Election box end}} so that the wikitext is easy for editors to understand.

If no specific end template exists, then a hidden comment can be added, such as {{End}} , to indicate which table-opening template it matches.

Example

{{election table|title=Summary of the May 2, 2011 election}}

|- style="text-align:right;"

! style="background-color:#E9E9E9; width:400; text-align:left;" colspan="2" | Party

! style="background-color:#E9E9E9; width:200; text-align:left;" | Main candidate

! style="background-color:#E9E9E9; width:50;" | Votes

! style="background-color:#E9E9E9; width:50;" | %

! style="background-color:#E9E9E9; width:50;" | +/–

! style="background-color:#E9E9E9; width:50;" | Seats

! style="background-color:#E9E9E9; width:50;" | +/–

|-

| style="background-color:green" | || Green

| John Johnson

| 12

| 50%

| +5

| 5

| +1

|-

{{end}}

Result:

{{election table|title=Summary of the May 2, 2011 election}}

|- style="text-align:right;"

! style="background-color:#E9E9E9; width:400; text-align:left;" colspan="2" | Party

! style="background-color:#E9E9E9; width:200; text-align:left;" | Main candidate

! style="background-color:#E9E9E9; width:50;" | Votes

! style="background-color:#E9E9E9; width:50;" | %

! style="background-color:#E9E9E9; width:50;" | +/–

! style="background-color:#E9E9E9; width:50;" | Seats

! style="background-color:#E9E9E9; width:50;" | +/–

|-

| style="background-color:green" | || Green

| John Johnson

| 12

| 50%

| +5

| 5

| +1

|-

{{end}}

Tracking categories

  • {{clc|Pages using end template with unknown parameters}}

TemplateData

{{TemplateDataHeader}}

{

"description": "Ends a table. Must appear on a separate line. Normally used with {{col-begin}}. It takes no parameters.",

"params": {

}

}

See also

  • {{tl|!)}}
  • {{tl|Rugby squad end}} inserts two instances of wikitable closing markup
  • {{tl|Div col end}} inserts a closing {{tag|div|c}} tag
  • {{tl|End tab}} inserts two closing {{tag|div|c}} tags
  • {{tl|Pope list end}} inserts a wikitext {{!}}} closing tag followed by a closing {{tag|div|c}} tag
  • {{tl|Column-generating template families}}

{{Sandbox other||

Category:Succession templates

Category:Templates with partial table wikitext

}}