Difference between revisions of "Template:Demo parts"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Unintentional extra style removed from demo of alternate version)
(Remove temporary CSS workaround.)
Line 8: Line 8:
 
| listclass  = hlist
 
| listclass  = hlist
 
| state      = {{{state|{{{1|<includeonly>collapsed</includeonly>}}}}}}
 
| state      = {{{state|{{{1|<includeonly>collapsed</includeonly>}}}}}}
 
| bodystyle      = {{Navbox style|body}}
 
| innerstyle      = {{Navbox style|inner}}
 
| titlestyle      = {{Navbox style|title}}
 
| abovestyle      = {{Navbox style|above}}
 
| belowstyle      = {{Navbox style|below}}
 
| groupstyle      = {{Navbox style|group}}
 
| liststyle      = {{Navbox style|list}}
 
| evenstyle      = {{Navbox style|even}}
 
| oddstyle        = {{Navbox style|odd}}
 
| navbarstyle    = {{Navbox style|navbar}}
 
| navbarfontstyle = {{Navbox style|navbarfont}}
 
  
 
| above      =
 
| above      =
Line 118: Line 106:
 
| listclass  = hlist
 
| listclass  = hlist
 
| state      = {{{state|{{{1|<includeonly>collapsed</includeonly>}}}}}}
 
| state      = {{{state|{{{1|<includeonly>collapsed</includeonly>}}}}}}
 
| bodystyle      = {{Navbox style|body}}
 
| innerstyle      = {{Navbox style|inner}}
 
| titlestyle      = {{Navbox style|title}}
 
| abovestyle      = {{Navbox style|above}}
 
| belowstyle      = {{Navbox style|below}}
 
| groupstyle      = {{Navbox style|group}}
 
| liststyle      = {{Navbox style|list}}
 
| evenstyle      = {{Navbox style|even}}
 
| oddstyle        = {{Navbox style|odd}}
 
| navbarstyle    = {{Navbox style|navbar}}
 
| navbarfontstyle = {{Navbox style|navbarfont}}
 
  
 
| above      =
 
| above      =
Line 152: Line 128:
 
   }}
 
   }}
 
| list2      = {{Navbox subgroup{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
 
| list2      = {{Navbox subgroup{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
  | bodystyle      = {{Navbox style|child|body}}
+
  | evenodd = swap
| titlestyle      = {{Navbox style|child|title}}
 
| abovestyle      = {{Navbox style|child|above}}
 
| belowstyle      = {{Navbox style|child|below}}
 
| groupstyle      = {{Navbox style|child|group}}
 
| liststyle      = {{Navbox style|child|list}}
 
| evenstyle      = {{Navbox style|child|even}}
 
| oddstyle        = {{Navbox style|child|odd}}
 
  
| evenodd = swap
 
 
  | group1 = Fuel
 
  | group1 = Fuel
 
  | list1 =  
 
  | list1 =  
Line 180: Line 148:
 
* {{LangFallback|FL-R25 RCS Fuel Tank}}
 
* {{LangFallback|FL-R25 RCS Fuel Tank}}
 
}}
 
}}
 +
 
| group3    = {{Lang
 
| group3    = {{Lang
 
   |default=[[Demo parts{{if lang}}|Control]]
 
   |default=[[Demo parts{{if lang}}|Control]]

Revision as of 14:13, 11 June 2015

Current version above, test/demo version with subgroups below. Does it look better with the subgroups?

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

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