Template:Vessel: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
m (Added stricken and fate fields if vessel is destroyed/sunk/decomissioned)
mNo edit summary
 
(9 intermediate revisions by 2 users not shown)
Line 2: Line 2:
   
 
<includeonly>{{Infobox/begin}}
 
<includeonly>{{Infobox/begin}}
{{Infobox/Header|title={{{name}}}|subtitle={{{class}}}}}
+
{{Infobox/Header|title={{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}|subtitle={{#if:{{{class|}}}|{{{class|}}}|}}}}
{{Infobox/Illustration|file=[[File:{{{photo}}}]]|caption={{{photo_desc}}}}}
+
{{Infobox/Illustration|file={{#if:{{{photo|}}}|[[File:{{{photo}}}]]|}}|caption={{{photo_desc|}}}}}
{{Infobox/SectionHeader|section={{{operator}}}}}
+
{{Infobox/SectionHeader|section=Operation History}}
{{Infobox/Item|key=Namesake|value={{{namesake}}}}}
+
{{Infobox/Item|key=Builder|value={{{builder|}}}}}
{{Infobox/Item|key=Builder|value={{{builder}}}}}
+
{{Infobox/Item|key=Laid Down|value={{{laid_date|}}}}}
{{Infobox/Bar}}
+
{{Infobox/Item|key=Launched|value={{{launch_date|}}}}}
{{Infobox/Item|key=Laid Down|value={{{laid_date}}}}}
+
{{Infobox/Item|key=Commissioned|value={{{com_date|}}}}}
{{Infobox/Item|key=Launched|value={{{launch_date}}}}}
+
{{Infobox/Item|key=Decommissioned|value={{{decom_date|}}}}}
{{Infobox/Item|key=Commissioned|value={{{com_date}}}}}
+
{{Infobox/Item|key=Stricken|value={{{stricken_date|}}}}}
  +
{{#if:{{{homeport|}}}{{{status|}}}{{{fate|}}}{{{badge|}}}|{{Infobox/Bar}}|}}
{{Infobox/Item|key=Decommissioned|value={{{decom_date}}}}}
 
{{Infobox/Item|key=Stricken|value={{{stricken_date}}}}}
+
{{Infobox/Item|key=Homeport|value={{{homeport|}}}}}
{{Infobox/Item|key=Reinstated|value={{{reinstatement_date}}}}}
+
{{Infobox/Item|key=Status|value={{#if:{{{status|}}}|{{#if:{{{year|}}}|{{{status}}} as of {{{year}}}|{{{status}}}}}|}}}}
{{Infobox/Bar}}
+
{{Infobox/Item|key=Fate|value={{{fate|}}}}}
{{Infobox/Item|key=Homeport|value={{{homeport}}}}}
+
{{Infobox/Item|key=Badge|value={{#if:{{{badge|}}}|[[Image:{{{badge}}}|left|130px]]|}}}}
{{Infobox/Item|key=Status|value={{{status}}} as of {{{year}}}}}
 
{{Infobox/Item|key=Fate|value={{{fate}}}}}
 
{{Infobox/Item|key=Badge|value=[[Image:{{{badge}}}|left|130px]]}}
 
 
{{Infobox/end}}</includeonly>
 
{{Infobox/end}}</includeonly>
 
 
Line 24: Line 21:
 
<noinclude>
 
<noinclude>
 
{{Vessel
 
{{Vessel
| name=[name]
+
| name=[vessel class name]
 
| class=[vessel class and type]
 
| class=[vessel class and type]
 
| photo=KP_dark.png|photo_desc=[photo_desc]
 
| photo=KP_dark.png|photo_desc=[photo_desc]
 
| namesake=[namesake]
 
| namesake=[namesake]
 
| builder=[origin shipyard]
 
| builder=[origin shipyard]
| operator=[operating nation]
 
 
| laid_date=[date]|launch_date=[date]|com_date=[date]
 
| laid_date=[date]|launch_date=[date]|com_date=[date]
  +
{{Vessel/Operator
  +
| operator_flag=KP dark.png
 
| operator=[operating nation]
  +
| name=[name]
  +
| namesake=[namesake]
  +
| aquisition_date = [date aquired]
  +
}}
  +
{{Vessel/Operator
  +
| operator_flag=KP dark.png
  +
| operator=[operating nation]
  +
| name=[name]
  +
| namesake=[namesake]
  +
| aquisition_date = [date aquired]
  +
}}
 
| decom_date=[date]
 
| decom_date=[date]
| stricken_date = [date destroyed/sunk]
+
| stricken_date=[date]
| reinstatement_date=[date]
 
 
| homeport=[home port]
 
| homeport=[home port]
 
| status=[current status]|year=[year]
 
| status=[current status]|year=[year]
| fate=[fate if destroyed/sunk/scrapped after decomissioning]
+
| fate=[circumstances if destroyed/sunk/scrapped after decomissioning]
 
| badge=KP_dark.png
 
| badge=KP_dark.png
 
}}
 
}}
  +
  +
{{Vessel}}
   
 
[[Category:Infoboxes]]
 
[[Category:Infoboxes]]
Line 62: Line 73:
 
"homeport": {},
 
"homeport": {},
 
"status": {},
 
"status": {},
"year": {},
 
 
"fate": {},
 
"fate": {},
 
"badge": {}
 
"badge": {}

Latest revision as of 22:04, 10 November 2022


​ ​
[vessel class name]
[vessel class and type]
KP dark.png
[photo_desc]
Operation History
Builder [origin shipyard]
Laid Down [date]
Launched [date]
Commissioned [date]
KP dark.png [operating nation]
Name [name]
Namesake [namesake]
Aquired [date aquired]
KP dark.png [operating nation]
Name [name]
Namesake [namesake]
Aquired [date aquired]
Decommissioned [date]
Stricken [date]

Homeport [home port]
Status [current status] as of [year]
Fate [circumstances if destroyed/sunk/scrapped after decomissioning]
Badge
KP dark.png


Vessel

Operation History


No description.

Template parameters

ParameterDescriptionTypeStatus
namename

no description

Unknownoptional
classclass

no description

Unknownoptional
photophoto

no description

Unknownoptional
photo_descphoto_desc

no description

Unknownoptional
operatoroperator

no description

Unknownoptional
namesakenamesake

no description

Unknownoptional
builderbuilder

no description

Unknownoptional
laid_datelaid_date

no description

Unknownoptional
launch_datelaunch_date

no description

Unknownoptional
com_datecom_date

no description

Unknownoptional
decom_datedecom_date

no description

Unknownoptional
stricken_datestricken_date

no description

Unknownoptional
reinstatement_datereinstatement_date

no description

Unknownoptional
homeporthomeport

no description

Unknownoptional
statusstatus

no description

Unknownoptional
fatefate

no description

Unknownoptional
badgebadge

no description

Unknownoptional