Difference between revisions of "Template:Parts/sandbox"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<noinclude>{{Parts}}</noinclude> {{Navbox with collapsible groups | name = {{subst:PAGENAME}} | state = {{{state|}}} | titlestyle = | title = Parts{{if lang}}|{{lang |en=...")
 
(Remove temporary CSS workaround. Should possibly convert back to {{Navbox with collapsible groups}}, but just the simple change for now, while I think about that.)
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Parts}}</noinclude>
+
{{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
{{Navbox with collapsible groups
+
| name = Parts{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
| name = Parts/sandbox
 
 
| state = {{{state|}}}
 
| state = {{{state|}}}
| titlestyle =
 
 
| title = [[Parts{{if lang}}|{{lang
 
| title = [[Parts{{if lang}}|{{lang
 
   |en=Default parts
 
   |en=Default parts
Line 13: Line 11:
 
  }}]]
 
  }}]]
 
| image =  
 
| image =  
| selected = {{{selected|{{{1|}}}}}}
+
| selected = {{{selected|{{{1|}}}}}} <!-- For {{Navbox with collapsible groups}}, ignored by {{Navbox}} -->
  
| abbr1 = command modules
+
| list1 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
| group1 = [[Command module{{if lang}}|{{lang
+
| 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 24: Line 23:
 
   |fr=Modules de Commande
 
   |fr=Modules de Commande
 
  }}]]
 
  }}]]
| content1 = {{Navbox|child
+
| groupclass = wrap
 
  | listclass = hlist
 
  | listclass = hlist
  
Line 75: Line 74:
 
* {{LangFallback|RC-001S Remote Guidance Unit}}
 
* {{LangFallback|RC-001S Remote Guidance Unit}}
 
* {{LangFallback|RC-L01 Remote Guidance Unit}}
 
* {{LangFallback|RC-L01 Remote Guidance Unit}}
* {{LangFallback|Mk2 Drone Core}}
+
* {{LangFallback|MK2 Drone Core}}
  
 
}}
 
}}
  
| abbr2 = propulsion
+
| list2 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
| group2 = [[Parts{{if lang}}#{{lang
+
| 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 91: Line 91:
 
   |ru=двигатели
 
   |ru=двигатели
 
  }}]]
 
  }}]]
| content2 = {{Navbox|child
+
| groupclass = wrap
 
  | listclass = hlist
 
  | listclass = hlist
  
Line 120: Line 120:
  
 
  | group2 = {{lang
 
  | group2 = {{lang
   |en=[[Monopropellant]] fuel tanks
+
   |en=[[Monopropellant]] fuel&nbsp;tanks
 
   |de=Monopropellant&shy;treibstoff&shy;tanks
 
   |de=Monopropellant&shy;treibstoff&shy;tanks
 
  }}
 
  }}
Line 197: Line 197:
 
}}
 
}}
  
| abbr3 = propulsion
+
| list3 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
| group3 = [[Parts{{if lang}}#{{lang
+
| state = {{#ifeq:{{{selected|{{{1|}}}}}}|propulsion|uncollapsed|{{{state3|collapsed}}}}}
 +
| title = [[Parts{{if lang}}#{{lang
 
   |en=Engines
 
   |en=Engines
 
   |pl=Napędy
 
   |pl=Napędy
Line 210: Line 211:
 
   |ru=Двигатели
 
   |ru=Двигатели
 
  }}]]
 
  }}]]
| content3 = {{Navbox|child
+
| groupclass = wrap
 
  | listclass = hlist
 
  | listclass = hlist
  
Line 289: Line 290:
 
}}
 
}}
  
| abbr4 = control
+
| list4 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
| group4 = [[Parts{{if lang}}#{{lang
+
| state = {{#ifeq:{{{selected|{{{1|}}}}}}|control|uncollapsed|{{{state4|collapsed}}}}}
 +
| title = [[Parts{{if lang}}#{{lang
 
   |en=Control
 
   |en=Control
 
   |pl=Kontrola
 
   |pl=Kontrola
Line 304: Line 306:
 
   |ru=Системы управления
 
   |ru=Системы управления
 
  }}]]
 
  }}]]
| content4 = {{Navbox|child
+
| groupclass = wrap
 
  | listclass = hlist
 
  | listclass = hlist
  
Line 318: Line 320:
 
  | list1 =  
 
  | list1 =  
 
* {{LangFallback|Small Inline Reaction Wheel}}
 
* {{LangFallback|Small Inline Reaction Wheel}}
* {{LangFallback|Inline Advanced Stabilizer}}
+
* {{LangFallback|Advanced Inline Stabilizer}}
* {{LangFallback|Advanced S.A.S Module, Large}}
+
* {{LangFallback|Advanced Reaction Wheel Module, Large}}
 
* {{LangFallback|CH-J3 Fly-By-Wire Avionics Hub}}
 
* {{LangFallback|CH-J3 Fly-By-Wire Avionics Hub}}
  
Line 339: Line 341:
 
}}
 
}}
  
| abbr5 = structural
+
| list5 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
| group5 = [[Parts{{if lang}}#{{lang
+
| state = {{#ifeq:{{{selected|{{{1|}}}}}}|structural|uncollapsed|{{{state5|collapsed}}}}}
 +
| title = [[Parts{{if lang}}#{{lang
 
   |en=Structural
 
   |en=Structural
 
   |pl=Strukturalne
 
   |pl=Strukturalne
Line 352: Line 355:
 
   |ru=Элементы конструкций
 
   |ru=Элементы конструкций
 
  }}]]
 
  }}]]
| content5 = {{Navbox|child
+
| groupclass = wrap
 
  | listclass = hlist
 
  | listclass = hlist
  
Line 438: Line 441:
 
}}
 
}}
  
| abbr6 = aerodynamic
+
| list6 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
| group6 = [[Parts{{if lang}}#{{lang
+
| state = {{#ifeq:{{{selected|{{{1|}}}}}}|aerodynamic|uncollapsed|{{{state6|collapsed}}}}}
 +
| title = [[Parts{{if lang}}#{{lang
 
   |en=Aerodynamic
 
   |en=Aerodynamic
 
   |pl=Aerodynamika
 
   |pl=Aerodynamika
Line 450: Line 454:
 
   |ru=Аэродинамика
 
   |ru=Аэродинамика
 
  }}]]
 
  }}]]
| content6 = {{Navbox|child
+
| groupclass = wrap
 
  | listclass = hlist
 
  | listclass = hlist
  
Line 519: Line 523:
 
* {{LangFallback|Tail Connector A}}
 
* {{LangFallback|Tail Connector A}}
 
* {{LangFallback|Tail Connector B}}
 
* {{LangFallback|Tail Connector B}}
* {{LangFallback|Protective Rocket Nose Mk7}}
+
* {{LangFallback|Protective Rocket Nose Cone Mk7}}
  
 
  | group4 = {{lang
 
  | group4 = {{lang
Line 556: Line 560:
 
}}
 
}}
  
| abbr7 = utility
+
| list7 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
| group7 = [[Parts{{if lang}}#{{lang
+
| state = {{#ifeq:{{{selected|{{{1|}}}}}}|utility|uncollapsed|{{{state7|collapsed}}}}}
 +
| title = [[Parts{{if lang}}#{{lang
 
   |en=Utility
 
   |en=Utility
 
   |pl=Użytkowe
 
   |pl=Użytkowe
Line 569: Line 574:
 
   |de=Hilfsmittel
 
   |de=Hilfsmittel
 
   |ru=Вспомогательные системы
 
   |ru=Вспомогательные системы
  }}]]}}
+
  }}]]
| content7 = {{Navbox|child
+
| groupclass = wrap
 
  | listclass = hlist
 
  | listclass = hlist
  
Line 681: Line 686:
 
  }}
 
  }}
 
  | list8 =  
 
  | list8 =  
* {{LangFallback|Clamp-O-Tron Jr.}}
+
* {{LangFallback|Clamp-O-Tron Docking Port Jr.}}
 
* {{LangFallback|Clamp-O-Tron Docking Port}}
 
* {{LangFallback|Clamp-O-Tron Docking Port}}
 +
* {{LangFallback|Clamp-O-Tron Docking Port Sr.}}
 
* {{LangFallback|Clamp-O-Tron Shielded Docking Port}}
 
* {{LangFallback|Clamp-O-Tron Shielded Docking Port}}
* {{LangFallback|Clamp-O-Tron Sr. Docking Port}}
 
 
* {{LangFallback|Inline Clamp-O-Tron}}
 
* {{LangFallback|Inline Clamp-O-Tron}}
 
* {{LangFallback|Advanced Grabbing Unit}}
 
* {{LangFallback|Advanced Grabbing Unit}}
 
* {{LangFallback|PPD-10 Hitchhiker Storage Container}}
 
* {{LangFallback|PPD-10 Hitchhiker Storage Container}}
* {{LangFallback|Mk2 Crew Cabin}}
+
* {{LangFallback|MK2 Crew Cabin}}
 
* {{LangFallback|Mk3 Passenger Module}}
 
* {{LangFallback|Mk3 Passenger Module}}
  
Line 703: Line 708:
 
* {{LangFallback|Service Bay (2.5m)}}
 
* {{LangFallback|Service Bay (2.5m)}}
  
  | group = {{lang
+
  | group10 = {{lang
 
   |en=Ore processing
 
   |en=Ore processing
 
  }}
 
  }}
  | list =  
+
  | list10 =  
 
* {{LangFallback|'Drill-O-Matic' Mining Excavator}}
 
* {{LangFallback|'Drill-O-Matic' Mining Excavator}}
 
* {{LangFallback|ISRU Converter}}
 
* {{LangFallback|ISRU Converter}}
Line 712: Line 717:
 
}}
 
}}
  
| abbr8 = science
+
| list8 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
| group8 = [[Parts{{if lang}}#{{lang
+
| state = {{#ifeq:{{{selected|{{{1|}}}}}}|science|uncollapsed|{{{state8|collapsed}}}}}
 +
| title = [[Parts{{if lang}}#{{lang
 
   |en=Science
 
   |en=Science
 
   |pl=Naukowe
 
   |pl=Naukowe
Line 725: Line 731:
 
   |ru=Научные модули
 
   |ru=Научные модули
 
  }}]]
 
  }}]]
| content8 = {{Navbox|child
+
| groupclass = wrap
 
  | listclass = hlist
 
  | listclass = hlist
  
Line 766: Line 772:
  
 
}}
 
}}
}}<includeonly>{{#ifeq: {{NAMESPACENUMBER}} | 0 | [[Category:Default parts{{if lang}}]] | }}</includeonly><noinclude>
+
}}<includeonly>{{Main other|[[Category:Default parts{{if lang}}]]}}</includeonly><noinclude>
 
+
{{documentation}}
 
+
<!-- Add categories to the /doc subpage, not here! -->
== Usage ==
+
</noinclude>
Nav-box for default parts. Just enter <tt><nowiki>{{Parts}}</nowiki></tt> at the bottom of the page. This will add the page to the category [[:Category:Default parts|default parts]].
 
 
 
The first parameter can be set to a section which is already expanded.
 
 
 
== Translation status ==
 
* <del>'''German (de):''' Complete.</del>
 
* '''English (en):''' Complete. (except “RCS Engines” and “Monopropellant fuel tanks”)
 
* <del>'''Polish (pl):''' Complete. (except “RCS Engines” and “Monopropellant fuel tanks”)</del>
 
* <del>'''Croatian (hr):''' Complete. (except “RCS Engines” and “Monopropellant fuel tanks”)</del>
 
* <del>'''French (fr):''' Partial. (except “RCS Engines” and “Monopropellant fuel tanks”)</del>
 
''translations for 1.0 parts needed.''
 
 
 
[[Category:Navbox templates]]
 
[[Category:Categorising templates]]</noinclude>
 

Revision as of 12:50, 11 June 2015

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

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.

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
    • 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 status

  • German (de): Complete.
  • Spanish (es): Complete.
  • French (fr): Complete.
  • Croatian (hr): Needs translation for newer parts.
  • Italian (it): Complete.
  • Japanese (ja): Complete.
  • Dutch (nl): Complete.
  • Polish (pl): Needs translation for newer parts.
  • Russian (ru): Needs translation for newer parts.

See also