Difference between revisions of "Template:Doctor Who companions"

From blackwiki
Jump to navigation Jump to search
imported>Alex 21
(+13)
imported>Flax5
(the previous set-up sorted classic companions by medium (since there are plenty of notable non-TV ones) and new ones by type of role (since there's a clear lead/recurring/guest hierarchy) - it doesn't really make sense to mix and match these within an individual Doctor's run)
Line 24: Line 24:
 
| list1 = {{#switch:1|{{{1|1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}} = {{Navbox|subgroup
 
| list1 = {{#switch:1|{{{1|1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}} = {{Navbox|subgroup
 
| groupwidth = 9%
 
| groupwidth = 9%
| group1 = Main
+
| group1 = TV
 
| list1 =
 
| list1 =
 
* [[Susan Foreman]]
 
* [[Susan Foreman]]
Line 45: Line 45:
 
| list2 = {{#switch:2|{{{1|2}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}} = {{Navbox|subgroup
 
| list2 = {{#switch:2|{{{1|2}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}} = {{Navbox|subgroup
 
| groupwidth = 9%
 
| groupwidth = 9%
| group1 = Main
+
| group1 = TV
 
| list1 =
 
| list1 =
 
* [[Ben Jackson (Doctor Who)|Ben Jackson]]
 
* [[Ben Jackson (Doctor Who)|Ben Jackson]]
Line 61: Line 61:
 
| list3 = {{#switch:3|{{{1|3}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}} = {{Navbox|subgroup
 
| list3 = {{#switch:3|{{{1|3}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}} = {{Navbox|subgroup
 
| groupwidth = 9%
 
| groupwidth = 9%
| group1 = Main
+
| group1 = TV
 
| list1 =
 
| list1 =
 
* [[Liz Shaw]]
 
* [[Liz Shaw]]
Line 72: Line 72:
 
| list4 = {{#switch:4|{{{1|4}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}} = {{Navbox|subgroup
 
| list4 = {{#switch:4|{{{1|4}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}} = {{Navbox|subgroup
 
| groupwidth = 9%
 
| groupwidth = 9%
| group1 = Main
+
| group1 = TV
 
| list1 =
 
| list1 =
 
* [[Sarah Jane Smith]]
 
* [[Sarah Jane Smith]]
Line 93: Line 93:
 
| list5 = {{#switch:5|{{{1|5}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}} = {{Navbox|subgroup
 
| list5 = {{#switch:5|{{{1|5}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}} = {{Navbox|subgroup
 
| groupwidth = 9%
 
| groupwidth = 9%
| group1 = Main
+
| group1 = TV
 
| list1 =
 
| list1 =
 
* [[Adric]]
 
* [[Adric]]
Line 111: Line 111:
 
| list6 = {{#switch:6|{{{1|6}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}} = {{Navbox|subgroup
 
| list6 = {{#switch:6|{{{1|6}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}} = {{Navbox|subgroup
 
| groupwidth = 9%
 
| groupwidth = 9%
| group1 = Main
+
| group1 = TV
 
| list1 =
 
| list1 =
 
* [[Peri Brown]]
 
* [[Peri Brown]]
Line 134: Line 134:
 
| list7 = {{#switch:7|{{{1|7}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}} = {{Navbox|subgroup
 
| list7 = {{#switch:7|{{{1|7}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}} = {{Navbox|subgroup
 
| groupwidth = 9%
 
| groupwidth = 9%
| group1 = Main
+
| group1 = TV
 
| list1 =
 
| list1 =
 
* [[Mel Bush]]
 
* [[Mel Bush]]
Line 153: Line 153:
 
| list8 = {{#switch:8|{{{1|8}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}} = {{Navbox|subgroup
 
| list8 = {{#switch:8|{{{1|8}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}} = {{Navbox|subgroup
 
| groupwidth = 9%
 
| groupwidth = 9%
| group1 = Main
+
| group1 = TV
 
| list1 =
 
| list1 =
 
* [[Grace Holloway]]
 
* [[Grace Holloway]]

Revision as of 14:26, 29 September 2018

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Doctor Who companions|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Doctor Who companions|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Doctor Who companions|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.

Template documentation

Usage