Difference between revisions of "Template:Ship"

From Conservapedia
Jump to navigation Jump to search
(Allow for flag caption.)
(Fix code (I think))
Line 10: Line 10:
 
{{#if:{{{flag|}}} | <!--then:-->
 
{{#if:{{{flag|}}} | <!--then:-->
 
{{!}}width=40%{{!}} '''Flag'''
 
{{!}}width=40%{{!}} '''Flag'''
−
{{!}} [[image:{{{flag|}}}|150px|{{{flag-caption|}}}]] | <!--else-->
+
{{!}} [[image:{{{flag|}}}{{!}}150px{{!}}|{{{flag-caption{{!}}}}}]] | <!--else-->
 
}}
 
}}
 
{{!-}}
 
{{!-}}

Revision as of 11:13, 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=
|}
}}