Changes

Jump to navigation Jump to search
2,764 bytes added ,  04:43, July 16, 2007
Expanded and reformatted
Line 1: Line 1: −
{| class="wikitable" style="text-align: left; font-size: 95%; float: right; clear: right;"
+
{| class="infobox bordered" style="float: width:23em; right; margin: 0 0 0.5em 0.5em; text-align: left; font-size: 85%; margin-left:5px" border=1 align="right" cellpadding="2" cellspacing="0" width="300"
−
|+ style="font-size: larger;" | {{{name}}}
+
!colspan="2" align="center" style="color: LightBlue; font-size: 120%; height: 20px; background: MidnightBlue no-repeat scroll top left;"| '''{{{name|{{PAGENAME}}}}}'''
 
|-
 
|-
−
! Displacement  
+
<!----------Image---------->
−
| {{{disp|}}}
+
{{!}}align="center" colspan="2"{{!}}{{#if:{{{image|}}}|[[image:{{{image}}}|280px280px]]|}}
−
|-
+
{{!-}}
−
! Length  
+
<!----Flag--------------->
−
| {{{length|}}}
+
{{#if:{{{flag|}}} | <!--then:-->
−
|-
+
{{!}}width=40%{{!}} '''Flag'''
−
! Beam  
+
{{!}} {{{flag|}}} | <!--else-->
−
| {{{beam|}}}
+
}}
−
|-
+
{{!-}}
−
! Draft  
+
<!----Shipyard----------->
−
| {{{draft|}}}
+
{{#if:{{{shipyard|}}} | <!--then:-->
−
|-
+
{{!}}width=40%{{!}} '''Shipyard'''
−
! Speed  
+
{{!}} {{{shipyard|}}} | <!--else-->
−
| {{{speed|}}}
+
}}
−
|-
+
{{!-}}
−
! Test depth  
+
<!----Launched----------->
−
| {{{test|}}}
+
{{#if:{{{launched|}}} | <!--then:-->
−
|-
+
{{!}}width=40%{{!}} '''Launched'''
−
! Armament  
+
{{!}} {{{launched|}}} | <!--else-->
−
| {{{armament|}}}
+
}}
−
|-
+
{{!-}}
−
! Crew  
+
<!----Retired------------>
−
| {{{crew|}}}
+
{{#if:{{{retired|}}} | <!--then:-->
−
|}<noinclude>
+
{{!}}width=40%{{!}} '''Retired'''
−
{{TemplateDoc|pages=Ship articles|purpose=Infobox}}
+
{{!}} {{{retired|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Type----------------->
 +
{{#if:{{{type|}}} | <!--then:-->
 +
{{!}}width=40%{{!}} '''Type'''
 +
{{!}} {{{type|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Displacement--------->
 +
{{#if:{{{disp|}}} | <!--then:-->
 +
{{!}}width=40%{{!}} '''Displacement'''
 +
{{!}} {{{disp|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Length--------------->
 +
{{#if:{{{length|}}} | <!--then:-->
 +
{{!}}width=40%{{!}} '''Length'''
 +
{{!}} {{{length|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Beam----------------->
 +
{{#if:{{{beam|}}} | <!--then:-->
 +
{{!}} '''Beam'''
 +
{{!}} {{{beam|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!-----Draft-------------->
 +
{{#if:{{{draft|}}} | <!--then:-->
 +
{{!}} '''Draft'''
 +
{{!}} {{{draft|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Speed--------------->
 +
{{#if:{{{speed|}}} | <!--then:-->
 +
{{!}} '''Speed'''
 +
{{!}} {{{speed|}}} knots| <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Test depth---------->
 +
{{#if:{{{test|}}} | <!--then:-->
 +
{{!}} '''Test depth'''
 +
{{!}} {{{test|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Armament------------>
 +
{{#if:{{{armament|}}} | <!--then:-->
 +
{{!}} '''Armament'''
 +
{{!}} {{{armament|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
<!----Crew---------------->
 +
{{#if:{{{crew|}}} | <!--then:-->
 +
{{!}} '''Crew'''
 +
{{!}} {{{crew|}}} | <!--else-->
 +
}}
 +
{{!-}}
 +
|}
 +
<includeonly>[[Category:Ships]]</includeonly>
 +
<noinclude>[[Category:Template]]
 +
{{TemplateDoc|pages=Ship articles|purpose=Infobox|cat=Ships}}
 
{{Parms|
 
{{Parms|
−
  {{Parm|name|Name of ship|yes}}
+
  {{Parm|name         |Name of ship     |no | defaults to page name}}
−
  {{Parm|disp|Displacement|no}}
+
  {{Parm|image        |Picture of ship  |no | }}
−
  {{Parm|length|Length|no}}
+
{{Parm|flag        |Flag              |no | country of registry}}
−
  {{Parm|beam|Beam|no}}
+
{{Parm|built        |Shipyard          |no | }}
−
  {{Parm|draft|Draft|no}}
+
{{Parm|launched    |Launched          |no | date launched}}
−
  {{Parm|speed|Speed|no}}
+
{{Parm|retired      |Retired          |no | date decommisioned }}
−
  {{Parm|test|Test depth|no}}
+
{{Parm|type        |Type              |no | destroyer, frigate etc.}}
−
  {{Parm|armament|Armament|no}}
+
{{Parm|displ        |Displacement     |no | }}
 +
  {{Parm|length       |Length           |no | }}
 +
  {{Parm|beam         |Beam             |no | }}
 +
  {{Parm|draft       |Draft             |no | }}
 +
  {{Parm|speed       |Speed             |no | speed in knots }}
 +
  {{Parm|test         |Test depth       |no | }}
 +
  {{Parm|armament     |Armament         |no | }}
 +
{{Parm|crew        |Crew              |no | }}
 
}}
 
}}
−
NOTE:  Omitted paramaters will still display as blank fields.
+
NOTE:  Omitted paramaters will not be displayed.
   −
Usage: <nowiki>{{Ship|name=|disp=|length=|beam=|draft=|speed=|test=|armament=|crew=}}</nowiki>
+
===Sample Data Block===
 +
The following may be copied and pasted at the top of the page being edited.
 +
<pre>
 +
<nowiki>{{</nowiki>Ship  
 +
| name=  
 +
| image=
 +
| flag=
 +
| built=
 +
| launched=
 +
| retired=
 +
| type=
 +
| displ=
 +
| length=
 +
| beam=
 +
| draft=
 +
| speed=
 +
| test=
 +
| armament=
 +
| crew=
 +
|}
 +
<nowiki>}}</nowiki></pre>
 
</noinclude>
 
</noinclude>
nsTeam1RO, nsTeam1RW, nsTeam1_talkRO, nsTeam1_talkRW
6,302

edits

Navigation menu