Difference between revisions of "Template:Parts"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (renamed)
(updated from parts#category to parts/category; I might've broken language support...)
Line 20: Line 20:
 
| list1 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
| list1 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|command modules|uncollapsed|{{{state1|collapsed}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|command modules|uncollapsed|{{{state1|collapsed}}}}}
  | title = [[Command module{{if lang}}|{{lang
+
  | title = [[Parts{{if lang}}/{{lang
 +
  |en=Pods
 +
  |de=Kommandomodule
 +
  |es=Módulos de comando
 +
  |fr=Modules de Commande
 +
  |hr=Zapovjedni moduli
 +
  |it=Moduli di Comando
 +
  |ja=操縦装置
 +
  |nl=Commando modules
 +
  |pl=Moduły dowodzenia
 +
  |ru=Командные отсеки
 +
  |zh-cn=座舱
 +
}}|{{lang
 
   |en=Command modules
 
   |en=Command modules
 
   |de=Kommandomodule
 
   |de=Kommandomodule
Line 107: Line 119:
 
| list2 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
| list2 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|propulsion|uncollapsed|{{{state2|collapsed}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|propulsion|uncollapsed|{{{state2|collapsed}}}}}
  | title = [[Parts{{if lang}}#{{lang
+
  | title = [[Parts{{if lang}}/{{lang
 
   |en=Fuel Tanks
 
   |en=Fuel Tanks
 
   |de=Treibstofftanks
 
   |de=Treibstofftanks
Line 287: Line 299:
 
| list3 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
| list3 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|propulsion|uncollapsed|{{{state3|collapsed}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|propulsion|uncollapsed|{{{state3|collapsed}}}}}
  | title = [[Parts{{if lang}}#{{lang
+
  | title = [[Parts{{if lang}}/{{lang
 
   |en=Engines
 
   |en=Engines
 
   |de=Antriebe
 
   |de=Antriebe
Line 432: Line 444:
 
| list4 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
| list4 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|control|uncollapsed|{{{state4|collapsed}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|control|uncollapsed|{{{state4|collapsed}}}}}
  | title = [[Parts{{if lang}}#{{lang
+
  | title = [[Parts{{if lang}}/{{lang
   |en=Control
+
   |en=Command & Control
 
   |de=Steuerung
 
   |de=Steuerung
 
   |fr=Contrôle
 
   |fr=Contrôle
Line 516: Line 528:
 
| list5 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
| list5 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|structural|uncollapsed|{{{state5|collapsed}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|structural|uncollapsed|{{{state5|collapsed}}}}}
  | title = [[Parts{{if lang}}#{{lang
+
  | title = [[Parts{{if lang}}/{{lang
 
   |en=Structural
 
   |en=Structural
 
   |de=Strukturell
 
   |de=Strukturell
Line 621: Line 633:
 
| list6 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
| list6 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|coupling|uncollapsed|{{{state6|collapsed}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|coupling|uncollapsed|{{{state6|collapsed}}}}}
  | title = [[Parts{{if lang}}#{{lang
+
  | title = [[Parts{{if lang}}/{{lang
 
   |en=Coupling
 
   |en=Coupling
 
   |de=Kopplung
 
   |de=Kopplung
Line 719: Line 731:
 
| list7 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
| list7 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|structural|uncollapsed|{{{state7|collapsed}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|structural|uncollapsed|{{{state7|collapsed}}}}}
  | title = [[Parts{{if lang}}#{{lang
+
  | title = [[Parts{{if lang}}/{{lang
 
   |en=Payload
 
   |en=Payload
 
   |de=Nutzlast
 
   |de=Nutzlast
Line 791: Line 803:
 
| list8 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
| list8 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|aerodynamic|uncollapsed|{{{state8|collapsed}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|aerodynamic|uncollapsed|{{{state8|collapsed}}}}}
  | title = [[Parts{{if lang}}#{{lang
+
  | title = [[Parts{{if lang}}/{{lang
 
   |en=Aerodynamic
 
   |en=Aerodynamic
 
   |de=Aerodynamik
 
   |de=Aerodynamik
Line 935: Line 947:
 
| list9 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
| list9 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|structural|uncollapsed|{{{state9|collapsed}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|structural|uncollapsed|{{{state9|collapsed}}}}}
  | title = [[Parts{{if lang}}#{{lang
+
  | title = [[Parts{{if lang}}/{{lang
 
   |en=Ground
 
   |en=Ground
 
   |de=Boden
 
   |de=Boden
Line 1,003: Line 1,015:
 
| list10 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
| list10 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|structural|uncollapsed|{{{state10|collapsed}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|structural|uncollapsed|{{{state10|collapsed}}}}}
  | title = [[Parts{{if lang}}#{{lang
+
  | title = [[Parts{{if lang}}/{{lang
 
   |en=Thermal
 
   |en=Thermal
 
   |de=Thermik
 
   |de=Thermik
Line 1,063: Line 1,075:
 
| list11 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
| list11 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|structural|uncollapsed|{{{state11|collapsed}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|structural|uncollapsed|{{{state11|collapsed}}}}}
  | title = [[Parts{{if lang}}#{{lang
+
  | title = [[Parts{{if lang}}/{{lang
 
   |en=Electrical
 
   |en=Electrical
 
   |de=Elektrische
 
   |de=Elektrische
Line 1,136: Line 1,148:
 
| list12 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
| list12 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|structural|uncollapsed|{{{state12|collapsed}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|structural|uncollapsed|{{{state12|collapsed}}}}}
  | title = [[Parts{{if lang}}#{{lang
+
  | title = [[Parts{{if lang}}/{{lang
 
   |en=Communication
 
   |en=Communication
 
   |de=Kommunikation
 
   |de=Kommunikation
Line 1,183: Line 1,195:
 
| list13 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
| list13 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|science|uncollapsed|{{{state13|collapsed}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|science|uncollapsed|{{{state13|collapsed}}}}}
  | title = [[Parts{{if lang}}#{{lang
+
  | title = [[Parts{{if lang}}/{{lang
   |en=Science
+
   |en=Scientific
 
   |de=Wissenschaft
 
   |de=Wissenschaft
 
   |es=Ciencia
 
   |es=Ciencia
Line 1,289: Line 1,301:
 
| list14 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
| list14 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|utility|uncollapsed|{{{state14|collapsed}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|utility|uncollapsed|{{{state14|collapsed}}}}}
  | title = [[Parts{{if lang}}#{{lang
+
  | title = [[Parts{{if lang}}/{{lang
 
   |en=Cargo
 
   |en=Cargo
 
   |zh-cn=货物
 
   |zh-cn=货物
Line 1,346: Line 1,358:
 
| list15 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
| list15 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|utility|uncollapsed|{{{state15|collapsed}}}}}
 
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|utility|uncollapsed|{{{state15|collapsed}}}}}
  | title = [[Parts{{if lang}}#{{lang
+
  | title = [[Parts{{if lang}}/{{lang
 
   |en=Utility
 
   |en=Utility
 
   |de=Hilfsmittel
 
   |de=Hilfsmittel

Revision as of 20:18, 30 August 2021

Documentation icon Template documentation[view] [edit] [history] [purge]Pages that link to Template:Parts

Usage

Add {{Parts}} at the bottom of an article that is related to a part of the stock game.

Purpose

The purpose of the {{Parts}} template is to provide a structure to ease navigation between the many default parts available in KSP. Feel free to restructure it to add further clarity.

NOTE: For proper hyperlinks to the headings of the work, it is necessary that on Parts pages the headings are enclosed in <span id="category_name"> tags with unambiguous untranslatable category names: Aerodynamic, Cargo, Command and control, Communication, Coupling, Electrical, Engines, Fuel tanks, Ground, Jet fuselages, Liquid fuel tanks, Monopropellant fuel tanks, Payload, Pods, Science, Structural, Thermal, Utility.

Articles including the template will be added to Category:Default parts.

Collapsible options

How to manage this template's collapsible groups/sections option
  • This template includes collapsible groups/sections. When it first appears, one of these groups/sections may be set to be visible ("expanded") while the others remain hidden ("collapsed") apart from their titlebars. To achieve this, include the parameter |name where name is one of the following names identifying the groups/sections (omit any speech or quote marks):
    • command modules
    • fuel tanks
    • engines
    • command and control
    • structural
    • coupling
    • payload
    • aerodynamic
    • ground
    • thermal
    • electrical
    • communication
    • science
    • cargo
    • utility
    • legacy parts
  • For example: {{Parts |command modules}}

How to manage this template's initial visibility
To manage this template's visibility when it first appears, add the parameter:

|state=collapsed to show the template in its collapsed state, i.e. hidden apart from its titlebar – e.g. {{Parts |state=collapsed}}
|state=expanded to show the template in its expanded state, i.e. fully visible – e.g. {{Parts |state=expanded}}

Unless set otherwise (see the |state= parameter in the template's code), the template's default state is expanded.

Translation

The dictionary entries for this template are included in a separate template {{Dict/part category}}.

See also