change example to an example using {{end}} rather than using an example from a different template |
Pigsonthewing (talk | contribs) + |
||
Line 2: | Line 2: | ||
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE --> |
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS 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 <nowiki>{{Top}} & {{Mid}} which require {{Bottom}}</nowiki> to end a Top-table (which has a double-level format). |
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 <nowiki>{{Top}} & {{Mid}} which require {{Bottom}}</nowiki> to end a Top-table (which has a double-level format). |
||
=== |
=== 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. |
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 here. |
|||
Alternatively, this template may take a parameter, such as <code><nowiki>{{|End|Cricket series}}</nowiki></code>, to indicate which table start template it matches. The parameter has no technical function. |
|||
== Example == |
|||
<pre> |
<pre> |
||
{{election table|Template name|editlink=no|Summary of the May 2, 2011 election}} |
{{election table|Template name|editlink=no|Summary of the May 2, 2011 election}} |
||
Line 28: | Line 34: | ||
| +1 |
| +1 |
||
|- |
|- |
||
{{end}} |
{{end|election table}} |
||
</pre> |
</pre> |
||
''Result:'' |
''Result:'' |
||
Line 49: | Line 55: | ||
| +1 |
| +1 |
||
|- |
|- |
||
{{end}} |
{{end|election table}} |
||
== TemplateData == |
== TemplateData == |
Revision as of 18:58, 3 March 2015
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).
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 a parameter, such as {{|End|Cricket series}}
, to indicate which table start template it matches. The parameter has no technical function.
Example
{{election table|Template name|editlink=no|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:
Party | Main candidate | Votes | % | +/– | Seats | +/– | |
---|---|---|---|---|---|---|---|
Green | John Johnson | 12 | 50% | +5 | 5 | +1 |
TemplateData
TemplateData for End
Ends a table. Must appear on a separate line. Normally used with {{col-begin}}. It takes no parameters.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |
See also
Column-generating template families
The templates listed here are not interchangeable. For example, using {{col-float}} with {{col-end}} instead of {{col-float-end}} would leave a <div>...</div>
open, potentially harming any subsequent formatting.
Type | Family | Handles wiki
table code?† |
Responsive/ Mobile suited |
Start template | Column divider | End template |
---|---|---|---|---|---|---|
Float | "col-float" | Yes | Yes | {{col-float}} | {{col-float-break}} | {{col-float-end}} |
"columns-start" | Yes | Yes | {{columns-start}} | {{column}} | {{columns-end}} | |
Columns | "div col" | Yes | Yes | {{div col}} | – | {{div col end}} |
"columns-list" | No | Yes | {{columns-list}} (wraps div col) | – | – | |
Flexbox | "flex columns" | No | Yes | {{flex columns}} | – | – |
Table | "col" | Yes | No | {{col-begin}}, {{col-begin-fixed}} or {{col-begin-small}} |
{{col-break}} or {{col-2}} .. {{col-5}} |
{{col-end}} |
† Can template handle the basic wiki markup {| | || |- |}
used to create tables? If not, special templates that produce these elements (such as {{(!}}, {{!}}, {{!!}}, {{!-}}, {{!)}})—or HTML tags (<table>...</table>
, <tr>...</tr>
, etc.)—need to be used instead.