Template:End/documentation

From The Languages of David J. Peterson
Revision as of 23:49, 18 September 2023 by Djpwikiadmin (talk | contribs) (Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[</nowiki>Wikipedia:Wikidata<nowiki>]])...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Documentation for Template:End. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

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.

Alternatively, this template may take the dummy parameter 1=, such as {{End|Cricket series}}, to indicate which table start template it matches (in the example given, {{Election table}}). The parameter has no technical function.

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|election table}}

Result: Template:Election table |- 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 |-

|}

Tracking categories

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for End

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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
No parameters specified

See also

  • {{!)}}
  • {{Rugby squad end}} inserts two instances of wikitable closing markup
  • {{Div col end}} inserts a closing </div> tag
  • {{Pope list end}} inserts a wikitext |} closing tag followed by a closing </div> tag