Difference between revisions of "Template:Ship"
Jump to navigation
Jump to search
m |
|||
| (31 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {| | + | {| 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}}}}}''' | |
|- | |- | ||
| − | ! | + | <!----------Image----------> |
| − | | {{{ | + | {{!}}align="center" colspan="2"{{!}}{{#if:{{{image|}}}|[[image:{{{image}}}|250px{{#if:{{{caption|}}}|{{!}}frame{{!}}{{{caption}}}|}}]]|}} |
| + | {{!-}} | ||
| + | |colspan="2" align="center" style="color: MidnightBlue; font-size: 100%; height: 18px; background: LightBlue no-repeat scroll top left;"| '''Career''' | ||
|- | |- | ||
| − | ! | + | <!----Flag---------------> |
| − | | {{{ | + | {{#if:{{{flag|}}} | <!--then:--> |
| + | {{!}}width=40%{{!}} '''Flag''' | ||
| + | {{!}}[[image:{{{flag|}}}|50px|center]] | ||
| + | {{#if:{{{flag-caption|}}} | <!--then:--> | ||
| + | <small><center>{{{flag-caption|}}}</center></small> | <!--else--> | ||
| + | }} | ||
| + | <!--else--> | ||
| + | }} | ||
| + | {{#if:{{{flag-raw|}}} | <!--then:--> | ||
| + | {{!}}'''Flag''' | ||
| + | {{!}}{{{flag-raw}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Owner--------------> | ||
| + | {{#if:{{{owner|}}} | <!--then:--> | ||
| + | {{!}}width=40%{{!}} '''Owner''' | ||
| + | {{!}} {{{owner|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Port---------------> | ||
| + | {{#if:{{{port|}}} | <!--then:--> | ||
| + | {{!}}width=40%{{!}} '''Home port''' | ||
| + | {{!}} {{{port|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Shipyard-----------> | ||
| + | {{#if:{{{built|}}} | <!--then:--> | ||
| + | {{!}}width=40%{{!}} '''Shipyard''' | ||
| + | {{!}} {{{built|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Type-----------------> | ||
| + | {{#if:{{{type|}}} | <!--then:--> | ||
| + | {{!}}width=40%{{!}} '''Type''' | ||
| + | {{!}} {{{type|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Authorized-----------> | ||
| + | {{#if:{{{authorized|}}} | <!--then:--> | ||
| + | {{!}}width=40%{{!}} '''Authorized''' | ||
| + | {{!}} {{{authorized|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Keel laid-----------> | ||
| + | {{#if:{{{keellaid|}}} | <!--then:--> | ||
| + | {{!}}width=40%{{!}} '''Keel laid''' | ||
| + | {{!}} {{{keellaid|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Launched-----------> | ||
| + | {{#if:{{{launched|}}} | <!--then:--> | ||
| + | {{!}}width=40%{{!}} '''Launched''' | ||
| + | {{!}} {{{launched|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Commissioned-----------> | ||
| + | {{#if:{{{commissioned|}}} | <!--then:--> | ||
| + | {{!}}width=40%{{!}} '''Commissioned''' | ||
| + | {{!}} {{{commissioned|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Decommissioned------------> | ||
| + | {{#if:{{{decommissioned|}}} | <!--then:--> | ||
| + | {{!}}width=40%{{!}} '''Decommissioned''' | ||
| + | {{!}} {{{decommissioned|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Status---------------> | ||
| + | {{#if:{{{status|}}} | <!--then:--> | ||
| + | {{!}}width=40%{{!}} '''Status''' | ||
| + | {{!}} {{{status|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | |colspan="2" align="center" style="color: MidnightBlue; font-size: 100%; height: 18px; background: LightBlue no-repeat scroll top left;"| '''Characteristics''' | ||
|- | |- | ||
| − | ! Beam | + | <!----Displacement---------> |
| − | | {{{beam}}} | + | {{#if:{{{displ|}}} | <!--then:--> |
| − | |- | + | {{!}}width=40%{{!}} '''Displacement''' |
| − | ! Draft | + | {{!}} {{{displ|}}} | <!--else--> |
| − | + | }} | |
| − | |- | + | {{!-}} |
| − | ! Speed | + | <!----Length---------------> |
| − | + | {{#if:{{{length|}}} | <!--then:--> | |
| − | |- | + | {{!}}width=40%{{!}} '''Length''' |
| − | ! Test depth | + | {{!}} {{{length|}}} | <!--else--> |
| − | + | }} | |
| − | |- | + | {{!-}} |
| − | ! Armament | + | <!----Beam-----------------> |
| − | | {{{ | + | {{#if:{{{beam|}}} | <!--then:--> |
| − | |- | + | {{!}} '''Beam''' |
| − | ! Crew | + | {{!}} {{{beam|}}} | <!--else--> |
| − | | {{{crew}}} | + | }} |
| + | {{!-}} | ||
| + | <!-----Draft--------------> | ||
| + | {{#if:{{{draft|}}} | <!--then:--> | ||
| + | {{!}} '''Draft''' | ||
| + | {{!}} {{{draft|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Speed---------------> | ||
| + | {{#if:{{{speed|}}} | <!--then:--> | ||
| + | {{!}} '''Speed''' | ||
| + | {{!}} {{{speed|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Test depth----------> | ||
| + | {{#if:{{{test|}}} | <!--then:--> | ||
| + | {{!}} '''Test depth''' | ||
| + | {{!}} {{{test|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Armament------------> | ||
| + | {{#if:{{{armament|}}} | <!--then:--> | ||
| + | {{!}} '''Armament''' | ||
| + | {{!}} {{{armament|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Aircraft------------> | ||
| + | {{#if:{{{aircraft|}}} | <!--then:--> | ||
| + | {{!}} '''Aircraft''' | ||
| + | {{!}} {{{aircraft|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Crew----------------> | ||
| + | {{#if:{{{crew|}}} | <!--then:--> | ||
| + | {{!}} '''Crew''' | ||
| + | {{!}} {{{crew|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Troops--------------> | ||
| + | {{#if:{{{troops|}}} | <!--then:--> | ||
| + | {{!}} '''Troops''' | ||
| + | {{!}} {{{troops|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | <!----Passengers----------> | ||
| + | {{#if:{{{pass|}}} | <!--then:--> | ||
| + | {{!}} '''Passengers''' | ||
| + | {{!}} {{{pass|}}} | <!--else--> | ||
| + | }} | ||
| + | {{!-}} | ||
| + | |} | ||
| + | <includeonly>[[Category:Ships]]</includeonly> | ||
| + | <noinclude>[[Category:Template|{{PAGENAME}}]] | ||
| + | {{TemplateDoc|pages=Ship articles|purpose=Infobox|cat=Ships}} | ||
| + | {{Parms| | ||
| + | {{Parm|name |Name of ship |no | defaults to page name}} | ||
| + | {{Parm|image |Picture of ship |no | image name only}} | ||
| + | {{Parm|caption |Caption of image |no | }} | ||
| + | {{Parm|flag |Flag |no | country of registry. Image name only.}} | ||
| + | {{Parm|flag-caption |Caption for flag |no | }} | ||
| + | {{Parm|flag-raw |Flag |no | }} | ||
| + | {{Parm|port |Home port |no | }} | ||
| + | {{Parm|owner |owner |no | commercial owner}} | ||
| + | {{Parm|built |Shipyard |no | }} | ||
| + | {{Parm|type |Type |no | destroyer, frigate etc.}} | ||
| + | {{Parm|authorized |Authorized |no | }} | ||
| + | {{Parm|keellaid |Keel laid |no | }} | ||
| + | {{Parm|launched |Launched |no | date launched}} | ||
| + | {{Parm|commissioned |Commissioned |no | }} | ||
| + | {{Parm|decommissioned |Decommissioned |no | date decommisioned }} | ||
| + | {{Parm|status |Status |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 | for submarines}} | ||
| + | {{Parm|armament |Armament |no | if appropriate}} | ||
| + | {{Parm|aircraft |Aircraft |no | }} | ||
| + | {{Parm|crew |Crew |no | }} | ||
| + | {{Parm|troops |Troops |no | if appropriate}} | ||
| + | {{Parm|pass |Passengers |no | if appropriate}} | ||
| + | }} | ||
| + | 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= | ||
| + | | caption= | ||
| + | | flag= | ||
| + | | flag-caption= | ||
| + | | owner= | ||
| + | | built= | ||
| + | | authorized= | ||
| + | | keellaid= | ||
| + | | commissioned= | ||
| + | | launched= | ||
| + | | retired= | ||
| + | | status= | ||
| + | | type= | ||
| + | | displ= | ||
| + | | length= | ||
| + | | beam= | ||
| + | | draft= | ||
| + | | speed= | ||
| + | | test= | ||
| + | | armament= | ||
| + | | aircraft= | ||
| + | | crew= | ||
| + | | troops= | ||
| + | | pass= | ||
|} | |} | ||
| + | <nowiki>}}</nowiki></pre> | ||
| + | </noinclude> | ||
Latest revision as of 05:52, April 19, 2010
| Ship | |
|---|---|
| Career | |
| Characteristics |
| 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 | image name only |
| caption | Caption of image | no | |
| flag | Flag | no | country of registry. Image name only. |
| flag-caption | Caption for flag | no | |
| flag-raw | Flag | no | |
| port | Home port | no | |
| owner | owner | no | commercial owner |
| built | Shipyard | no | |
| type | Type | no | destroyer, frigate etc. |
| authorized | Authorized | no | |
| keellaid | Keel laid | no | |
| launched | Launched | no | date launched |
| commissioned | Commissioned | no | |
| decommissioned | Decommissioned | no | date decommisioned |
| status | Status | no | |
| displ | Displacement | no | |
| length | Length | no | |
| beam | Beam | no | |
| draft | Draft | no | |
| speed | Speed | no | speed in knots |
| test | Test depth | no | for submarines |
| armament | Armament | no | if appropriate |
| aircraft | Aircraft | no | |
| crew | Crew | no | |
| troops | Troops | no | if appropriate |
| pass | Passengers | no | if appropriate |
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=
| caption=
| flag=
| flag-caption=
| owner=
| built=
| authorized=
| keellaid=
| commissioned=
| launched=
| retired=
| status=
| type=
| displ=
| length=
| beam=
| draft=
| speed=
| test=
| armament=
| aircraft=
| crew=
| troops=
| pass=
|}
}}