Difference between revisions of "Template:Ship"
From Conservapedia
(Put image code into flag field; fix main image width.) |
(Allow for flag caption.) |
||
Line 10: | Line 10: | ||
{{#if:{{{flag|}}} | <!--then:--> | {{#if:{{{flag|}}} | <!--then:--> | ||
{{!}}width=40%{{!}} '''Flag''' | {{!}}width=40%{{!}} '''Flag''' | ||
− | {{!}} [[image:{{{flag|}}}|150px]] | <!--else--> | + | {{!}} [[image:{{{flag|}}}|150px|{{{flag-caption|}}}]] | <!--else--> |
}} | }} | ||
{{!-}} | {{!-}} | ||
Line 125: | Line 125: | ||
{{Parm|image |Picture of ship |no | }} | {{Parm|image |Picture of ship |no | }} | ||
{{Parm|flag |Flag |no | country of registry}} | {{Parm|flag |Flag |no | country of registry}} | ||
+ | {{Parm|flag-caption |Caption for flag |no | }} | ||
{{Parm|port |Home port |no | }} | {{Parm|port |Home port |no | }} | ||
{{Parm|owner |owner |no | commercial owner}} | {{Parm|owner |owner |no | commercial owner}} | ||
Line 152: | Line 153: | ||
| image= | | image= | ||
| flag= | | flag= | ||
+ | | flag-caption= | ||
| owner= | | owner= | ||
| built= | | built= |
Revision as of 11:11, 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 |
flag-caption | Caption for 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= |} }}