Template:Vessel: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(7 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=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/Item|key=Stricken|value={{{stricken_date|}}}}}
  +
{{#if:{{{homeport|}}}{{{status|}}}{{{fate|}}}{{{badge|}}}|{{Infobox/Bar}}|}}
{{Infobox/Item|key=Homeport|value={{{homeport}}}}}
 
{{Infobox/Item|key=Status|value={{{status}}} as of {{{year}}}}}
+
{{Infobox/Item|key=Homeport|value={{{homeport|}}}}}
{{Infobox/Item|key=Fate|value={{{fate}}}}}
+
{{Infobox/Item|key=Status|value={{#if:{{{status|}}}|{{#if:{{{year|}}}|{{{status}}} as of {{{year}}}|{{{status}}}}}|}}}}
{{Infobox/Item|key=Badge|value=[[Image:{{{badge}}}|left|130px]]}}
+
{{Infobox/Item|key=Fate|value={{{fate|}}}}}
  +
{{Infobox/Item|key=Badge|value={{#if:{{{badge|}}}|[[Image:{{{badge}}}|left|130px]]|}}}}
 
{{Infobox/end}}</includeonly>
 
{{Infobox/end}}</includeonly>
 
 
Line 20: 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]
Line 41: Line 42:
 
}}
 
}}
 
| decom_date=[date]
 
| decom_date=[date]
  +
| stricken_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 69: Line 73:
 
"homeport": {},
 
"homeport": {},
 
"status": {},
 
"status": {},
"year": {
 
"label": "Status Year",
 
"description": "What time the info is accurate to",
 
"autovalue": "2115",
 
"suggested": true
 
},
 
 
"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