Difference between revisions of "Template:Demo parts/sandbox"

From Kerbal Space Program Wiki
Jump to: navigation, search
m ({{\sandbox}} - automatically use sandbox versions of navbox templates on sandbox pages)
m (Sandbox hook for testcases)
Line 1: Line 1:
{{Navbox{{\sandbox}}
+
{{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
 
| name      = Demo parts/sandbox
 
| name      = Demo parts/sandbox
 
| title      = [[Demo parts{{if lang}}|{{lang
 
| title      = [[Demo parts{{if lang}}|{{lang
 
   |en=Demo parts
 
   |en=Demo parts
 
   |ru=Детали в демонстрационной версии
 
   |ru=Детали в демонстрационной версии
  }}]]{{\sandbox}}
+
  }}]]{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
 
| groupwidth = {{Parts/groupwidth}}  <!-- match {{Parts}} for consistency, and to enable stacking of related navboxes -->
 
| groupwidth = {{Parts/groupwidth}}  <!-- match {{Parts}} for consistency, and to enable stacking of related navboxes -->
 
| listclass  = hlist
 
| listclass  = hlist
Line 94: Line 94:
 
| below      =
 
| below      =
 
}}
 
}}
{{Navbox{{\sandbox}}
+
{{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
 
| name      = Demo parts/sandbox
 
| name      = Demo parts/sandbox
 
| title      = [[Demo parts{{if lang}}|{{lang
 
| title      = [[Demo parts{{if lang}}|{{lang
 
   |en=Demo parts
 
   |en=Demo parts
 
   |ru=Детали в демонстрационной версии
 
   |ru=Детали в демонстрационной версии
  }}]]{{\sandbox}}
+
  }}]]{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
 
| groupwidth = {{Parts/groupwidth}}  <!-- match {{Parts}} for consistency, and to enable stacking of related navboxes -->
 
| groupwidth = {{Parts/groupwidth}}  <!-- match {{Parts}} for consistency, and to enable stacking of related navboxes -->
 
| listclass  = hlist
 
| listclass  = hlist
Line 124: Line 124:
 
   |ru=[[Demo parts/ru#Двигатели|Двигатели]]
 
   |ru=[[Demo parts/ru#Двигатели|Двигатели]]
 
   }}
 
   }}
| list2      = {{Navbox subgroup{{\sandbox}}
+
| list2      = {{Navbox subgroup{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
 
  | evenodd = swap
 
  | evenodd = swap
 
  | group1 = Fuel
 
  | group1 = Fuel

Revision as of 22:45, 2 June 2015

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

Usage

Just add {{Demo parts}} at the bottom of the page for a part.

Purpose

The purpose of the {{Demo parts}} template is to provide a structure to ease navigation between the many parts available in the KSP demo. Feel free to restructure it to add further clarity.

Articles including the template will be added to Category:Demo parts.

Collapsible options

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. {{Demo parts |state=collapsed}}
|state=expanded to show the template in its expanded state, i.e. fully visible – e.g. {{Demo parts |state=expanded}}

Unless set otherwise (see the |state= parameter in the template's code), the template's default state is collapsed.

See also