Template:Vessel: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
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=Operation History}}
 
{{Infobox/SectionHeader|section=Operation History}}
{{Infobox/Item|key=Builder|value={{{builder}}}}}
+
{{Infobox/Item|key=Builder|value={{{builder|}}}}}
{{Infobox/Item|key=Laid Down|value={{{laid_date}}}}}
+
{{Infobox/Item|key=Laid Down|value={{{laid_date|}}}}}
{{Infobox/Item|key=Launched|value={{{launch_date}}}}}
+
{{Infobox/Item|key=Launched|value={{{launch_date|}}}}}
{{Infobox/Item|key=Commissioned|value={{{com_date}}}}}
+
{{Infobox/Item|key=Commissioned|value={{{com_date|}}}}}
{{Infobox/Item|key=Decommissioned|value={{{decom_date}}}}}
+
{{Infobox/Item|key=Decommissioned|value={{{decom_date|}}}}}
 
{{Infobox/Bar}}
 
{{Infobox/Bar}}
{{Infobox/Item|key=Homeport|value={{{homeport}}}}}
+
{{Infobox/Item|key=Homeport|value={{{homeport|}}}}}
{{Infobox/Item|key=Status|value={{{status}}}}}
+
{{Infobox/Item|key=Status|value={{#if:{{{status|}}}|{{{status}}}{{#if:{{{year|}}}| as of {{{year}}} |}}|}}}}
{{Infobox/Item|key=Fate|value={{{fate}}}}}
+
{{Infobox/Item|key=Fate|value={{{fate|}}}}}
{{Infobox/Item|key=Badge|value=[[Image:{{{badge}}}|left|130px]]}}
+
{{Infobox/Item|key=Badge|value={{#if:{{{badge|}}}|[[Image:{{{badge}}}|left|130px]]|}}}}
 
{{Infobox/end}}</includeonly>
 
{{Infobox/end}}</includeonly>
 
 
Line 20: Line 20:
 
<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]
Line 42: Line 42:
 
| decom_date=[date]
 
| decom_date=[date]
 
| homeport=[home port]
 
| homeport=[home port]
| status=[current status]
+
| status=[current status]|year=[year]
 
| fate=[circumstances if destroyed/sunk/scrapped after decomissioning]
 
| fate=[circumstances if destroyed/sunk/scrapped after decomissioning]
 
| badge=KP_dark.png
 
| badge=KP_dark.png

Revision as of 18:40, 26 October 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]

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


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