Difference between revisions of "Template:End/doc"
m (delete interwikis -> wikidata links) |
m (1 revision) |
(No difference)
|
Latest revision as of 07:26, 22 August 2014
40px | This is a documentation subpage for Template:End. It contains usage information, categories and other content that is not part of the original template page. |
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 {{Top}} & {{Mid}} which require {{Bottom}} to end a Top-table (which has a double-level format).
Severe limitations
WARNING: Template {{end}} must be placed on a separate line for ending a table; otherwise, it inserts a literal bar-brace "|}" into the text.
Examples
{{col-begin}}{{col-2}}AA{{col-2}}BB {{end}}
Result:
AA | BB |
{{col-begin}} {{col-2}}AA {{col-2}}BB {{end}}
Result:
AA | BB |
See also
Column-generating template families
Caution | The templates listed in the table below are not interchangeable across rows (i.e. across families). For example, using {{Multicol}} with {{End}} instead of {{Multicol-end}} would leave an HTML "div" (division) open, potentially harming any subsequent formatting. |
Family | Wiki table codeFile:Dagger-14-plain.png | Starting template | Break between columns | Ending template |
"Col" | {{Col-begin}} or {{Col-begin-small}} | {{Col-break}}
| {{Col-end}} or {{End}} | |
"Col-float" | 13px | {{Col-float}} | {{Col-float-break}} | {{Col-float-end}} |
"Columns" | 13px | {{Columns}} | – | – |
"Columns-start" | 13px | {{Columns-start}} | {{Column}} | {{Columns-end}} |
"Div col" | 13px | {{Div col}} or {{Columns-list}} | – | {{Div col end}} |
"Multicol" | {{Multicol}} | {{Multicol-break}} | {{Multicol-end}} | |
"TMB" | {{Top}} | {{Mid}} | {{Bottom}} |
File:Dagger-14-plain.png i.e. can the columns handle the wiki markup {| | || |- |} used to create tables? If not, templates that produce these elements (such as {{(!}}, {{!}}, {{!!}}, {{!-}}, {{!)}}) and/or HTML tags (<table>...</table>
, <tr>...</tr>
, etc) will need to be used instead.
TemplateData
<templatedata> {
"description": "Ends a table. Must appear on a separate line. Normally used with"params": { } } </templatedata>