Military Wiki
(Infobox updated using the portable infobox migration tool)
(Undo revision 2815534 by TehBroom (talk)This one seems to have broken a lot so I am going to revert it for now)
Tag: sourceedit
Line 1: Line 1:
  +
{{Infobox
<infobox>
 
  +
| child = {{lc:{{{embed}}}}}
<data source="embed"><label>embed</label></data>
 
<data source="width_style"><label>width_style</label></data>
 
<data source="honorific prefix"><label>honorific prefix</label><default>{{{honorific_prefix|}}</default></data>
 
<title source="name"><default>{{PAGENAME}}</default></title>
 
<data source="honorific suffix"><label>honorific suffix</label><default>{{{honorific_suffix|}}</default></data>
 
<data source="Ship image"><label>Ship image</label></data>
 
<data source="Ship caption"><label>Ship caption</label></data>
 
<data source="Ship country"><label>Ship country</label></data>
 
<data source="Ship class"><label>Class and type</label></data>
 
<data source="Ship name"><label>Name</label></data>
 
<data source="Ship namesake"><label>Namesake</label></data>
 
<data source="Ship owner"><label>Owner</label></data>
 
<data source="Ship operator"><label>Operator</label></data>
 
<data source="Ship registry"><label>Port of registry</label></data>
 
<data source="Ship route"><label>Route</label></data>
 
<data source="Ship ordered"><label>Ordered</label></data>
 
<data source="Ship awarded"><label>Awarded</label></data>
 
<data source="Ship builder"><label>Builder</label></data>
 
<data source="Ship original cost"><label>Cost</label></data>
 
<data source="Ship yard number"><label>Yard number</label></data>
 
<data source="Ship way number"><label>Way number</label></data>
 
<data source="Ship laid down"><label>Laid down</label></data>
 
<data source="Ship launched"><label>Launched</label></data>
 
<data source="Ship sponsor"><label>Sponsored</label></data>
 
<data source="Ship christened"><label>Christened</label></data>
 
<data source="Ship completed"><label>Completed</label></data>
 
<data source="Ship acquired"><label>Acquired</label></data>
 
<data source="Ship commissioned"><label>Commissioned</label></data>
 
<data source="Ship recommissioned"><label>Recommissioned</label></data>
 
<data source="Ship decommissioned"><label>Decommissioned</label></data>
 
<data source="Ship maiden voyage"><label>Maiden voyage</label></data>
 
<data source="Ship in service"><label>Ship in service</label></data>
 
<data source="Ship out of service"><label>Out of service</label></data>
 
<data source="Ship renamed"><label>Renamed</label></data>
 
<data source="Ship reclassified"><label>Reclassified</label></data>
 
<data source="Ship refit"><label>Refit</label></data>
 
<data source="Ship struck"><label>Struck</label></data>
 
<data source="Ship reinstated"><label>Reinstated</label></data>
 
<data source="Ship homeport"><label>Homeport</label></data>
 
<data source="Ship identification"><label>Identification</label></data>
 
<data source="Ship motto"><label>Motto</label></data>
 
<data source="Ship nickname"><label>Nickname</label></data>
 
<data source="Ship honours"><label>Honours and<br/> awards</label></data>
 
<data source="Ship captured"><label>Captured</label></data>
 
<data source="Ship fate"><label>Fate</label></data>
 
<data source="Ship status"><label>Status</label></data>
 
<data source="Ship notes"><label>Notes</label></data>
 
<data source="module"><label>module</label></data>
 
<data source="module2"><label>module2</label></data>
 
<data source="module3"><label>module3</label></data>
 
<data source="module4"><label>module4</label></data>
 
<data source="module5"><label>module5</label></data>
 
</infobox>
 
<noinclude>
 
== Usage & preview ==
 
Type in this:
 
   
  +
| bodyclass = vcard
<pre>
 
  +
| bodystyle = {{Military history infobox style|{{#switch:{{{width_style|}}}|narrow|person|auto=main_box_raw_auto_width|wide|military|#default=main_box_raw}}}}
{{Infobox ship
 
|embed=
 
|width_style=
 
|honorific prefix=
 
|name=
 
|honorific suffix=
 
|Ship image=
 
|Ship caption=
 
|Ship country=
 
|Ship class=
 
|Ship name=
 
|Ship namesake=
 
|Ship owner=
 
|Ship operator=
 
|Ship registry=
 
|Ship route=
 
|Ship ordered=
 
|Ship awarded=
 
|Ship builder=
 
|Ship original cost=
 
|Ship yard number=
 
|Ship way number=
 
|Ship laid down=
 
|Ship launched=
 
|Ship sponsor=
 
|Ship christened=
 
|Ship completed=
 
|Ship acquired=
 
|Ship commissioned=
 
|Ship recommissioned=
 
|Ship decommissioned=
 
|Ship maiden voyage=
 
|Ship in service=
 
|Ship out of service=
 
|Ship renamed=
 
|Ship reclassified=
 
|Ship refit=
 
|Ship struck=
 
|Ship reinstated=
 
|Ship homeport=
 
|Ship identification=
 
|Ship motto=
 
|Ship nickname=
 
|Ship honours=
 
|Ship captured=
 
|Ship fate=
 
|Ship status=
 
|Ship notes=
 
|module=
 
|module2=
 
|module3=
 
|module4=
 
|module5=
 
}}
 
   
  +
| title = {{#ifeq:{{lc:{{{embed}}}}}|yes|'''Ship career'''}}
</pre>
 
  +
| decat = yes <!-- remove from template:infobox tracking categories -->
   
  +
| abovestyle = {{Military history infobox style|header_color}} font-size: 100%
to see this:
 
   
  +
| above = {{#ifeq:{{lc:{{{embed}}}}}|yes||{{#if:{{{honorific prefix|{{{honorific_prefix|}}}}}}|<span class="honorific prefix">{{{honorific prefix|{{{honorific_prefix|}}}}}}</span><br />}}<includeonly><span class="fn">{{{name|{{PAGENAME}}}}}</span></includeonly>{{#if:{{{honorific suffix|{{{honorific_suffix|}}}}}}|<br /><span class="honorific suffix">{{{honorific suffix|{{{honorific_suffix|}}}}}}</span>}}}}
{{Infobox ship
 
|embed=This is a test
 
|width_style=This is a test
 
|honorific prefix=This is a test
 
|name=This is a test
 
|honorific suffix=This is a test
 
|Ship image=This is a test
 
|Ship caption=This is a test
 
|Ship country=This is a test
 
|Ship class=This is a test
 
|Ship name=This is a test
 
|Ship namesake=This is a test
 
|Ship owner=This is a test
 
|Ship operator=This is a test
 
|Ship registry=This is a test
 
|Ship route=This is a test
 
|Ship ordered=This is a test
 
|Ship awarded=This is a test
 
|Ship builder=This is a test
 
|Ship original cost=This is a test
 
|Ship yard number=This is a test
 
|Ship way number=This is a test
 
|Ship laid down=This is a test
 
|Ship launched=This is a test
 
|Ship sponsor=This is a test
 
|Ship christened=This is a test
 
|Ship completed=This is a test
 
|Ship acquired=This is a test
 
|Ship commissioned=This is a test
 
|Ship recommissioned=This is a test
 
|Ship decommissioned=This is a test
 
|Ship maiden voyage=This is a test
 
|Ship in service=This is a test
 
|Ship out of service=This is a test
 
|Ship renamed=This is a test
 
|Ship reclassified=This is a test
 
|Ship refit=This is a test
 
|Ship struck=This is a test
 
|Ship reinstated=This is a test
 
|Ship homeport=This is a test
 
|Ship identification=This is a test
 
|Ship motto=This is a test
 
|Ship nickname=This is a test
 
|Ship honours=This is a test
 
|Ship captured=This is a test
 
|Ship fate=This is a test
 
|Ship status=This is a test
 
|Ship notes=This is a test
 
|module=This is a test
 
|module2=This is a test
 
|module3=This is a test
 
|module4=This is a test
 
|module5=This is a test
 
}}
 
   
  +
| imagestyle = {{Military history infobox style|image_box_raw}}
   
  +
| image = {{{Ship image|}}}
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
 
  +
| caption = {{{Ship caption|}}}
</noinclude>
 
  +
  +
| labelstyle = padding-right: 1em
  +
  +
| label1 = Ship country
  +
| data1 = {{{Ship country|}}}
  +
  +
| label2 = Class and type
  +
| data2 = {{{Ship class|}}}
  +
  +
| label3 = Name
  +
| data3 = {{{Ship name|}}}
  +
| class3 = nickname
  +
  +
| label4 = Namesake
  +
| data4 = {{{Ship namesake|}}}
  +
  +
| label5 = Owner
  +
| data5 = {{{Ship owner|}}}
  +
  +
| label6 = Operator
  +
| data6 = {{{Ship operator|}}}
  +
  +
| label7 = Port of registry
  +
| data7 = {{{Ship registry|}}}
  +
  +
| label8 = Route
  +
| data8 = {{{Ship route|}}}
  +
  +
| label9 = Ordered
  +
| data9 = {{{Ship ordered|}}}
  +
  +
| label10 = Awarded
  +
| data10 = {{{Ship awarded|}}}
  +
  +
| label11 = Builder
  +
| data11 = {{{Ship builder|}}}
  +
  +
| label12 = Cost
  +
| data12 = {{{Ship original cost|}}}
  +
  +
| label13 = Yard number
  +
| data13 = {{{Ship yard number|}}}
  +
  +
| label14 = Way number
  +
| data14 = {{{Ship way number|}}}
  +
  +
| label15 = Laid down
  +
| data15 = {{{Ship laid down|}}}
  +
  +
| label16 = Launched
  +
| data16 = {{{Ship launched|}}}
  +
  +
| label17 = Sponsored
  +
| data17 = {{{Ship sponsor|}}}
  +
  +
| label18 = Christened
  +
| data18 = {{{Ship christened|}}}
  +
  +
| label19 = Completed
  +
| data19 = {{{Ship completed|}}}
  +
  +
| label20 = Acquired
  +
| data20 = {{{Ship acquired|}}}
  +
  +
| label21 = Commissioned
  +
| data21 = {{{Ship commissioned|}}}
  +
  +
| label22 = Recommissioned
  +
| data22 = {{{Ship recommissioned|}}}
  +
  +
| label23 = Decommissioned
  +
| data23 = {{{Ship decommissioned|}}}
  +
  +
| label24 = Maiden voyage
  +
| data24 = {{{Ship maiden voyage|}}}
  +
  +
| label25 = In service
  +
| data25 = {{{Ship in service|}}}
  +
  +
| label25 = Out of service
  +
| data25 = {{{Ship out of service|}}}
  +
  +
| label26 = Renamed
  +
| data26 = {{{Ship renamed|}}}
  +
  +
| label27 = Reclassified
  +
| data27 = {{{Ship reclassified|}}}
  +
  +
| label28 = Refit
  +
| data28 = {{{Ship refit|}}}
  +
  +
| label29 = Struck
  +
| data29 = {{{Ship struck|}}}
  +
  +
| label30 = Reinstated
  +
| data30 = {{{Ship reinstated|}}}
  +
  +
| label31 = Homeport
  +
| data31 = {{{Ship homeport|}}}
  +
  +
| label32 = Identification
  +
| data32 = {{{Ship identification|}}}
  +
  +
| label33 = Motto
  +
| data33 = {{{Ship motto|}}}
  +
  +
| label34 = Nickname
  +
| data34 = {{{Ship nickname|}}}
  +
  +
| label35 = Honours and<br/> awards
  +
| data35 = {{{Ship honours|}}}
  +
  +
| label36 = Captured
  +
| data36 = {{{Ship captured|}}}
  +
  +
| label37 = Fate
  +
| data37 = {{{Ship fate|}}}
  +
  +
| label38 = Status
  +
| data38 = {{{Ship status|}}}
  +
  +
| label39 = Notes
  +
| data39 = {{{Ship notes|}}}
  +
  +
| data41 = {{{module|}}}
  +
  +
| data42 = {{{module2|}}}
  +
  +
| data43 = {{{module3|}}}
  +
  +
| data44 = {{{module4|}}}
  +
  +
| data45 = {{{module5|}}}
  +
}}

Revision as of 22:48, 25 April 2017