Difference between revisions of "Template:Parts"
m (add link to page "cargo item") |
m (fix bad collapse name) |
||
Line 46: | Line 46: | ||
| 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|}}}}}}| | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|fuel tanks|uncollapsed|{{{state2|collapsed}}}}} |
| title = [[Parts{{if lang}}#Fuel tanks|{{Dict/part category|Fuel tanks}}]] | | title = [[Parts{{if lang}}#Fuel tanks|{{Dict/part category|Fuel tanks}}]] | ||
| groupclass = wrap | | groupclass = wrap | ||
Line 125: | Line 125: | ||
| 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|}}}}}}| | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|engines|uncollapsed|{{{state3|collapsed}}}}} |
| title = [[Parts{{if lang}}#Engines|{{Dict/part category|Engines}}]] | | title = [[Parts{{if lang}}#Engines|{{Dict/part category|Engines}}]] | ||
| groupclass = wrap | | groupclass = wrap | ||
Line 289: | Line 289: | ||
| 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|}}}}}}| | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|payload|uncollapsed|{{{state7|collapsed}}}}} |
| title = [[Parts{{if lang}}#Payload|{{Dict/part category|Payload}}]] | | title = [[Parts{{if lang}}#Payload|{{Dict/part category|Payload}}]] | ||
| groupclass = wrap | | groupclass = wrap | ||
Line 397: | Line 397: | ||
| 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|}}}}}}| | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|ground|uncollapsed|{{{state9|collapsed}}}}} |
| title = [[Parts{{if lang}}#Ground|{{Dict/part category|Ground}}]] | | title = [[Parts{{if lang}}#Ground|{{Dict/part category|Ground}}]] | ||
| groupclass = wrap | | groupclass = wrap | ||
Line 426: | Line 426: | ||
| 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|}}}}}}| | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|thermal|uncollapsed|{{{state10|collapsed}}}}} |
| title = [[Parts{{if lang}}#Thermal|{{Dict/part category|Thermal}}]] | | title = [[Parts{{if lang}}#Thermal|{{Dict/part category|Thermal}}]] | ||
| groupclass = wrap | | groupclass = wrap | ||
Line 450: | Line 450: | ||
| 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|}}}}}}| | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|electrical|uncollapsed|{{{state11|collapsed}}}}} |
| title = [[Parts{{if lang}}#Electrical|{{Dict/part category|Electrical}}]] | | title = [[Parts{{if lang}}#Electrical|{{Dict/part category|Electrical}}]] | ||
| groupclass = wrap | | groupclass = wrap | ||
Line 485: | Line 485: | ||
| 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|}}}}}}| | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|communication|uncollapsed|{{{state12|collapsed}}}}} |
| title = [[Parts{{if lang}}#Communication|{{Dict/part category|Communication}}]] | | title = [[Parts{{if lang}}#Communication|{{Dict/part category|Communication}}]] | ||
| groupclass = wrap | | groupclass = wrap | ||
Line 543: | Line 543: | ||
| 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|}}}}}}| | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|cargo|uncollapsed|{{{state14|collapsed}}}}} |
| title = [[Parts{{if lang}}#Cargo|{{Dict/part category|Cargo}}]] | | title = [[Parts{{if lang}}#Cargo|{{Dict/part category|Cargo}}]] | ||
| groupclass = wrap | | groupclass = wrap | ||
Line 635: | Line 635: | ||
| list16 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}} | | list16 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}} | ||
− | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|legacy|uncollapsed|{{{state16|collapsed}}}}} | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|legacy parts|uncollapsed|{{{state16|collapsed}}}}} |
| title = [[Legacy parts{{if lang}}|{{Dict/part category|Legacy parts}}]] | | title = [[Legacy parts{{if lang}}|{{Dict/part category|Legacy parts}}]] | ||
| groupclass = wrap | | groupclass = wrap |
Revision as of 15:22, 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
- 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
|
The above documentation is transcluded from Template:Parts/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |