Difference between revisions of "Template:Kerbals/sandbox"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Fix for MW adding unnecessary, unwanted, and unhelpful <p> wrapper around the images. It was adding extra vertical space I didn't like, so suppressed via "centre" on the images, and can controllably pad via style if need be.)
m (Remove duplicate)
 
(7 intermediate revisions by one other user not shown)
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|}}}
 
| title = {{if lang link|Kerbal
 
| title = {{if lang link|Kerbal
| en = Famous Kerbals
 
 
  | en = Famous Kerbals
 
  | en = Famous Kerbals
 
  | fr = Kerbals célèbres
 
  | fr = Kerbals célèbres
Line 11: Line 10:
 
  | hu = Híres Kerbálok
 
  | hu = Híres Kerbálok
 
  }}
 
  }}
| selected = {{{selected|{{{1|}}}}}} <!-- For {{Navbox with collapsible groups}}, ignored by {{Navbox}} -->
+
| listclass = hlist
 +
| selected = {{{selected|{{{1|}}}}}}
  
| bodystyle      = {{Navbox style|color=green|body}}
+
| titlestyle      = {{Navbox style{{\sandbox}}|color=green|title}}
| innerstyle      = {{Navbox style|color=green|inner}}
+
| abovestyle      = {{Navbox style{{\sandbox}}|color=green|above}}
| titlestyle      = {{Navbox style|color=green|title}}
+
| belowstyle      = {{Navbox style{{\sandbox}}|color=green|below}}
| abovestyle      = {{Navbox style|color=green|above}}
+
| groupstyle      = {{Navbox style{{\sandbox}}|color=green|group}}
| belowstyle      = {{Navbox style|color=green|below}}
 
| groupstyle      = {{Navbox style|color=green|group}}
 
| liststyle      = {{Navbox style|color=green|list}}
 
| evenstyle      = {{Navbox style|color=green|even}}
 
| oddstyle        = {{Navbox style|color=green|odd}}
 
| navbarstyle    = {{Navbox style|color=green|navbar}}
 
| navbarfontstyle = {{Navbox style|color=green|navbarfont}}
 
  
| list1 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
+
| abbr1 = kerbonauts
| state = {{#ifeq:{{{selected|{{{1|}}}}}}|kerbonauts|uncollapsed|{{{state1|<includeonly>collapsed</includeonly>}}}}}
+
| state1 = <includeonly>collapsed</includeonly>
| title = {{if lang link|Kerbonaut
+
| group1 = {{if lang link|Kerbonaut
 
   | en = Kerbonauts
 
   | en = Kerbonauts
 
   | fr = Kerbonautes
 
   | fr = Kerbonautes
Line 34: Line 27:
 
   | ru = Кербанавт
 
   | ru = Кербанавт
 
  }}
 
  }}
 
+
| list1 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
| bodystyle      = {{Navbox style|color=green|child|body}}
+
  | colheaderstyle  = {{Navbox style{{\sandbox}}|color=green|child|above}}
| titlestyle      = {{Navbox style|color=green|child|title}}
+
  | colstyle        = text-align: center;
| abovestyle      = {{Navbox style|color=green|child|above}}
+
  | colfooterstyle  = {{Navbox style{{\sandbox}}|color=green|child|below}} font-weight: normal;
| belowstyle      = {{Navbox style|color=green|child|below}}
 
| groupstyle      = {{Navbox style|color=green|child|group}}
 
| liststyle      = {{Navbox style|color=green|child|list}}
 
| evenstyle      = {{Navbox style|color=green|child|even}}
 
| oddstyle        = {{Navbox style|color=green|child|odd}}
 
 
 
  | colheaderstyle  = {{Navbox style|color=green|child|above}}
 
  | colstyle        = {{Navbox style|color=green|child|list}}
 
  | colfooterstyle  = {{Navbox style|color=green|child|below}} font-weight: normal;
 
 
  | colwidth = 25%
 
  | colwidth = 25%
  
Line 53: Line 37:
 
   | ru = Джебедайя Карман
 
   | ru = Джебедайя Карман
 
  }}
 
  }}
  | col1 = {{Kerbal|jebediah|align=center|size=150px|link=yes}}
+
  | col1 = {{Kerbal|jebediah|align=none|size=150px|link=yes}}
 
  | col1footer = {{if lang link|Pilot}}
 
  | col1footer = {{if lang link|Pilot}}
  
Line 60: Line 44:
 
   | ru = Билл Карман
 
   | ru = Билл Карман
 
  }}
 
  }}
  | col2 = {{Kerbal|bill|align=center|size=150px|link=yes}}
+
  | col2 = {{Kerbal|bill|align=none|size=150px|link=yes}}
 
  | col2footer = {{if lang link|Engineer}}
 
  | col2footer = {{if lang link|Engineer}}
  
Line 67: Line 51:
 
   | ru = Боб Керман
 
   | ru = Боб Керман
 
  }}
 
  }}
  | col3 = {{Kerbal|bob|align=center|size=150px|link=yes}}
+
  | col3 = {{Kerbal|bob|align=none|size=150px|link=yes}}
 
  | col3footer = {{if lang link|Scientist}}
 
  | col3footer = {{if lang link|Scientist}}
  
Line 74: Line 58:
 
   | ru = Валентина Керман
 
   | ru = Валентина Керман
 
  }}
 
  }}
  | col4 = {{Kerbal|valentina|align=center|size=120px|link=yes}}
+
  | col4 = {{Kerbal|valentina|align=none|size=150px|link=yes}}
 
  | col4footer = {{if lang link|Pilot}}
 
  | col4footer = {{if lang link|Pilot}}
  
 
}}
 
}}
  
| list2 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
+
| abbr2 = ksc
| state = {{#ifeq:{{{selected|{{{1|}}}}}}|ksc|uncollapsed|{{{state2|<includeonly>collapsed</includeonly>}}}}}
+
| state2 = <includeonly>collapsed</includeonly>
| 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
| bodystyle      = {{Navbox style|color=green|child|body}}
+
  | colheaderstyle  = {{Navbox style{{\sandbox}}|color=green|child|above}} padding: 0.25em;
| titlestyle      = {{Navbox style|color=green|child|title}}
+
  | colstyle        = text-align: center;
| abovestyle      = {{Navbox style|color=green|child|above}}
+
  | colfooterstyle  = {{Navbox style{{\sandbox}}|color=green|child|below}} padding: 0.25em; font-weight: normal;
| belowstyle      = {{Navbox style|color=green|child|below}}
 
| groupstyle      = {{Navbox style|color=green|child|group}}
 
| liststyle      = {{Navbox style|color=green|child|list}}
 
| evenstyle      = {{Navbox style|color=green|child|even}}
 
| oddstyle        = {{Navbox style|color=green|child|odd}}
 
 
 
  | colheaderstyle  = {{Navbox style|color=green|child|above}}
 
  | colstyle        = {{Navbox style|color=green|child|list}}
 
  | colfooterstyle  = {{Navbox style|color=green|child|below}} font-weight: normal;
 
 
  | colwidth = 16.67%  <!-- 100/6, for 6 columns -->
 
  | colwidth = 16.67%  <!-- 100/6, for 6 columns -->
  
Line 103: Line 78:
 
   | ru = Вернер фон Керман
 
   | ru = Вернер фон Керман
 
  }}
 
  }}
  | col1 = {{Kerbal|wernher|align=center|size=122px|link=yes}}
+
  | col1 = {{Kerbal|wernher|align=none|size=120px|link=yes}}
  | col1footer = {{lang|
+
  | col1footer = {{if lang link
   | en = Research & Development
+
   | en = Research and Development
 
  }}
 
  }}
  
Line 112: Line 87:
 
   | ru = Джин Керман
 
   | ru = Джин Керман
 
  }}
 
  }}
  | col2 = {{Kerbal|gene|align=center|size=120px|link=yes}}
+
  | col2 = {{Kerbal|gene|align=none|size=120px|link=yes}}
  | col2footer = {{lang
+
  | col2footer = {{if lang link
 
   | en = Mission Control
 
   | en = Mission Control
 
  }}
 
  }}
Line 121: Line 96:
 
   | ru = Мортимер Керман
 
   | ru = Мортимер Керман
 
  }}
 
  }}
  | col3 = {{Kerbal|mortimer|align=center|size=120px|link=yes}}
+
  | col3 = {{Kerbal|mortimer|align=none|size=120px|link=yes}}
  | col3footer = {{lang
+
  | col3footer = [[Strategies{{if lang}}#Finances|{{lang
 
   | en = Finances
 
   | en = Finances
  }}
+
  }}]]
  
 
  | col4header = {{if lang link|Linus Kerman
 
  | col4header = {{if lang link|Linus Kerman
Line 130: Line 105:
 
   | ru = Линус Карман
 
   | ru = Линус Карман
 
  }}
 
  }}
  | col4 = {{Kerbal|linus|align=center|size=120px|link=yes}}
+
  | col4 = {{Kerbal|linus|align=none|size=120px|link=yes}}
  | col4footer = {{lang
+
  | col4footer = [[Strategies{{if lang}}#Science|{{lang
 
   | en = Science
 
   | en = Science
  }}
+
  }}]]
  
 
  | col5header = {{if lang link|Walt Kerman
 
  | col5header = {{if lang link|Walt Kerman
Line 139: Line 114:
 
   | ru = Уолт Керман
 
   | ru = Уолт Керман
 
  }}
 
  }}
  | col5 = {{Kerbal|walt|align=center|size=120px|link=yes}}
+
  | col5 = {{Kerbal|walt|align=none|size=120px|link=yes}}
  | col5footer = {{lang
+
  | col5footer = [[Strategies{{if lang}}#Public Relations|{{lang
 
   | en = Public Relations
 
   | en = Public Relations
  }}
+
  }}]]
  
 
  | col6header = {{if lang link|Gus Kerman
 
  | col6header = {{if lang link|Gus Kerman
Line 148: Line 123:
 
   | ru = Гас Керман
 
   | ru = Гас Керман
 
  }}
 
  }}
  | col6 = {{Kerbal|gus|align=center|size=120px|link=yes}}
+
  | col6 = {{Kerbal|gus|align=none|size=120px|link=yes}}
  | col6footer = {{lang
+
  | col6footer = [[Strategies{{if lang}}#Operations|{{lang
 
   | en = Operations
 
   | en = Operations
  }}
+
  }}]]
  
 
}}
 
}}
  
| list3 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
+
| abbr3 = others
| state = {{#ifeq:{{{selected|{{{1|}}}}}}|others|uncollapsed|{{{state3|<includeonly>collapsed</includeonly>}}}}}
+
| state3 = <includeonly>collapsed</includeonly>
| title = {{lang
+
| group3 = {{lang
 
   | en = Others
 
   | en = Others
 +
}}
 +
| list3style = {{Navbox style{{\sandbox}}|color=green|child|above}} padding: 0.25em;
 +
| list3 = <!-- Just using a simple list for now, while the server's image handling is very broken -->
 +
* {{if lang link|Bobak Kerman
 +
  | en = Bobak Kerman
 +
  | ru = Бобак Керман
 +
}}
 +
* {{if lang link|Dawton Kerman
 +
  | en = Dawton Kerman
 +
  | ru = Дьютон Карман
 +
}}
 +
* {{if lang link|Dinkelstein Kerman
 +
  | en = Dinkelstein Kerman
 +
  | ru = Динкельштейн Карман
 +
}}
 +
* {{if lang link|Eumon Kerman
 +
  | en = Eumon Kerman
 +
  | ru = Эмон Карман
 +
}}
 +
* {{if lang link|Kirrim Kerman
 +
  | en = Kirrim Kerman
 +
  | ru = Киррим Карман
 +
}}
 +
* {{if lang link|Kurt Kerman
 +
  | en = Kurt Kerman
 
  }}
 
  }}
  
| bodystyle      = {{Navbox style|color=green|child|body}}
+
<!-- Navbox will just ignore "not-list3", so it's really just a comment,
| titlestyle      = {{Navbox style|color=green|child|title}}
+
    but holds the full version with broken images -->
| abovestyle      = {{Navbox style|color=green|child|above}}
+
| not-list3 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
| belowstyle      = {{Navbox style|color=green|child|below}}
+
  | colheaderstyle  = {{Navbox style{{\sandbox}}|color=green|child|above}} padding: 0.25em;
| groupstyle      = {{Navbox style|color=green|child|group}}
+
  | colstyle        = text-align: center;
| liststyle      = {{Navbox style|color=green|child|list}}
+
  | colfooterstyle  = {{Navbox style{{\sandbox}}|color=green|child|below}} padding: 0.25em; font-weight: normal;
| evenstyle      = {{Navbox style|color=green|child|even}}
 
| oddstyle        = {{Navbox style|color=green|child|odd}}
 
 
 
  | colheaderstyle  = {{Navbox style|color=green|child|above}}
 
  | colstyle        = {{Navbox style|color=green|child|list}}
 
  | colfooterstyle  = {{Navbox style|color=green|child|below}} font-weight: normal;
 
 
  | colwidth = 16.67%  <!-- 100/6, for 6 columns -->
 
  | colwidth = 16.67%  <!-- 100/6, for 6 columns -->
  
Line 179: Line 173:
 
   | ru = Бобак Керман
 
   | ru = Бобак Керман
 
  }}
 
  }}
  | col1 = {{Kerbal|bobak|align=center|size=120px|link=yes}}
+
  | col1 = {{Kerbal|bobak|align=none|size=120px|link=yes}}
  
 
  | col2header = {{if lang link|Dawton Kerman
 
  | col2header = {{if lang link|Dawton Kerman
Line 185: Line 179:
 
   | ru = Дьютон Карман
 
   | ru = Дьютон Карман
 
  }}
 
  }}
  | col2 = {{Kerbal|dawton|align=center|size=120px|link=yes}}
+
  | col2 = {{Kerbal|dawton|align=none|size=120px|link=yes}}
  
 
  | col3header = {{if lang link|Dinkelstein Kerman
 
  | col3header = {{if lang link|Dinkelstein Kerman
Line 191: Line 185:
 
   | ru = Динкельштейн Карман
 
   | ru = Динкельштейн Карман
 
  }}
 
  }}
  | col3 = {{Kerbal|dinkelstein|align=center|size=120px|link=yes}}
+
  | col3 = {{Kerbal|dinkelstein|align=none|size=120px|link=yes}}
  
 
  | col4header = {{if lang link|Eumon Kerman
 
  | col4header = {{if lang link|Eumon Kerman
Line 197: Line 191:
 
   | ru = Эмон Карман
 
   | ru = Эмон Карман
 
  }}
 
  }}
  | col4 = {{Kerbal|eumon|align=center|size=120px|link=yes}}
+
  | col4 = {{Kerbal|eumon|align=none|size=120px|link=yes}}
  
 
  | col5header = {{if lang link|Kirrim Kerman
 
  | col5header = {{if lang link|Kirrim Kerman
Line 203: Line 197:
 
   | ru = Киррим Карман
 
   | ru = Киррим Карман
 
  }}
 
  }}
  | col5 = {{Kerbal|kirrim|align=center|size=120px|link=yes}}
+
  | col5 = {{Kerbal|kirrim|align=none|size=120px|link=yes}}
  
 
  | col6header = {{if lang link|Kurt Kerman
 
  | col6header = {{if lang link|Kurt Kerman
 
   | en = Kurt Kerman
 
   | en = Kurt Kerman
 
  }}
 
  }}
  | col6 = {{Kerbal|kurt|align=center|size=120px|link=yes}}
+
  | col6 = {{Kerbal|kurt|align=none|size=120px|link=yes}}
  
 
}}
 
}}

Latest revision as of 21:36, 18 April 2018

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