Difference between revisions of "Template:Caltrain"

From blackwiki
Jump to navigation Jump to search
imported>Mjdestroyerofworlds
(linkcolor templates)
imported>Mjdestroyerofworlds
(more tempalte use)
 
Line 5: Line 5:
 
| image      = [[File:Caltrain_logo.svg|150px|alt=Logo for the Caltrain system]]
 
| image      = [[File:Caltrain_logo.svg|150px|alt=Logo for the Caltrain system]]
 
| titlestyle = color:white; background:#{{rcr|Caltrain}};
 
| titlestyle = color:white; background:#{{rcr|Caltrain}};
| groupstyle = background:#999999; color:black;
+
| groupstyle = color:black; background:#999999;  
 
| bodyclass = hlist
 
| bodyclass = hlist
  
| group1 = [[List of Caltrain stations|<span style="color:black;">Stations</span>]]
+
| group1 = {{linkcolor|black|List of Caltrain stations|Stations}}
 
| list1  =  
 
| list1  =  
 
* {{cals|22nd Street}}
 
* {{cals|22nd Street}}
Line 91: Line 91:
 
* [[California High-Speed Rail]]
 
* [[California High-Speed Rail]]
  
| belowstyle = background:#E31837;
+
| belowstyle = background:#{{rcr|Caltrain}};
 
| below = '''{{linkcolor|white|Category:Caltrain|Category}}'''
 
| below = '''{{linkcolor|white|Category:Caltrain|Category}}'''
  

Latest revision as of 02:22, 9 November 2020

Initial visibility: currently defaults to autocollapse

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

  • |state=collapsed: {{Caltrain|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Caltrain|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Caltrain|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.