Difference between revisions of "Template:Ship"
Jump to navigation
Jump to search
(Documenting) |
(Expanded and reformatted) |
||
| Line 1: | Line 1: | ||
| − | {| class=" | + | {| class="infobox bordered" style="float: width:23em; right; margin: 0 0 0.5em 0.5em; text-align: left; font-size: 85%; margin-left:5px" border=1 align="right" cellpadding="2" cellspacing="0" width="300" |
| − | + | !colspan="2" align="center" style="color: LightBlue; font-size: 120%; height: 20px; background: MidnightBlue no-repeat scroll top left;"| '''{{{name|{{PAGENAME}}}}}''' | |
|- | |- | ||
| − | ! Displacement | + | <!----------Image----------> |
| − | | {{{disp|}}} | + | {{!}}align="center" colspan="2"{{!}}{{#if:{{{image|}}}|[[image:{{{image}}}|280px280px]]|}} |
| − | |- | + | {{!-}} |
| − | ! Length | + | <!----Flag---------------> |
| − | + | {{#if:{{{flag|}}} | <!--then:--> | |
| − | |- | + | {{!}}width=40%{{!}} '''Flag''' |
| − | ! Beam | + | {{!}} {{{flag|}}} | <!--else--> |
| − | + | }} | |
| − | |- | + | {{!-}} |
| − | ! Draft | + | <!----Shipyard-----------> |
| − | + | {{#if:{{{shipyard|}}} | <!--then:--> | |
| − | |- | + | {{!}}width=40%{{!}} '''Shipyard''' |
| − | ! Speed | + | {{!}} {{{shipyard|}}} | <!--else--> |
| − | + | }} | |
| − | |- | + | {{!-}} |
| − | ! Test depth | + | <!----Launched-----------> |
| − | + | {{#if:{{{launched|}}} | <!--then:--> | |
| − | |- | + | {{!}}width=40%{{!}} '''Launched''' |
| − | ! Armament | + | {{!}} {{{launched|}}} | <!--else--> |
| − | + | }} | |
| − | |- | + | {{!-}} |
| − | ! Crew | + | <!----Retired------------> |
| − | + | {{#if:{{{retired|}}} | <!--then:--> | |
| − | |}<noinclude> | + | {{!}}width=40%{{!}} '''Retired''' |
| − | {{TemplateDoc|pages=Ship articles|purpose=Infobox}} | + | {{!}} {{{retired|}}} | <!--else--> |
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Type-----------------> | ||
| + | {{#if:{{{type|}}} | <!--then:--> | ||
| + | {{!}}width=40%{{!}} '''Type''' | ||
| + | {{!}} {{{type|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Displacement---------> | ||
| + | {{#if:{{{disp|}}} | <!--then:--> | ||
| + | {{!}}width=40%{{!}} '''Displacement''' | ||
| + | {{!}} {{{disp|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Length---------------> | ||
| + | {{#if:{{{length|}}} | <!--then:--> | ||
| + | {{!}}width=40%{{!}} '''Length''' | ||
| + | {{!}} {{{length|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Beam-----------------> | ||
| + | {{#if:{{{beam|}}} | <!--then:--> | ||
| + | {{!}} '''Beam''' | ||
| + | {{!}} {{{beam|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!-----Draft--------------> | ||
| + | {{#if:{{{draft|}}} | <!--then:--> | ||
| + | {{!}} '''Draft''' | ||
| + | {{!}} {{{draft|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Speed---------------> | ||
| + | {{#if:{{{speed|}}} | <!--then:--> | ||
| + | {{!}} '''Speed''' | ||
| + | {{!}} {{{speed|}}} knots| <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Test depth----------> | ||
| + | {{#if:{{{test|}}} | <!--then:--> | ||
| + | {{!}} '''Test depth''' | ||
| + | {{!}} {{{test|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Armament------------> | ||
| + | {{#if:{{{armament|}}} | <!--then:--> | ||
| + | {{!}} '''Armament''' | ||
| + | {{!}} {{{armament|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Crew----------------> | ||
| + | {{#if:{{{crew|}}} | <!--then:--> | ||
| + | {{!}} '''Crew''' | ||
| + | {{!}} {{{crew|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | |} | ||
| + | <includeonly>[[Category:Ships]]</includeonly> | ||
| + | <noinclude>[[Category:Template]] | ||
| + | {{TemplateDoc|pages=Ship articles|purpose=Infobox|cat=Ships}} | ||
{{Parms| | {{Parms| | ||
| − | {{Parm|name|Name of ship| | + | {{Parm|name |Name of ship |no | defaults to page name}} |
| − | {{Parm| | + | {{Parm|image |Picture of ship |no | }} |
| − | {{Parm|length|Length|no}} | + | {{Parm|flag |Flag |no | country of registry}} |
| − | {{Parm|beam|Beam|no}} | + | {{Parm|built |Shipyard |no | }} |
| − | {{Parm|draft|Draft|no}} | + | {{Parm|launched |Launched |no | date launched}} |
| − | {{Parm|speed|Speed|no}} | + | {{Parm|retired |Retired |no | date decommisioned }} |
| − | {{Parm|test|Test depth|no}} | + | {{Parm|type |Type |no | destroyer, frigate etc.}} |
| − | {{Parm|armament|Armament|no}} | + | {{Parm|displ |Displacement |no | }} |
| + | {{Parm|length |Length |no | }} | ||
| + | {{Parm|beam |Beam |no | }} | ||
| + | {{Parm|draft |Draft |no | }} | ||
| + | {{Parm|speed |Speed |no | speed in knots }} | ||
| + | {{Parm|test |Test depth |no | }} | ||
| + | {{Parm|armament |Armament |no | }} | ||
| + | {{Parm|crew |Crew |no | }} | ||
}} | }} | ||
| − | NOTE: Omitted paramaters will | + | NOTE: Omitted paramaters will not be displayed. |
| − | + | ===Sample Data Block=== | |
| + | The following may be copied and pasted at the top of the page being edited. | ||
| + | <pre> | ||
| + | <nowiki>{{</nowiki>Ship | ||
| + | | name= | ||
| + | | image= | ||
| + | | flag= | ||
| + | | built= | ||
| + | | launched= | ||
| + | | retired= | ||
| + | | type= | ||
| + | | displ= | ||
| + | | length= | ||
| + | | beam= | ||
| + | | draft= | ||
| + | | speed= | ||
| + | | test= | ||
| + | | armament= | ||
| + | | crew= | ||
| + | |} | ||
| + | <nowiki>}}</nowiki></pre> | ||
</noinclude> | </noinclude> | ||
Revision as of 04:43, July 16, 2007
| Ship | |
|---|---|
| Template: Ship | |
|---|---|
| Use on | Ship articles |
| Use for | Infobox |
| Category template applies to page | Ships |
| Template Parameters (See using templates). | |||
|---|---|---|---|
| Name | Purpose | Required? | Comment |
| name | Name of ship | no | defaults to page name |
| image | Picture of ship | no | |
| flag | Flag | no | country of registry |
| built | Shipyard | no | |
| launched | Launched | no | date launched |
| retired | Retired | no | date decommisioned |
| type | Type | no | destroyer, frigate etc. |
| displ | Displacement | no | |
| length | Length | no | |
| beam | Beam | no | |
| draft | Draft | no | |
| speed | Speed | no | speed in knots |
| test | Test depth | no | |
| armament | Armament | no | |
| crew | Crew | no | |
NOTE: Omitted paramaters will not be displayed.
Sample Data Block
The following may be copied and pasted at the top of the page being edited.
{{Ship
| name=
| image=
| flag=
| built=
| launched=
| retired=
| type=
| displ=
| length=
| beam=
| draft=
| speed=
| test=
| armament=
| crew=
|}
}}