الگو:Shipwreck list begin

توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]


A suite of three templates used to construct tables for the lists in رده: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 ویرایش

shipwreck list begin ویرایش

{{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 y to create a sortable table.

shipwreck list item ویرایش

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 ویرایش

{{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 ویرایش

Typical use:

{{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 [[اسبیرگ]] 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 [[رود پادما]] in [[ناحیه منشی‌گنج]], 30 km from [[داکا]].
}}
{{shipwreck list item
|ship=''Tahoe Queen'' 
|flag={{flag|United States}}
|desc=The [[کشتی مسافربری]] ran aground off [[Tahoe Keys, California]]. Two hundred and ninety-six passengers were taken off the vessel in an operation coordinated by the [[گارد ساحلی ایالات متحده آمریکا]].
}}
{{shipwreck list end}}
List of shipwrecks: 4 August 2014
کشتی کشور توضیحات
Diver Master  دانمارک The tug was sunk by Kruzenshtern ( نیروی دریایی روسیه) at اسبیرگ when a line between the two vessels failed to release. Her three crew were rescued.
Pinak-6  بنگلادش The ferry, carrying approximately two hundred passengers, capsized on the رود پادما in ناحیه منشی‌گنج, 30 km from داکا.
Tahoe Queen  ایالات متحده آمریکا The کشتی مسافربری ran aground off Tahoe Keys, California. Two hundred and ninety-six passengers were taken off the vessel in an operation coordinated by the گارد ساحلی ایالات متحده آمریکا.

When |date= is omitted or left blank in {{shipwreck list begin}}:

List of shipwrecks: |date= required
کشتی کشور توضیحات
Diver Master  دانمارک The tug was sunk by Kruzenshtern ( نیروی دریایی روسیه) at اسبیرگ when a line between the two vessels failed to release. Her three crew were rescued.
Pinak-6  بنگلادش The ferry, carrying approximately two hundred passengers, capsized on the رود پادما in ناحیه منشی‌گنج, 30 km from داکا.
Tahoe Queen  ایالات متحده آمریکا The کشتی مسافربری ran aground off Tahoe Keys, California. Two hundred and ninety-six passengers were taken off the vessel in an operation coordinated by the گارد ساحلی ایالات متحده آمریکا.

To create a sortable list, set |sort=y:

List of shipwrecks: 4 August 2014
کشتی کشور توضیحات
Diver Master  دانمارک The tug was sunk by Kruzenshtern ( نیروی دریایی روسیه) at اسبیرگ when a line between the two vessels failed to release. Her three crew were rescued.
Pinak-6  بنگلادش The ferry, carrying approximately two hundred passengers, capsized on the رود پادما in ناحیه منشی‌گنج, 30 km from داکا.
Tahoe Queen  ایالات متحده آمریکا The کشتی مسافربری ran aground off Tahoe Keys, California. Two hundred and ninety-six passengers were taken off the vessel in an operation coordinated by the گارد ساحلی ایالات متحده آمریکا.

technical details ویرایش

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.