Difference between revisions of "Template:Ship"
Jump to navigation
Jump to search
(Finally got it, I think.) |
(Add flag-raw field) |
||
| Line 15: | Line 15: | ||
}} | }} | ||
<!--else--> | <!--else--> | ||
| + | }} | ||
| + | {{#if:{{{flag-raw|}}} | <!--then:--> | ||
| + | {{!}}'''Flag''' | ||
| + | {{!}}{{{flag-raw}}} | <!--else--> | ||
}} | }} | ||
{{!-}} | {{!-}} | ||
| Line 127: | Line 131: | ||
{{Parms| | {{Parms| | ||
{{Parm|name |Name of ship |no | defaults to page name}} | {{Parm|name |Name of ship |no | defaults to page name}} | ||
| − | {{Parm|image |Picture of ship |no | }} | + | {{Parm|image |Picture of ship |no | image name only}} |
| − | {{Parm|flag |Flag |no | country of registry}} | + | {{Parm|flag |Flag |no | country of registry. Image name only.}} |
{{Parm|flag-caption |Caption for flag |no | }} | {{Parm|flag-caption |Caption for flag |no | }} | ||
| + | {{Parm|flag-raw |Flag |no | }} | ||
{{Parm|port |Home port |no | }} | {{Parm|port |Home port |no | }} | ||
{{Parm|owner |owner |no | commercial owner}} | {{Parm|owner |owner |no | commercial owner}} | ||
Revision as of 11:59, 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 | image name only |
| 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 | |
| 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=
| flag-caption=
| owner=
| built=
| launched=
| retired=
| status=
| type=
| displ=
| length=
| beam=
| draft=
| speed=
| test=
| armament=
| crew=
| troops=
| pass=
|}
}}