Difference between revisions of "Template:Ship"

From Conservapedia
Jump to navigation Jump to search
m (formatting)
m
 
(24 intermediate revisions by 5 users not shown)
Line 3: Line 3:
 
|-
 
|-
 
<!----------Image---------->
 
<!----------Image---------->
−
{{!}}align="center" colspan="2"{{!}}{{#if:{{{image|}}}|[[image:{{{image}}}|250px250px]]|}}
+
{{!}}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--------------->
 
<!----Flag--------------->
 
{{#if:{{{flag|}}} | <!--then:-->
 
{{#if:{{{flag|}}} | <!--then:-->
 
{{!}}width=40%{{!}} '''Flag'''
 
{{!}}width=40%{{!}} '''Flag'''
−
{{!}} {{{flag|}}} | <!--else-->
+
{{!}}[[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----------->
 
<!----Shipyard----------->
−
{{#if:{{{shipyard|}}} | <!--then:-->
+
{{#if:{{{built|}}} | <!--then:-->
 
{{!}}width=40%{{!}} '''Shipyard'''
 
{{!}}width=40%{{!}} '''Shipyard'''
−
{{!}} {{{shipyard|}}} | <!--else-->
+
{{!}} {{{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-->
 
}}
 
}}
 
{{!-}}
 
{{!-}}
Line 23: Line 63:
 
}}
 
}}
 
{{!-}}
 
{{!-}}
−
<!----Retired------------>
+
<!----Commissioned----------->
−
{{#if:{{{retired|}}} | <!--then:-->
+
{{#if:{{{commissioned|}}} | <!--then:-->
−
{{!}}width=40%{{!}} '''Retired'''
+
{{!}}width=40%{{!}} '''Commissioned'''
−
{{!}} {{{retired|}}} | <!--else-->
+
{{!}} {{{commissioned|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Decommissioned------------>
 +
{{#if:{{{decommissioned|}}} | <!--then:-->
 +
{{!}}width=40%{{!}} '''Decommissioned'''
 +
{{!}} {{{decommissioned|}}} | <!--else-->
 
}}
 
}}
 
{{!-}}
 
{{!-}}
−
<!----Type----------------->
+
<!----Status--------------->
−
{{#if:{{{type|}}} | <!--then:-->
+
{{#if:{{{status|}}} | <!--then:-->
−
{{!}}width=40%{{!}} '''Type'''
+
{{!}}width=40%{{!}} '''Status'''
−
{{!}} {{{type|}}} | <!--else-->
+
{{!}} {{{status|}}} | <!--else-->
 
}}
 
}}
 
{{!-}}
 
{{!-}}
 +
|colspan="2" align="center" style="color: MidnightBlue; font-size: 100%; height: 18px; background: LightBlue no-repeat scroll top left;"| '''Characteristics'''
 +
|-
 
<!----Displacement--------->
 
<!----Displacement--------->
 
{{#if:{{{displ|}}} | <!--then:-->
 
{{#if:{{{displ|}}} | <!--then:-->
Line 62: Line 110:
 
{{#if:{{{speed|}}} | <!--then:-->
 
{{#if:{{{speed|}}} | <!--then:-->
 
{{!}} '''Speed'''
 
{{!}} '''Speed'''
−
{{!}} {{{speed|}}} knots| <!--else-->
+
{{!}} {{{speed|}}} | <!--else-->
 
}}
 
}}
 
{{!-}}
 
{{!-}}
Line 75: Line 123:
 
{{!}} '''Armament'''
 
{{!}} '''Armament'''
 
{{!}} {{{armament|}}} | <!--else-->
 
{{!}} {{{armament|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Aircraft------------>
 +
{{#if:{{{aircraft|}}} | <!--then:-->
 +
{{!}} '''Aircraft'''
 +
{{!}} {{{aircraft|}}} | <!--else-->
 
}}
 
}}
 
{{!-}}
 
{{!-}}
Line 81: Line 135:
 
{{!}} '''Crew'''
 
{{!}} '''Crew'''
 
{{!}} {{{crew|}}} | <!--else-->
 
{{!}} {{{crew|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Troops-------------->
 +
{{#if:{{{troops|}}} | <!--then:-->
 +
{{!}} '''Troops'''
 +
{{!}} {{{troops|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Passengers---------->
 +
{{#if:{{{pass|}}} | <!--then:-->
 +
{{!}} '''Passengers'''
 +
{{!}} {{{pass|}}} | <!--else-->
 
}}
 
}}
 
{{!-}}
 
{{!-}}
 
|}
 
|}
 
<includeonly>[[Category:Ships]]</includeonly>
 
<includeonly>[[Category:Ships]]</includeonly>
−
<noinclude>[[Category:Template]]
+
<noinclude>[[Category:Template|{{PAGENAME}}]]
 
{{TemplateDoc|pages=Ship articles|purpose=Infobox|cat=Ships}}
 
{{TemplateDoc|pages=Ship articles|purpose=Infobox|cat=Ships}}
 
{{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|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|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|launched    |Launched          |no | date launched}}
−
  {{Parm|retired     |Retired          |no | date decommisioned }}
+
  {{Parm|commissioned |Commissioned     |no | }}
−
  {{Parm|type        |Type              |no | destroyer, frigate etc.}}
+
{{Parm|decommissioned |Decommissioned  |no | date decommisioned }}
 +
  {{Parm|status      |Status            |no | }}
 
  {{Parm|displ        |Displacement      |no | }}
 
  {{Parm|displ        |Displacement      |no | }}
 
  {{Parm|length      |Length            |no | }}
 
  {{Parm|length      |Length            |no | }}
Line 100: Line 175:
 
  {{Parm|draft        |Draft            |no | }}
 
  {{Parm|draft        |Draft            |no | }}
 
  {{Parm|speed        |Speed            |no | speed in knots }}
 
  {{Parm|speed        |Speed            |no | speed in knots }}
−
  {{Parm|test        |Test depth        |no | }}
+
  {{Parm|test        |Test depth        |no | for submarines}}
−
  {{Parm|armament    |Armament          |no | }}
+
  {{Parm|armament    |Armament         |no | if appropriate}}
 +
{{Parm|aircraft    |Aircraft         |no | }}
 
  {{Parm|crew        |Crew              |no | }}
 
  {{Parm|crew        |Crew              |no | }}
 +
{{Parm|troops      |Troops            |no | if appropriate}}
 +
{{Parm|pass        |Passengers        |no | if appropriate}}
 
}}
 
}}
 
NOTE:  Omitted paramaters will not be displayed.
 
NOTE:  Omitted paramaters will not be displayed.
Line 112: Line 190:
 
| name=  
 
| name=  
 
| image=
 
| image=
 +
| caption=
 
| flag=
 
| flag=
 +
| flag-caption=
 +
| owner=
 
| built=
 
| built=
 +
| authorized=
 +
| keellaid=
 +
| commissioned=
 
| launched=
 
| launched=
 
| retired=
 
| retired=
 +
| status=
 
| type=
 
| type=
 
| displ=
 
| displ=
Line 124: Line 209:
 
| test=
 
| test=
 
| armament=
 
| armament=
 +
| aircraft=
 
| crew=
 
| crew=
 +
| troops=
 +
| pass=
 
|}
 
|}
 
<nowiki>}}</nowiki></pre>
 
<nowiki>}}</nowiki></pre>
 
</noinclude>
 
</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=
|}
}}