Difference between revisions of "Template:Kerbals/sandbox"
From Kerbal Space Program Wiki
(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|}}}}}} | + | | 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}} | ||
− | | | + | | abbr1 = kerbonauts |
− | + | | state1 = <noinclude>uncollapsed</noinclude> | |
− | + | | 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 | |
− | |||
− | |||
− | |||
− | |||
− | |||
| 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: | ||
}} | }} | ||
− | | | + | | abbr2 = ksc |
− | + | | state2 = <noinclude>uncollapsed</noinclude> | |
− | + | | 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 | |
− | |||
− | |||
− | |||
− | |||
− | |||
| 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: | ||
}} | }} | ||
− | | | + | | abbr3 = others |
− | + | | state3 = <noinclude>uncollapsed</noinclude> | |
− | + | | group3 = {{lang | |
| en = Others | | en = Others | ||
}} | }} | ||
− | + | | list3 = {{Navbox with columns{{#ifeq:{{{navbox}}}|sandbox|/sandbox|{{\sandbox}}}}|child | |
− | |||
− | |||
− | |||
− | |||
− | |||
| 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
|
This is the template sandbox page for Template:Kerbals (diff). See also the companion subpage for test cases. |
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
|
The above documentation is transcluded from Template:Kerbals/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |