Jump to content

User:Shinerunner/shipwreck list/doc

From Wikipedia, the free encyclopedia


Parameters

[edit]
Shipwreck list parameters (and basic guidelines)
Ship Name The name of the ship involved. The ship name may be linked if article page exists for the entry.
Country (optional) This box should be used for the country the ship was registered in at the time of disaster.
Ship Type (optional) The type of ship involved. Examples include ocean liners, battleships, aircraft carriers, etc.
Date of Loss (optional) Year of the disaster
Type of Loss (optional) The cause of the loss: collision, fire, battle, etc.
Location of Loss (optional) Where the loss occurred: ocean, river, lake, etc.
Number of Survivors (optional) How many people survived the disaster.
Number Lost (optional) How many people lost their lives in the disaster.
ShortSummary (optional) A short summary of the disaster. Linking to other information or referencing may be included.
LineColor (optional) Hex codes for the separator line between the shipwreck entries. Use a color code without the # symbol. For example, the color code #00ff00 would be entered as 00ff00. When no color preference is defined the color used defaults to color "#CCCCFF".

This is where information from the template is placed when rendered ({{{LineColor}}} not shown, since there's no text to display, just a color):

{{{Ship Name}}}{{{Country}}}{{{Ship Type}}}{{{Date of Loss}}}{{{Type of Loss}}}{{{Location of Loss}}}{{{Number of Survivors}}}{{{Number Lost}}}
{{{ShortSummary}}} 

Using the template

[edit]

To apply an entry to a shipwreck listing add the following where the entry would go in the List of shipwrecks.

{{User:Shinerunner/shipwreck list
 |Ship Name=
 |Country=
 |Ship Type=
 |Date of Loss=
 |Type of Loss=
 |Location of Loss=
 |Number of Survivors=
 |Number Lost=
 |ShortSummary=
 |LineColor=
}}
  • Note: This template is only part of a WikiTable, you will need to open the WikiTable first
{| class="wikitable" 
! width="180" style="background:#B0C4DE;"| Ship Name
! width="120" style="background:#B0C4DE;" | Country
! width="120" style="background:#B0C4DE;"| Ship Type
! width="80" style="background:#B0C4DE;"| Date of Loss
! width="80" style="background:#B0C4DE;"| Type of Loss
! width="140" style="background:#B0C4DE;"| Location of Loss
! width="80" style="background:#B0C4DE;"|Number of Survivors
! width="80" style="background:#B0C4DE;"|Number Lost
|-

The Shipwreck list template(s) would then follow.

{{User:Shinerunner/shipwreck list
 |Ship Name= RMS Titanic
 |Country= Great Britain
 |Ship Type= Ocean liner
 |Date of Loss= April 1912
 |Type of Loss= Collision
 |Location of Loss= Atlantic Ocean
 |Number of Survivors=706
 |Number Lost=1,517
 |ShortSummary= The Titanic sank after hitting an iceberg.
 |LineColor=696969
}}

After the final entry/template you will need to close the WikiTable with:

 |}

Example

[edit]

This entry:

{{User:Shinerunner/shipwreck list
 |Ship Name= RMS Titanic
 |Country= Great Britain
 |Ship Type= Ocean liner
 |Date of Loss= April 1912
 |Type of Loss= Collision
 |Location of Loss= Atlantic Ocean
 |Number of Survivors=706
 |Number Lost=1,517
 |ShortSummary= The Titanic sank after hitting an iceberg.
 |LineColor=696969
}}

Would appear as follows (shown without table headers):

Ship Name Country Ship Type Date of Loss Type of Loss Location of Loss Number of Survivors Number Lost
RMS TitanicGreat BritainOcean linerApril 1912CollisionAtlantic Ocean7061,517
The Titanic sank after hitting an iceberg.