Difference between revisions of "Template:Ship"
Jump to navigation
Jump to search
m (Protected "Template:Ship" [edit=sysop:move=sysop]) |
(Put image code into flag field; fix main image width.) |
||
| Line 3: | Line 3: | ||
|- | |- | ||
<!----------Image----------> | <!----------Image----------> | ||
| − | {{!}}align="center" colspan="2"{{!}}{{#if:{{{image|}}}|[[image:{{{image}}}| | + | {{!}}align="center" colspan="2"{{!}}{{#if:{{{image|}}}|[[image:{{{image}}}|250px]]|}} |
{{!-}} | {{!-}} | ||
|colspan="2" align="center" style="color: MidnightBlue; font-size: 100%; height: 18px; background: LightBlue no-repeat scroll top left;"| '''Career''' | |colspan="2" align="center" style="color: MidnightBlue; font-size: 100%; height: 18px; background: LightBlue no-repeat scroll top left;"| '''Career''' | ||
| Line 10: | Line 10: | ||
{{#if:{{{flag|}}} | <!--then:--> | {{#if:{{{flag|}}} | <!--then:--> | ||
{{!}}width=40%{{!}} '''Flag''' | {{!}}width=40%{{!}} '''Flag''' | ||
| − | {{!}} {{{flag|}}} | <!--else--> | + | {{!}} [[image:{{{flag|}}}|150px]] | <!--else--> |
}} | }} | ||
{{!-}} | {{!-}} | ||
Revision as of 11:06, November 13, 2008
| 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 | |
| flag | Flag | no | country of registry |
| port | Home port | no | |
| owner | owner | no | commercial owner |
| built | Shipyard | no | |
| launched | Launched | no | date launched |
| retired | Retired | no | date decommisioned |
| status | Status | no | |
| 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 | for submarines |
| armament | Armament | no | if appropriate |
| 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=
| flag=
| owner=
| built=
| launched=
| retired=
| status=
| type=
| displ=
| length=
| beam=
| draft=
| speed=
| test=
| armament=
| crew=
| troops=
| pass=
|}
}}