Difference between revisions of "Template:Parts/doc"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (added note about hyperlinks of category names)
m (fix collapse name)
 
Line 8: Line 8:
  
 
'''NOTE:''' For proper hyperlinks to the headings of the work, it is necessary that on ''[[Parts]] pages'' the headings are enclosed in '''{{code|<nowiki><span id="category_name"></nowiki>}}''' tags with unambiguous untranslatable category names:
 
'''NOTE:''' For proper hyperlinks to the headings of the work, it is necessary that on ''[[Parts]] pages'' the headings are enclosed in '''{{code|<nowiki><span id="category_name"></nowiki>}}''' tags with unambiguous untranslatable category names:
'''<code>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</code>'''.
+
<code>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</code>.
  
 
Articles including the template will be added to [[:Category:Default parts]].
 
Articles including the template will be added to [[:Category:Default parts]].
Line 14: Line 14:
 
=== Collapsible options ===
 
=== Collapsible options ===
 
{{Collapsible sections option
 
{{Collapsible sections option
| list = {{hlist| command modules | fuel tanks | engines | control | structural | coupling | payload | aerodynamic | ground | thermal | electrical | communication | science | cargo | utility | legacy parts }}
+
| list = {{hlist| command modules | fuel tanks | engines | command and control | structural | coupling | payload | aerodynamic | ground | thermal | electrical | communication | science | cargo | utility | legacy parts }}
 
| example =  command modules
 
| example =  command modules
 
| default =  <!--(optional)-->
 
| default =  <!--(optional)-->

Latest revision as of 16:12, 5 July 2024

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/doc |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