Difference between revisions of "Template:Parts/sandbox"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Oops, trying to be too clever there, can't use {{BASEPAGENAME}} like that.)
m (Sandbox hook for testcases)
Line 1: Line 1:
{{Navbox with collapsible groups
+
{{Navbox with collapsible groups{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
 
| name = Parts/sandbox
 
| name = Parts/sandbox
 
| state = {{{state|}}}
 
| state = {{{state|}}}
Line 10: Line 10:
 
   |hr=Tvornički postavljeni dijelovi
 
   |hr=Tvornički postavljeni dijelovi
 
   |ru=Стандартные детали
 
   |ru=Стандартные детали
  }}]]
+
  }}]]{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
 
| image =  
 
| image =  
 
| selected = {{{selected|{{{1|}}}}}}
 
| selected = {{{selected|{{{1|}}}}}}
Line 23: Line 23:
 
   |fr=Modules de Commande
 
   |fr=Modules de Commande
 
  }}]]
 
  }}]]
| content1 = {{Navbox|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
+
| content1 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | groupclass = wrap
 
  | groupclass = wrap
 
  | listclass = hlist
 
  | listclass = hlist
Line 91: Line 91:
 
   |ru=двигатели
 
   |ru=двигатели
 
  }}]]
 
  }}]]
| content2 = {{Navbox|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
+
| content2 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | groupclass = wrap
 
  | groupclass = wrap
 
  | listclass = hlist
 
  | listclass = hlist
Line 211: Line 211:
 
   |ru=Двигатели
 
   |ru=Двигатели
 
  }}]]
 
  }}]]
| content3 = {{Navbox|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
+
| content3 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | groupclass = wrap
 
  | groupclass = wrap
 
  | listclass = hlist
 
  | listclass = hlist
Line 306: Line 306:
 
   |ru=Системы управления
 
   |ru=Системы управления
 
  }}]]
 
  }}]]
| content4 = {{Navbox|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
+
| content4 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | groupclass = wrap
 
  | groupclass = wrap
 
  | listclass = hlist
 
  | listclass = hlist
Line 355: Line 355:
 
   |ru=Элементы конструкций
 
   |ru=Элементы конструкций
 
  }}]]
 
  }}]]
| content5 = {{Navbox|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
+
| content5 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | groupclass = wrap
 
  | groupclass = wrap
 
  | listclass = hlist
 
  | listclass = hlist
Line 454: Line 454:
 
   |ru=Аэродинамика
 
   |ru=Аэродинамика
 
  }}]]
 
  }}]]
| content6 = {{Navbox|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
+
| content6 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | groupclass = wrap
 
  | groupclass = wrap
 
  | listclass = hlist
 
  | listclass = hlist
Line 575: Line 575:
 
   |ru=Вспомогательные системы
 
   |ru=Вспомогательные системы
 
  }}]]
 
  }}]]
| content7 = {{Navbox|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
+
| content7 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | groupclass = wrap
 
  | groupclass = wrap
 
  | listclass = hlist
 
  | listclass = hlist
Line 731: Line 731:
 
   |ru=Научные модули
 
   |ru=Научные модули
 
  }}]]
 
  }}]]
| content8 = {{Navbox|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
+
| content8 = {{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child|groupwidth={{{groupwidth|{{Parts/groupwidth}}}}}
 
  | groupclass = wrap
 
  | groupclass = wrap
 
  | listclass = hlist
 
  | listclass = hlist

Revision as of 22:49, 2 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.

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