Difference between revisions of "Template:Kerbals"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Switch over to new {{Navbox}} version.)
Line 1: Line 1:
<includeonly>{{#switch: {{{1|all}}}
+
{{Navbox{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
|all={{User:Mowaw/kerbal/all}}
+
| name = Kerbals{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}
|kerbonauts={{User:Mowaw/kerbal/kerbonaut}}
+
| state = {{{state|}}}
|work ksc={{User:Mowaw/kerbal/ksc}}
+
| title = {{if lang link|Kerbal
|ksc={{User:Mowaw/kerbal/ksc}}
+
| en = Famous Kerbals
}}</includeonly><noinclude>
+
| en = Famous Kerbals
A floating box which lists Famous [[Kerbals]].
+
| fr = Kerbals célèbres
 +
| es = Kerbals famosos
 +
| de = Berühmte Kerbals
 +
| ru = Известные Кербалы
 +
| hu = Híres Kerbálok
 +
}}
 +
| selected = {{{selected|{{{1|}}}}}} <!-- For {{Navbox with collapsible groups}}, ignored by {{Navbox}} -->
  
The list of types of boxes:
+
| bodystyle      = {{Navbox style/sandbox|color=green|body}}
*<tt>all</tt> contains Jeb, Bill, Bob, Wernher, Gene, Dinkelstein, Dawton, Eumon, Bobak and Kirrim Kerman.
+
| innerstyle      = {{Navbox style/sandbox|color=green|inner}}
*<tt>kerbonauts</tt> contains only Jeb, Bill, Bob and Kirrim Kerman.
+
| titlestyle      = {{Navbox style/sandbox|color=green|title}}
*<tt>ksc</tt> contains only Wernher, Gene and Bobak Kerman.
+
| abovestyle      = {{Navbox style/sandbox|color=green|above}}
 +
| belowstyle      = {{Navbox style/sandbox|color=green|below}}
 +
| groupstyle      = {{Navbox style/sandbox|color=green|group}}
 +
| liststyle      = {{Navbox style/sandbox|color=green|list}}
 +
| evenstyle      = {{Navbox style/sandbox|color=green|even}}
 +
| oddstyle        = {{Navbox style/sandbox|color=green|odd}}
 +
| navbarstyle    = {{Navbox style/sandbox|color=green|navbar}}
 +
| navbarfontstyle = {{Navbox style/sandbox|color=green|navbarfont}}
  
== Usage ==
+
| list1 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
For using one of the types, write in the editor:<br/>
+
| state = {{#ifeq:{{{selected|{{{1|}}}}}}|kerbonauts|uncollapsed|{{{state1|<includeonly>collapsed</includeonly>}}}}}
<tt><nowiki>{{kerbals|</nowiki>''type''<nowiki>}}</nowiki></tt>
+
| title = {{if lang link|Kerbonaut
 +
  | en = Kerbonauts
 +
}}
 +
 
 +
| bodystyle      = {{Navbox style/sandbox|color=green|child|body}}
 +
| 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}}
 +
| liststyle      = {{Navbox style/sandbox|color=green|child|list}}
 +
| evenstyle      = {{Navbox style/sandbox|color=green|child|even}}
 +
| oddstyle        = {{Navbox style/sandbox|color=green|child|odd}}
 +
 
 +
| colwidth = 25%
 +
| colheaderstyle = {{Navbox style/sandbox|color=green|child|group}} text-align: center;
 +
| colstyle = text-align: center;
 +
 
 +
| col1header = {{if lang link|Jebediah Kerman
 +
  |en=Jebediah Kerman
 +
  |ru=Джебедайя Карман
 +
}}
 +
| col1 = {{Kerbal|jebediah|150px|link=yes}}
 +
 
 +
| col2header = {{if lang link|Bill Kerman
 +
  |en=Bill Kerman
 +
  |ru=Билл Карман
 +
}}
 +
| col2 = {{Kerbal|bill|150px|link=yes}}
 +
 
 +
| col3header = {{if lang link|Bob Kerman
 +
  |en=Bob Kerman
 +
  |ru=Боб Керман
 +
}}
 +
| col3 = {{Kerbal|bob|150px|link=yes}}
 +
 
 +
| col4header = {{if lang link|Valentina Kerman
 +
  |en=Valentina Kerman
 +
  |ru=Валентина Керман
 +
}}
 +
| col4 = {{Kerbal|valentina|120px|link=yes}}
 +
 
 +
}}
 +
 
 +
| list2 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
 +
| state = {{#ifeq:{{{selected|{{{1|}}}}}}|ksc|uncollapsed|{{{state2|<includeonly>collapsed</includeonly>}}}}}
 +
| title = {{if lang link|KSC
 +
  | en = KSC Staff
 +
}}
 +
 
 +
| bodystyle      = {{Navbox style/sandbox|color=green|child|body}}
 +
| 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}}
 +
| liststyle      = {{Navbox style/sandbox|color=green|child|list}}
 +
| evenstyle      = {{Navbox style/sandbox|color=green|child|even}}
 +
| oddstyle        = {{Navbox style/sandbox|color=green|child|odd}}
 +
 
 +
| colwidth = 16.67%  <!-- 100/6, for 6 columns -->
 +
| colheaderstyle = {{Navbox style/sandbox|color=green|child|group}} text-align: center; padding-left: 0.25em; padding-right: 0.25em;
 +
| colstyle = text-align: center;
 +
 
 +
| col1header = {{if lang link|Wernher von Kerman
 +
  |en=Wernher von Kerman
 +
  |ru=Вернер фон Керман
 +
}}
 +
| col1 = {{Kerbal|wernher|122px|link=yes}}
 +
 
 +
| col2header = {{if lang link|Gene Kerman
 +
  |en=Gene Kerman
 +
  |ru=Джин Керман
 +
}}
 +
| col2 = {{Kerbal|gene|120px|link=yes}}
 +
 
 +
| col3header = {{if lang link|Mortimer Kerman
 +
  |en=Mortimer Kerman
 +
  |ru=Мортимер Керман
 +
}}
 +
| col3 = {{Kerbal|mortimer|120px|link=yes}}
 +
 
 +
| col4header = {{if lang link|Linus Kerman
 +
  |en=Linus Kerman
 +
  |ru=Линус Карман
 +
}}
 +
| col4 = {{Kerbal|linus|120px|link=yes}}
 +
 
 +
| col5header = {{if lang link|Walt Kerman
 +
  |en=Walt Kerman
 +
  |ru=Уолт Керман
 +
}}
 +
| col5 = {{Kerbal|walt|120px|link=yes}}
 +
 
 +
| col6header = {{if lang link|Gus Kerman
 +
  |en=Gus Kerman
 +
  |ru=Гас Керман
 +
}}
 +
| col6 = {{Kerbal|gus|120px|link=yes}}
 +
 
 +
}}
 +
 
 +
| list3 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child
 +
| state = {{#ifeq:{{{selected|{{{1|}}}}}}|others|uncollapsed|{{{state3|<includeonly>collapsed</includeonly>}}}}}
 +
| title = {{lang
 +
  | en = Others
 +
}}
 +
 
 +
| bodystyle      = {{Navbox style/sandbox|color=green|child|body}}
 +
| 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}}
 +
| liststyle      = {{Navbox style/sandbox|color=green|child|list}}
 +
| evenstyle      = {{Navbox style/sandbox|color=green|child|even}}
 +
| oddstyle        = {{Navbox style/sandbox|color=green|child|odd}}
 +
 
 +
| colwidth = 16.67%  <!-- 100/6, for 6 columns -->
 +
| colheaderstyle = {{Navbox style/sandbox|color=green|child|group}} text-align: center; padding-left: 0.25em; padding-right: 0.25em;
 +
| colstyle = text-align: center;
 +
 
 +
| col1header = {{if lang link|Bobak Kerman
 +
  |en=Bobak Kerman
 +
  |ru=Бобак Керман
 +
}}
 +
| col1 = {{Kerbal|bobak|120px|link=yes}}
 +
 
 +
| col2header = {{if lang link|Dawton Kerman
 +
  |en=Dawton Kerman
 +
  |ru=Дьютон Карман
 +
}}
 +
| col2 = {{Kerbal|dawton|120px|link=yes}}
 +
 
 +
| col3header = {{if lang link|Dinkelstein Kerman
 +
  |en=Dinkelstein Kerman
 +
  |ru=Динкельштейн Карман
 +
}}
 +
| col3 = {{Kerbal|dinkelstein|120px|link=yes}}
 +
 
 +
| col4header = {{if lang link|Eumon Kerman
 +
  |en=Eumon Kerman
 +
  |ru=Эмон Карман
 +
}}
 +
| col4 = {{Kerbal|eumon|120px|link=yes}}
 +
 
 +
| col5header = {{if lang link|Kirrim Kerman
 +
  |en=Kirrim Kerman
 +
  |ru=Киррим Карман
 +
}}
 +
| col5 = {{Kerbal|kirrim|120px|link=yes}}
 +
 
 +
| col6header = {{if lang link|Kurt Kerman
 +
  |en=Kurt Kerman
 +
}}
 +
| col6 = {{Kerbal|kurt|120px|link=yes}}
 +
 
 +
}}
 +
 
 +
}}<noinclude>
 +
{{Documentation}}
 +
<!-- Add categories to the /doc subpage, not here! -->
 +
</noinclude>

Revision as of 10:33, 9 June 2015

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

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 |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