Difference between revisions of "Template:Parts/sandbox"
(Workaround for missing CSS.) |
(Converted from {{Navbox with collapsible groups}} to {{Navbox}}, with workarounds for missing site CSS.) |
||
Line 1: | Line 1: | ||
− | {{Navbox | + | {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}} |
| name = Parts{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}} | | name = Parts{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}} | ||
| state = {{{state|}}} | | state = {{{state|}}} | ||
− | |||
| title = [[Parts{{if lang}}|{{lang | | title = [[Parts{{if lang}}|{{lang | ||
|en=Default parts | |en=Default parts | ||
Line 12: | Line 11: | ||
}}]] | }}]] | ||
| image = | | image = | ||
− | | selected = {{{selected|{{{1|}}}}}} | + | | selected = {{{selected|{{{1|}}}}}} <!-- For {{Navbox with collapsible groups}}, ignored by {{Navbox}} --> |
− | | bodystyle = {{Navbox style | + | | bodystyle = {{Navbox style|body}} |
− | | innerstyle = {{Navbox style | + | | innerstyle = {{Navbox style|inner}} |
− | | titlestyle = {{Navbox style | + | | titlestyle = {{Navbox style|title}} |
− | | abovestyle = {{Navbox style | + | | abovestyle = {{Navbox style|above}} |
− | | belowstyle = {{Navbox style | + | | belowstyle = {{Navbox style|below}} |
− | | groupstyle = {{Navbox style | + | | groupstyle = {{Navbox style|group}} text-align: center; |
− | | liststyle = {{Navbox style | + | | liststyle = {{Navbox style|list}} |
− | | evenstyle = {{Navbox style | + | | evenstyle = {{Navbox style|even}} |
− | | oddstyle = {{Navbox style | + | | oddstyle = {{Navbox style|odd}} |
− | | navbarstyle = {{Navbox style | + | | navbarstyle = {{Navbox style|navbar}} |
− | | navbarfontstyle = {{Navbox style | + | | navbarfontstyle = {{Navbox style|navbarfont}} |
− | | | + | | list1 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}} |
− | | | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|command modules|uncollapsed|{{{state1|collapsed}}}}} |
+ | | title = [[Command module{{if lang}}|{{lang | ||
|en=Command modules | |en=Command modules | ||
|hr=Zapovjedni moduli | |hr=Zapovjedni moduli | ||
Line 35: | Line 35: | ||
|fr=Modules de Commande | |fr=Modules de Commande | ||
}}]] | }}]] | ||
− | |||
| groupclass = wrap | | groupclass = wrap | ||
| listclass = hlist | | listclass = hlist | ||
− | | bodystyle = {{Navbox style | + | | bodystyle = {{Navbox style|child|body}} |
− | | titlestyle = {{Navbox style | + | | titlestyle = {{Navbox style|child|title}} |
− | | abovestyle = {{Navbox style | + | | abovestyle = {{Navbox style|child|above}} |
− | | belowstyle = {{Navbox style | + | | belowstyle = {{Navbox style|child|below}} |
− | | groupstyle = {{Navbox style | + | | groupstyle = {{Navbox style|child|group}} white-space: normal; |
− | | liststyle = {{Navbox style | + | | liststyle = {{Navbox style|child|list}} |
− | | evenstyle = {{Navbox style | + | | evenstyle = {{Navbox style|child|even}} |
− | | oddstyle = {{Navbox style | + | | oddstyle = {{Navbox style|child|odd}} |
| group1 = {{lang | | group1 = {{lang | ||
Line 100: | Line 99: | ||
}} | }} | ||
− | | | + | | list2 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}} |
− | | | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|propulsion|uncollapsed|{{{state2|collapsed}}}}} |
+ | | title = [[Parts{{if lang}}#{{lang | ||
|en=Fuel tanks|pl=Napędy | |en=Fuel tanks|pl=Napędy | ||
|hr=Pogon | |hr=Pogon | ||
Line 112: | Line 112: | ||
|ru=двигатели | |ru=двигатели | ||
}}]] | }}]] | ||
− | |||
| groupclass = wrap | | groupclass = wrap | ||
| listclass = hlist | | listclass = hlist | ||
− | | bodystyle = {{Navbox style | + | | bodystyle = {{Navbox style|child|body}} |
− | | titlestyle = {{Navbox style | + | | titlestyle = {{Navbox style|child|title}} |
− | | abovestyle = {{Navbox style | + | | abovestyle = {{Navbox style|child|above}} |
− | | belowstyle = {{Navbox style | + | | belowstyle = {{Navbox style|child|below}} |
− | | groupstyle = {{Navbox style | + | | groupstyle = {{Navbox style|child|group}} white-space: normal; |
− | | liststyle = {{Navbox style | + | | liststyle = {{Navbox style|child|list}} |
− | | evenstyle = {{Navbox style | + | | evenstyle = {{Navbox style|child|even}} |
− | | oddstyle = {{Navbox style | + | | oddstyle = {{Navbox style|child|odd}} |
| group1 = [[Liquid fuel tank{{if lang}}|{{lang | | group1 = [[Liquid fuel tank{{if lang}}|{{lang | ||
Line 228: | Line 227: | ||
}} | }} | ||
− | | | + | | list3 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}} |
− | | | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|propulsion|uncollapsed|{{{state3|collapsed}}}}} |
+ | | title = [[Parts{{if lang}}#{{lang | ||
|en=Engines | |en=Engines | ||
|pl=Napędy | |pl=Napędy | ||
Line 241: | Line 241: | ||
|ru=Двигатели | |ru=Двигатели | ||
}}]] | }}]] | ||
− | |||
| groupclass = wrap | | groupclass = wrap | ||
| listclass = hlist | | listclass = hlist | ||
− | | bodystyle = {{Navbox style | + | | bodystyle = {{Navbox style|child|body}} |
− | | titlestyle = {{Navbox style | + | | titlestyle = {{Navbox style|child|title}} |
− | | abovestyle = {{Navbox style | + | | abovestyle = {{Navbox style|child|above}} |
− | | belowstyle = {{Navbox style | + | | belowstyle = {{Navbox style|child|below}} |
− | | groupstyle = {{Navbox style | + | | groupstyle = {{Navbox style|child|group}} white-space: normal; |
− | | liststyle = {{Navbox style | + | | liststyle = {{Navbox style|child|list}} |
− | | evenstyle = {{Navbox style | + | | evenstyle = {{Navbox style|child|even}} |
− | | oddstyle = {{Navbox style | + | | oddstyle = {{Navbox style|child|odd}} |
| group1 = [[Jet engine{{if lang}}|{{lang | | group1 = [[Jet engine{{if lang}}|{{lang | ||
Line 330: | Line 329: | ||
}} | }} | ||
− | | | + | | list4 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}} |
− | | | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|control|uncollapsed|{{{state4|collapsed}}}}} |
+ | | title = [[Parts{{if lang}}#{{lang | ||
|en=Control | |en=Control | ||
|pl=Kontrola | |pl=Kontrola | ||
Line 345: | Line 345: | ||
|ru=Системы управления | |ru=Системы управления | ||
}}]] | }}]] | ||
− | |||
| groupclass = wrap | | groupclass = wrap | ||
| listclass = hlist | | listclass = hlist | ||
− | | bodystyle = {{Navbox style | + | | bodystyle = {{Navbox style|child|body}} |
− | | titlestyle = {{Navbox style | + | | titlestyle = {{Navbox style|child|title}} |
− | | abovestyle = {{Navbox style | + | | abovestyle = {{Navbox style|child|above}} |
− | | belowstyle = {{Navbox style | + | | belowstyle = {{Navbox style|child|below}} |
− | | groupstyle = {{Navbox style | + | | groupstyle = {{Navbox style|child|group}} white-space: normal; |
− | | liststyle = {{Navbox style | + | | liststyle = {{Navbox style|child|list}} |
− | | evenstyle = {{Navbox style | + | | evenstyle = {{Navbox style|child|even}} |
− | | oddstyle = {{Navbox style | + | | oddstyle = {{Navbox style|child|odd}} |
| group1 = {{lang | | group1 = {{lang | ||
Line 390: | Line 389: | ||
}} | }} | ||
− | | | + | | list5 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}} |
− | | | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|structural|uncollapsed|{{{state5|collapsed}}}}} |
+ | | title = [[Parts{{if lang}}#{{lang | ||
|en=Structural | |en=Structural | ||
|pl=Strukturalne | |pl=Strukturalne | ||
Line 403: | Line 403: | ||
|ru=Элементы конструкций | |ru=Элементы конструкций | ||
}}]] | }}]] | ||
− | |||
| groupclass = wrap | | groupclass = wrap | ||
| listclass = hlist | | listclass = hlist | ||
− | | bodystyle = {{Navbox style | + | | bodystyle = {{Navbox style|child|body}} |
− | | titlestyle = {{Navbox style | + | | titlestyle = {{Navbox style|child|title}} |
− | | abovestyle = {{Navbox style | + | | abovestyle = {{Navbox style|child|above}} |
− | | belowstyle = {{Navbox style | + | | belowstyle = {{Navbox style|child|below}} |
− | | groupstyle = {{Navbox style | + | | groupstyle = {{Navbox style|child|group}} white-space: normal; |
− | | liststyle = {{Navbox style | + | | liststyle = {{Navbox style|child|list}} |
− | | evenstyle = {{Navbox style | + | | evenstyle = {{Navbox style|child|even}} |
− | | oddstyle = {{Navbox style | + | | oddstyle = {{Navbox style|child|odd}} |
| group1 = {{lang | | group1 = {{lang | ||
Line 499: | Line 498: | ||
}} | }} | ||
− | | | + | | list6 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}} |
− | | | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|aerodynamic|uncollapsed|{{{state6|collapsed}}}}} |
+ | | title = [[Parts{{if lang}}#{{lang | ||
|en=Aerodynamic | |en=Aerodynamic | ||
|pl=Aerodynamika | |pl=Aerodynamika | ||
Line 511: | Line 511: | ||
|ru=Аэродинамика | |ru=Аэродинамика | ||
}}]] | }}]] | ||
− | |||
| groupclass = wrap | | groupclass = wrap | ||
| listclass = hlist | | listclass = hlist | ||
− | | bodystyle = {{Navbox style | + | | bodystyle = {{Navbox style|child|body}} |
− | | titlestyle = {{Navbox style | + | | titlestyle = {{Navbox style|child|title}} |
− | | abovestyle = {{Navbox style | + | | abovestyle = {{Navbox style|child|above}} |
− | | belowstyle = {{Navbox style | + | | belowstyle = {{Navbox style|child|below}} |
− | | groupstyle = {{Navbox style | + | | groupstyle = {{Navbox style|child|group}} white-space: normal; |
− | | liststyle = {{Navbox style | + | | liststyle = {{Navbox style|child|list}} |
− | | evenstyle = {{Navbox style | + | | evenstyle = {{Navbox style|child|even}} |
− | | oddstyle = {{Navbox style | + | | oddstyle = {{Navbox style|child|odd}} |
| group1 = [[Control surface{{if lang}}|{{lang | | group1 = [[Control surface{{if lang}}|{{lang | ||
Line 627: | Line 626: | ||
}} | }} | ||
− | | | + | | list7 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}} |
− | | | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|utility|uncollapsed|{{{state7|collapsed}}}}} |
+ | | title = [[Parts{{if lang}}#{{lang | ||
|en=Utility | |en=Utility | ||
|pl=Użytkowe | |pl=Użytkowe | ||
Line 641: | Line 641: | ||
|ru=Вспомогательные системы | |ru=Вспомогательные системы | ||
}}]] | }}]] | ||
− | |||
| groupclass = wrap | | groupclass = wrap | ||
| listclass = hlist | | listclass = hlist | ||
− | | bodystyle = {{Navbox style | + | | bodystyle = {{Navbox style|child|body}} |
− | | titlestyle = {{Navbox style | + | | titlestyle = {{Navbox style|child|title}} |
− | | abovestyle = {{Navbox style | + | | abovestyle = {{Navbox style|child|above}} |
− | | belowstyle = {{Navbox style | + | | belowstyle = {{Navbox style|child|below}} |
− | | groupstyle = {{Navbox style | + | | groupstyle = {{Navbox style|child|group}} white-space: normal; |
− | | liststyle = {{Navbox style | + | | liststyle = {{Navbox style|child|list}} |
− | | evenstyle = {{Navbox style | + | | evenstyle = {{Navbox style|child|even}} |
− | | oddstyle = {{Navbox style | + | | oddstyle = {{Navbox style|child|odd}} |
| group1 = {{lang | | group1 = {{lang | ||
Line 793: | Line 792: | ||
}} | }} | ||
− | | | + | | list8 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}} |
− | | | + | | state = {{#ifeq:{{{selected|{{{1|}}}}}}|science|uncollapsed|{{{state8|collapsed}}}}} |
+ | | title = [[Parts{{if lang}}#{{lang | ||
|en=Science | |en=Science | ||
|pl=Naukowe | |pl=Naukowe | ||
Line 806: | Line 806: | ||
|ru=Научные модули | |ru=Научные модули | ||
}}]] | }}]] | ||
− | |||
| groupclass = wrap | | groupclass = wrap | ||
| listclass = hlist | | listclass = hlist | ||
− | | bodystyle = {{Navbox style | + | | bodystyle = {{Navbox style|child|body}} |
− | | titlestyle = {{Navbox style | + | | titlestyle = {{Navbox style|child|title}} |
− | | abovestyle = {{Navbox style | + | | abovestyle = {{Navbox style|child|above}} |
− | | belowstyle = {{Navbox style | + | | belowstyle = {{Navbox style|child|below}} |
− | | groupstyle = {{Navbox style | + | | groupstyle = {{Navbox style|child|group}} white-space: normal; |
− | | liststyle = {{Navbox style | + | | liststyle = {{Navbox style|child|list}} |
− | | evenstyle = {{Navbox style | + | | evenstyle = {{Navbox style|child|even}} |
− | | oddstyle = {{Navbox style | + | | oddstyle = {{Navbox style|child|odd}} |
| group1 = {{lang | | group1 = {{lang | ||
Line 857: | Line 856: | ||
}} | }} | ||
− | }}<includeonly>{{ | + | }}<includeonly>{{Main other|[[Category:Default parts{{if lang}}]]}}</includeonly><noinclude> |
{{documentation}} | {{documentation}} | ||
+ | <!-- Add categories to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Revision as of 02:53, 8 June 2015
This is the template sandbox page for Template:Parts (diff). See also the companion subpage for test cases. |
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/sandbox |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. |