Template:Shipwreck list end/doc
This is a documentation subpage for Template:Shipwreck list end. It may contain usage information, categories and other content that is not part of the original template page. |
A suite of three templates used to construct tables for the lists in Category:Lists of shipwrecks by year. The three templates are:
{{shipwreck list begin}}
– creates table headings; one per table{{shipwreck list item}}
– table data; one template for each row{{shipwreck list end}}
– closes the table markup
Usage
[edit]shipwreck list begin
[edit]{{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 toy
to create a sortable table.
shipwreck list item
[edit]One or more {{shipwreck list item}}
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{{flag}}
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 item|ship|country|desc}}
shipwreck list end
[edit]{{shipwreck list end}}
is required for each table. The template takes no parameters. Because these tables are wrapped in <div>...</div>
tags, use this template instead of simply closing the table with |}
wiki markup so that the </div>
tag in properly included.
Examples
[edit]Typical use:[a]
{{shipwreck list begin |date=4 August 2014 |sort=}}
{{shipwreck list item
|ship= ''Diver Master''
|flag={{flag|Denmark}}
|desc=The [[tugboat|tug]] was sunk by {{ship||Kruzenshtern|ship|2}} ({{navy|Russia}}) at [[Esbjerg]] when a line between the two vessels failed to release. Her three crew were rescued.
}}
{{shipwreck list item
|ship= ''Pinak-6''
|flag={{flag|Bangladesh|civil}}
|desc=The ferry, carrying approximately two hundred passengers, capsized on the [[Padma River]] in [[Munshiganj District]], 30 km from [[Dhaka]].
}}
{{shipwreck list item
|ship=''Tahoe Queen''
|flag={{flag|United States}}
|desc=The [[passenger ship]] ran aground off [[Tahoe Keys, California]]. Two hundred and ninety-six passengers were taken off the vessel in an operation coordinated by the [[United States Coast Guard]].
}}
{{shipwreck list end}}
Ship | State | Description |
---|---|---|
Diver Master | Denmark | The tug was sunk by Kruzenshtern ( Russian Navy) at Esbjerg when a line between the two vessels failed to release. Her three crew were rescued. |
Pinak-6 | Bangladesh | The ferry, carrying approximately two hundred passengers, capsized on the Padma River in Munshiganj District, 30 km from Dhaka. |
Tahoe Queen | United States | The passenger ship ran aground off Tahoe Keys, California. Two hundred and ninety-six passengers were taken off the vessel in an operation coordinated by the United States Coast Guard. |
When |date=
is omitted or left blank in {{shipwreck list begin}}
:
Ship | State | Description |
---|---|---|
Diver Master | Denmark | The tug was sunk by Kruzenshtern ( Russian Navy) at Esbjerg when a line between the two vessels failed to release. Her three crew were rescued. |
Pinak-6 | Bangladesh | The ferry, carrying approximately two hundred passengers, capsized on the Padma River in Munshiganj District, 30 km from Dhaka. |
Tahoe Queen | United States | The passenger ship ran aground off Tahoe Keys, California. Two hundred and ninety-six passengers were taken off the vessel in an operation coordinated by the United States Coast Guard. |
To create a sortable list, set |sort=y
:
Ship | State | Description |
---|---|---|
Diver Master | Denmark | The tug was sunk by Kruzenshtern ( Russian Navy) at Esbjerg when a line between the two vessels failed to release. Her three crew were rescued. |
Pinak-6 | Bangladesh | The ferry, carrying approximately two hundred passengers, capsized on the Padma River in Munshiganj District, 30 km from Dhaka. |
Tahoe Queen | United States | The passenger ship ran aground off Tahoe Keys, California. Two hundred and ninety-six passengers were taken off the vessel in an operation coordinated by the United States Coast Guard. |
technical details
[edit]This table created by these templates is wrapped in <div style="overflow-x:auto">...</div>
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; <caption>...</caption>
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 -1.5em
.
Notes
[edit]- ^ To help avoid Wikipedia's post expansion include size template limit, use {{flagg}} with the appropriate additional parameters instead of {{flag}}, {{flag country}}, etc. on long pages or on templates that will be used on long pages.