Template:Shipwreck list begin/doc



A suite of three templates used to construct tables for the lists in. The three templates are:
 * – creates table headings; one per table
 * – table data; one template for each row
 * – closes the table markup

shipwreck list begin
is required for each table. The template takes two parameters, one of which is required:
 * date – required; this parameter is used to create a table caption for those who use screen readers. The caption is not displayed but is present.
 * sort - optional; set this parameter to  to create a sortable table.

shipwreck list item
One or more template is required for each table. The template takes three parameters, none of which are required:
 * ship – the wrecked ship's name; ship name styling per WP:NCSHIPS is the responsibility of the editor.
 * country or flag – country, independent city, or navy to which the wrecked ship belonged; often uses a template.
 * desc – a brief description of the wreck and/or its causes and consequences.

The parameter names for this template are not required except when the value includes '='. The positional order is:

shipwreck list end
is required for each table. The template takes no parameters. Because these tables are wrapped in tags, use this template instead of simply closing the table with   wiki markup so that the  tag in properly included.

Examples
Typical use:

When date is omitted or left blank in :

To create a sortable list, set y:

technical details
This table created by these templates is wrapped in tags so that images may coexist along the right edge of the page without an unwarranted amount white space in the page.

This template includes a table caption ( using wikimarkup;  using html markup) for accessibility. The caption is hidden from sighted readers by setting the element's opacity to 0. Because the caption is still present but hidden, the excess blank space between the bottom of the preceding text and the top of the TOC table is reduced by setting the table's top margin to.