Difference between revisions of "Template:End/doc"

From blackwiki
Jump to navigation Jump to search
(sl:Predloga:End)
imported>GhostInTheMachine
(Reverted 1 edit by TheSolomonCaine (talk): The doc page may need some work, but not blanking)
 
(37 intermediate revisions by 24 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[</nowiki>[[Wikipedia:Wikidata]]<nowiki>]]) -->
__NOTOC__
+
{{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, except with template <nowiki>{{Top}} & {{Mid}} which require {{Bottom}}</nowiki> to end a Top-table (which has a double-level format).
 
  
===Severe limitations===
+
== 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 {{tl|Collapse top}} which requires a {{tl|collapse bottom}} to end a collapsible text.
 +
 
 +
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.
 
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.
  
===Examples===
+
== 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 (in the example given, {{tl|Infobox cricket series begin}}). The parameter has no technical function.
 +
 
 +
== Example ==
 
<pre>
 
<pre>
<nowiki>{{col-begin}}{{col-2}}AA{{col-2}}BB</nowiki>
+
{{election table|Template name|editlink=no|Summary of the May 2, 2011 election}}
<nowiki>{{end}}</nowiki>
+
|- 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}}
 
</pre>
 
</pre>
 
''Result:''
 
''Result:''
{{col-begin}}{{col-2}}AA{{col-2}}BB
+
{{election table|Template name|editlink=no|Summary of the May 2, 2011 election}}
{{end}}
+
|- style="text-align:right;"
<pre>
+
! style="background-color:#E9E9E9; width:400; text-align:left;" colspan="2" | Party
<nowiki>{{col-begin}}</nowiki>
+
! style="background-color:#E9E9E9; width:200; text-align:left;" | Main candidate
<nowiki>{{col-2}}AA</nowiki>
+
! style="background-color:#E9E9E9; width:50;" | Votes
<nowiki>{{col-2}}BB</nowiki>
+
! style="background-color:#E9E9E9; width:50;" | %
<nowiki>{{end}}</nowiki>
+
! style="background-color:#E9E9E9; width:50;" | +/
</pre>
+
! style="background-color:#E9E9E9; width:50;" | Seats
''Result:''
+
! style="background-color:#E9E9E9; width:50;" | +/
{{col-begin}}
+
|-
{{col-2}}AA
+
| style="background-color:green" | || Green
{{col-2}}BB
+
| John Johnson
{{end}}
+
| 12
 +
| 50%
 +
| +5
 +
| 5
 +
| +1
 +
|-
 +
{{end|election table}}
 +
 
 +
== TemplateData ==
 +
{{TemplateDataHeader}}
 +
<templatedata>
 +
{
 +
    "description": "Ends a table. Must appear on a separate line. Normally used with {{col-begin}}. It takes no parameters.",
 +
    "params": {
 +
    }
 +
}
 +
</templatedata>
 +
 
 +
== See also ==
 +
* {{tl|!)}}
  
=== See also ===
+
{{Column-generating template families}}
*{{tl|col-end}}
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Succession templates|{{PAGENAME}}]]
 
  
[[fr:Modèle:Fin dynastie]]
+
<includeonly>{{Sandbox other||
[[hy:Կաղապար:End]]
+
<!-- Categories below this line, please; interwikis at Wikidata -->
[[ja:Template:End]]
+
[[Category:Succession templates]]
[[ka:თარგი:End]]
+
[[Category:Templates with partial table wikitext]]
[[pt:Predefinição:Fim]]
+
}}</includeonly>
[[ru:Шаблон:End box]]
 
[[sl:Predloga:End]]
 
</includeonly>
 

Latest revision as of 20:40, 8 December 2020

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 a parameter, such as {{End|Cricket series}}, to indicate which table start template it matches (in the example given, {{Infobox cricket series begin}}). 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:

Summary of the May 2, 2011 election
Party Main candidate Votes % +/– Seats +/–
Green John Johnson 12 50% +5 5 +1

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for End

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

Template parameters

ParameterDescriptionTypeStatus
No parameters specified

See also

Column-generating template families

<section begin="table" />

Family Type
Handles wiki
 table code?File:Dagger-14-plain.png
Responsive/
Mobile suited
Start template Column divider End template
"Col" Table Yes Yes {{Col-begin}},
{{Col-begin-fixed}} or
{{Col-begin-small}}
{{Col-break}} or
{{Col-2}} .. {{Col-5}}
{{Col-end}}
"Col-float" CSS float Yes Yes {{Col-float}} {{Col-float-break}} {{Col-float-end}}
"Columns" Table No Yes {{Columns}}
"Columns-list" CSS columns Yes Yes {{Columns-list}} (wrapper)
"Columns-start" CSS float Yes Yes {{Columns-start}} {{Column}} {{Columns-end}}
"Flex columns" CSS flexbox Yes Yes {{Flex columns}}
"Div col" CSS columns Yes Yes {{Div col}} {{Div col end}}

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 {{(!}}, {{!}}, {{!!}}, {{!-}}, {{!)}}) or HTML tags (<table>...</table>, <tr>...</tr>, etc.) will need to be used instead.<section end="table" />