Difference between revisions of "Template:Kerbals/sandbox"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Remove temporary CSS workaround. Remaining embedded style is needed to create the desired appearance.)
(Converted to {{Navbox with collapsible groups}})
Line 1: Line 1:
{{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
+
{{Navbox with collapsible groups{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
 
| name = Kerbals{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
 
| name = Kerbals{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
 
| state = {{{state|}}}
 
| state = {{{state|}}}
Line 11: Line 11:
 
  | hu = Híres Kerbálok
 
  | hu = Híres Kerbálok
 
  }}
 
  }}
| selected = {{{selected|{{{1|}}}}}} <!-- For {{Navbox with collapsible groups}}, ignored by {{Navbox}} -->
+
| selected = {{{selected|{{{1|}}}}}}
  
 
| titlestyle      = {{Navbox style{{\sandbox}}|color=green|title}}
 
| titlestyle      = {{Navbox style{{\sandbox}}|color=green|title}}
Line 18: Line 18:
 
| groupstyle      = {{Navbox style{{\sandbox}}|color=green|group}}
 
| groupstyle      = {{Navbox style{{\sandbox}}|color=green|group}}
  
| list1 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
+
| abbr1 = kerbonauts
| state = {{#ifeq:{{{selected|{{{1|}}}}}}|kerbonauts|uncollapsed|{{{state1|<includeonly>collapsed</includeonly>}}}}}
+
| state1 = <noinclude>uncollapsed</noinclude>
| title = {{if lang link|Kerbonaut
+
| group1 = {{if lang link|Kerbonaut
 
   | en = Kerbonauts
 
   | en = Kerbonauts
 
   | fr = Kerbonautes
 
   | fr = Kerbonautes
Line 27: Line 27:
 
   | ru = Кербанавт
 
   | ru = Кербанавт
 
  }}
 
  }}
 
+
| list1 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
| titlestyle      = {{Navbox style{{\sandbox}}|color=green|child|title}}
 
| abovestyle      = {{Navbox style{{\sandbox}}|color=green|child|above}}
 
| belowstyle      = {{Navbox style{{\sandbox}}|color=green|child|below}}
 
| groupstyle      = {{Navbox style{{\sandbox}}|color=green|child|group}}
 
 
 
 
  | colheaderstyle  = {{Navbox style{{\sandbox}}|color=green|child|above}}
 
  | colheaderstyle  = {{Navbox style{{\sandbox}}|color=green|child|above}}
 
  | colstyle        = text-align: center;
 
  | colstyle        = text-align: center;
Line 68: Line 63:
 
}}
 
}}
  
| list2 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
+
| abbr2 = ksc
| state = {{#ifeq:{{{selected|{{{1|}}}}}}|ksc|uncollapsed|{{{state2|<includeonly>collapsed</includeonly>}}}}}
+
| state2 = <noinclude>uncollapsed</noinclude>
| title = {{if lang link|Kerbal Space Center
+
| group2 = {{if lang link|Kerbal Space Center
 
   | en = Kerbal Space Center Staff
 
   | en = Kerbal Space Center Staff
 
  }}
 
  }}
 
+
| list2 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
| titlestyle      = {{Navbox style{{\sandbox}}|color=green|child|title}}
 
| abovestyle      = {{Navbox style{{\sandbox}}|color=green|child|above}}
 
| belowstyle      = {{Navbox style{{\sandbox}}|color=green|child|below}}
 
| groupstyle      = {{Navbox style{{\sandbox}}|color=green|child|group}}
 
 
 
 
  | colheaderstyle  = {{Navbox style{{\sandbox}}|color=green|child|above}} padding: 0.25em;
 
  | colheaderstyle  = {{Navbox style{{\sandbox}}|color=green|child|above}} padding: 0.25em;
 
  | colstyle        = text-align: center;
 
  | colstyle        = text-align: center;
Line 140: Line 130:
 
}}
 
}}
  
| list3 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
+
| abbr3 = others
| state = {{#ifeq:{{{selected|{{{1|}}}}}}|others|uncollapsed|{{{state3|<includeonly>collapsed</includeonly>}}}}}
+
| state3 = <noinclude>uncollapsed</noinclude>
| title = {{lang
+
| group3 = {{lang
 
   | en = Others
 
   | en = Others
 
  }}
 
  }}
 
+
| list3 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
| titlestyle      = {{Navbox style{{\sandbox}}|color=green|child|title}}
 
| abovestyle      = {{Navbox style{{\sandbox}}|color=green|child|above}}
 
| belowstyle      = {{Navbox style{{\sandbox}}|color=green|child|below}}
 
| groupstyle      = {{Navbox style{{\sandbox}}|color=green|child|group}}
 
 
 
 
  | colheaderstyle  = {{Navbox style{{\sandbox}}|color=green|child|above}} padding: 0.25em;
 
  | colheaderstyle  = {{Navbox style{{\sandbox}}|color=green|child|above}} padding: 0.25em;
 
  | colstyle        = text-align: center;
 
  | colstyle        = text-align: center;

Revision as of 16:13, 11 June 2015

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

Usage

Add {{Kerbals}} at the bottom of an article that is related to a Kerbal.

Purpose

The purpose of the {{Kerbals}} template is to provide a structure to ease navigation between the well known Kerbals in KSP. Feel free to restructure it to add further clarity.

It is intended to only contain characters created by Squad (or officially recognised by them), or those with significant notability.

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):
    • kerbonauts
    • ksc
    • others
  • For example: {{Kerbals/sandbox |kerbonauts}}

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

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

See also