Difference between revisions of "Template:Kerbals/sandbox"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created for experimentation with a {{Navbox}} version. Derived from work by various contributors at User:Mowaw/kerbal/all)
 
m (Remove duplicate)
 
(24 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>{{Mbox|type=notice|text='''Work in progress.'''  Style will only be visible to me right now, as the site does not yet have the correct CSS, and I've not included the hacky workaround yet.  --[[User:Murph|Murph]] ([[User talk:Murph|talk]])}}</noinclude>
+
{{Navbox with collapsible groups{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
{{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
 
 
| name = Kerbals{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
 
| name = Kerbals{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
 
| state = {{{state|}}}
 
| state = {{{state|}}}
| title = Famous Kerbals
+
| title = {{if lang link|Kerbal
| image =  
+
| en = Famous Kerbals
| selected = {{{selected|{{{1|}}}}}} <!-- For {{Navbox with collapsible groups}}, ignored by {{Navbox}} -->
+
| fr = Kerbals célèbres
 +
| es = Kerbals famosos
 +
| de = Berühmte Kerbals
 +
| ru = Известные Кербалы
 +
| hu = Híres Kerbálok
 +
}}
 +
| listclass = hlist
 +
| selected = {{{selected|{{{1|}}}}}}
  
 +
| titlestyle      = {{Navbox style{{\sandbox}}|color=green|title}}
 +
| abovestyle      = {{Navbox style{{\sandbox}}|color=green|above}}
 +
| belowstyle      = {{Navbox style{{\sandbox}}|color=green|below}}
 +
| groupstyle      = {{Navbox style{{\sandbox}}|color=green|group}}
 +
 +
| abbr1 = kerbonauts
 +
| state1 = <includeonly>collapsed</includeonly>
 +
| group1 = {{if lang link|Kerbonaut
 +
  | en = Kerbonauts
 +
  | fr = Kerbonautes
 +
  | es = Kerbonautas
 +
  | de = Kerbonauten
 +
  | ru = Кербанавт
 +
}}
 
| list1 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
 
| list1 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|command modules|uncollapsed|{{{state1|<includeonly>collapsed</includeonly>}}}}}
+
  | colheaderstyle  = {{Navbox style{{\sandbox}}|color=green|child|above}}
  | title = [[Kerbonaut{{if lang}}|{{lang
+
  | colstyle        = text-align: center;
  | en = Kerbonauts
+
| colfooterstyle  = {{Navbox style{{\sandbox}}|color=green|child|below}} font-weight: normal;
}}]]
 
 
  | colwidth = 25%
 
  | colwidth = 25%
| colstyle = text-align:center;
 
  
 
  | col1header = {{if lang link|Jebediah Kerman
 
  | col1header = {{if lang link|Jebediah Kerman
   |en=Jebediah Kerman
+
   | en = Jebediah Kerman
   |ru=Джебедайя Карман
+
   | ru = Джебедайя Карман
 
  }}
 
  }}
  | col1 = [[File:Jeb portait.png]]
+
  | col1 = {{Kerbal|jebediah|align=none|size=150px|link=yes}}
 +
| col1footer = {{if lang link|Pilot}}
  
 
  | col2header = {{if lang link|Bill Kerman
 
  | col2header = {{if lang link|Bill Kerman
   |en=Bill Kerman
+
   | en = Bill Kerman
   |ru=Билл Карман
+
   | ru = Билл Карман
 
  }}
 
  }}
  | col2 = [[File:Bill_in_CommandPod.jpeg]]
+
  | col2 = {{Kerbal|bill|align=none|size=150px|link=yes}}
 +
| col2footer = {{if lang link|Engineer}}
  
 
  | col3header = {{if lang link|Bob Kerman
 
  | col3header = {{if lang link|Bob Kerman
   |en=Bob Kerman
+
   | en = Bob Kerman
   |ru=Боб Керман
+
   | ru = Боб Керман
 
  }}
 
  }}
  | col3 = [[File:Bob Kerman.gif]]
+
  | col3 = {{Kerbal|bob|align=none|size=150px|link=yes}}
 +
| col3footer = {{if lang link|Scientist}}
  
 
  | col4header = {{if lang link|Valentina Kerman
 
  | col4header = {{if lang link|Valentina Kerman
   |en=Valentina Kerman
+
   | en = Valentina Kerman
   |ru=Валентина Керман
+
   | ru = Валентина Керман
 
  }}
 
  }}
  | col4 = [[File:Image needed.svg]]
+
  | col4 = {{Kerbal|valentina|align=none|size=150px|link=yes}}
 +
| col4footer = {{if lang link|Pilot}}
  
 
}}
 
}}
  
 +
| abbr2 = ksc
 +
| state2 = <includeonly>collapsed</includeonly>
 +
| group2 = {{if lang link|Kerbal Space Center
 +
  | en = Kerbal Space Center Staff
 +
}}
 
| list2 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
 
| list2 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
  | state = {{#ifeq:{{{selected|{{{1|}}}}}}|ksc|uncollapsed|{{{state2|<includeonly>collapsed</includeonly>}}}}}
+
  | colheaderstyle  = {{Navbox style{{\sandbox}}|color=green|child|above}} padding: 0.25em;
  | title = [[KSC{{if lang}}|KSC]] {{lang
+
| colstyle        = text-align: center;
  | en = Staff
+
  | colfooterstyle  = {{Navbox style{{\sandbox}}|color=green|child|below}} padding: 0.25em; font-weight: normal;
}}
+
  | colwidth = 16.67%  <!-- 100/6, for 6 columns -->
  | colwidth = 14.3%  <!-- 100/7, for 7 columns -->
 
| colstyle = text-align:center;
 
  
 
  | col1header = {{if lang link|Wernher von Kerman
 
  | col1header = {{if lang link|Wernher von Kerman
   |en=Wernher von Kerman
+
   | en = Wernher von Kerman
   |ru=Вернер фон Керман
+
   | ru = Вернер фон Керман
 +
}}
 +
| col1 = {{Kerbal|wernher|align=none|size=120px|link=yes}}
 +
| col1footer = {{if lang link
 +
  | en = Research and Development
 
  }}
 
  }}
| col1 = [[File:Wernher_von_Kerman_portrait.01.png|120px]]
 
  
 
  | col2header = {{if lang link|Gene Kerman
 
  | col2header = {{if lang link|Gene Kerman
   |en=Gene Kerman
+
   | en = Gene Kerman
   |ru=Джин Керман
+
   | ru = Джин Керман
 
  }}
 
  }}
  | col2 = [[File:Gene_Kerman_in-editor.png|120px]]
+
  | col2 = {{Kerbal|gene|align=none|size=120px|link=yes}}
 
+
  | col2footer = {{if lang link
  | col3header = {{if lang link|Bobak Kerman
+
   | en = Mission Control
   |en=Bobak Kerman
 
  |ru=Бобак Керман
 
 
  }}
 
  }}
| col3 = [[File:Bobak Kerman portrait.01.png|120px]]
 
  
  | col4header = {{if lang link|Mortimer Kerman
+
  | col3header = {{if lang link|Mortimer Kerman
   |en=Mortimer Kerman
+
   | en = Mortimer Kerman
   |ru=Мортимер Керман
+
   | ru = Мортимер Керман
 
  }}
 
  }}
  | col4 = [[File:Mortimer_Kerman_portrait.01.png|120px]]
+
  | col3 = {{Kerbal|mortimer|align=none|size=120px|link=yes}}
 +
| col3footer = [[Strategies{{if lang}}#Finances|{{lang
 +
  | en = Finances
 +
}}]]
  
  | col5header = {{if lang link|Linus Kerman
+
  | col4header = {{if lang link|Linus Kerman
   |en=Linus Kerman
+
   | en = Linus Kerman
   |ru=Линус Карман
+
   | ru = Линус Карман
 
  }}
 
  }}
  | col5 = [[File:Linus_Kerman_portrait.01.png|120px]]
+
  | col4 = {{Kerbal|linus|align=none|size=120px|link=yes}}
 +
| col4footer = [[Strategies{{if lang}}#Science|{{lang
 +
  | en = Science
 +
}}]]
  
  | col6header = {{if lang link|Walt Kerman
+
  | col5header = {{if lang link|Walt Kerman
   |en=Walt Kerman
+
   | en = Walt Kerman
   |ru=Уолт Керман
+
   | ru = Уолт Керман
 
  }}
 
  }}
  | col6 = [[File:Walt_Kerman_portrait.01.png|120px]]
+
  | col5 = {{Kerbal|walt|align=none|size=120px|link=yes}}
 +
| col5footer = [[Strategies{{if lang}}#Public Relations|{{lang
 +
  | en = Public Relations
 +
}}]]
  
  | col7header = {{if lang link|Gus Kerman
+
  | col6header = {{if lang link|Gus Kerman
   |en=Gus Kerman
+
   | en = Gus Kerman
   |ru=Гас Керман
+
   | ru = Гас Керман
 
  }}
 
  }}
  | col7 = [[File:Gus_Kerman_portrait.01.png|120px]]
+
  | col6 = {{Kerbal|gus|align=none|size=120px|link=yes}}
 +
| col6footer = [[Strategies{{if lang}}#Operations|{{lang
 +
  | en = Operations
 +
}}]]
  
 
}}
 
}}
  
| list3 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
+
| abbr3 = others
| state = {{#ifeq:{{{selected|{{{1|}}}}}}|other|uncollapsed|{{{state3|<includeonly>collapsed</includeonly>}}}}}
+
| state3 = <includeonly>collapsed</includeonly>
| title = {{lang
+
| group3 = {{lang
 
   | en = Others
 
   | en = Others
 
  }}
 
  }}
  | colwidth = 20%
+
| list3style = {{Navbox style{{\sandbox}}|color=green|child|above}} padding: 0.25em;
  | colstyle = text-align:center;
+
| 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
 +
  }}
 +
 
 +
<!-- Navbox will just ignore "not-list3", so it's really just a comment,
 +
    but holds the full version with broken images -->
 +
| not-list3 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
 +
| colheaderstyle  = {{Navbox style{{\sandbox}}|color=green|child|above}} padding: 0.25em;
 +
  | colstyle       = text-align: center;
 +
| colfooterstyle  = {{Navbox style{{\sandbox}}|color=green|child|below}} padding: 0.25em; font-weight: normal;
 +
| colwidth = 16.67%  <!-- 100/6, for 6 columns -->
  
  | col1header = {{if lang link|Dinkelstein Kerman
+
  | col1header = {{if lang link|Bobak Kerman
   |en=Dinkelstein Kerman
+
   | en = Bobak Kerman
   |ru=Динкельштейн Карман
+
   | ru = Бобак Керман
 
  }}
 
  }}
  | col1 = [[File:Image_needed.svg|120px]]
+
  | col1 = {{Kerbal|bobak|align=none|size=120px|link=yes}}
  
 
  | col2header = {{if lang link|Dawton Kerman
 
  | col2header = {{if lang link|Dawton Kerman
   |en=Dawton Kerman
+
   | en = Dawton Kerman
   |ru=Дьютон Карман
+
   | ru = Дьютон Карман
 +
}}
 +
| col2 = {{Kerbal|dawton|align=none|size=120px|link=yes}}
 +
 
 +
| col3header = {{if lang link|Dinkelstein Kerman
 +
  | en = Dinkelstein Kerman
 +
  | ru = Динкельштейн Карман
 
  }}
 
  }}
  | col2 = [[File:Image_needed.svg|120px]]
+
  | col3 = {{Kerbal|dinkelstein|align=none|size=120px|link=yes}}
  
  | col3header = {{if lang link|Eumon Kerman
+
  | col4header = {{if lang link|Eumon Kerman
   |en=Eumon Kerman
+
   | en = Eumon Kerman
   |ru=Эмон Карман
+
   | ru = Эмон Карман
 
  }}
 
  }}
  | col3 = [[File:Image_needed.svg|120px]]
+
  | col4 = {{Kerbal|eumon|align=none|size=120px|link=yes}}
  
  | col4header = {{if lang link|Kirrim Kerman
+
  | col5header = {{if lang link|Kirrim Kerman
   |en=Kirrim Kerman
+
   | en = Kirrim Kerman
   |ru=Киррим Карман
+
   | ru = Киррим Карман
 
  }}
 
  }}
  | col4 = [[File:Kirrim_Kerman_portrait.01.png|120px]]
+
  | col5 = {{Kerbal|kirrim|align=none|size=120px|link=yes}}
  
  | col5header = {{if lang link|Kurt Kerman
+
  | col6header = {{if lang link|Kurt Kerman
   |en=Kurt Kerman
+
   | en = Kurt Kerman
 
  }}
 
  }}
  | col5 = [[File:Image_needed.svg|120px]]
+
  | col6 = {{Kerbal|kurt|align=none|size=120px|link=yes}}
  
 
}}
 
}}
  
}}
+
}}<noinclude>
 +
{{Documentation}}
 +
<!-- Add categories to the /doc subpage, not here! -->
 +
</noinclude>

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