Difference between revisions of "Template:High-speed rail"

From blackwiki
Jump to navigation Jump to search
imported>Bddb028
m (Class 800)
imported>Funandtrvl
(fix code)
Line 2: Line 2:
 
| name    = High-speed rail
 
| name    = High-speed rail
 
| title  = [[High-speed rail]]
 
| title  = [[High-speed rail]]
| state  = collapsed  
+
| state  = {{{state<includeonly>|collapsed</includeonly>}}}
|listclass = hlist
+
| bodyclass = hlist
| above  = Part of [[Rail transport]]
+
| above  = Part of [[rail transport]]
  
 
|group1 = [[High-speed rail#Technologies|Technologies]]
 
|group1 = [[High-speed rail#Technologies|Technologies]]
Line 13: Line 13:
 
* [[Vactrain]]
 
* [[Vactrain]]
  
| group2 = [[List of high-speed trains|High-speed trains]] <br>([[:Category:High-speed trains|category]])
+
| group2 = [[List of high-speed trains|High-speed trains]]
 
| groupstyle = text-align:left; width:20em;
 
| groupstyle = text-align:left; width:20em;
 
| list2  = {{Navbox subgroup
 
| list2  = {{Navbox subgroup
Line 89: Line 89:
 
}}
 
}}
  
| group3 = [[High-speed railway line]] <br>([[:Category:High-speed railway lines by country|category]])
+
| group3 = [[High-speed railway line]]
 
| list3 =  
 
| list3 =  
 
*[[List of high-speed railway lines]]
 
*[[List of high-speed railway lines]]
  
| group4 = [[High-speed rail by country|By country]] <br /><br><small>''planned networks in italics''</small>
+
| group4 = By country<br /><br><small>''planned networks in italics''</small>
 
| list4 = {{Navbox subgroup|evenodd=swap
 
| list4 = {{Navbox subgroup|evenodd=swap
 
| groupstyle = text-align:left; background-color:#eee;
 
| groupstyle = text-align:left; background-color:#eee;
Line 166: Line 166:
 
}}<noinclude>
 
}}<noinclude>
 
{{collapsible option}}
 
{{collapsible option}}
 +
[[Category:High-speed rail templates| ]]
 
[[Category:Rail transport navigational boxes]]
 
[[Category:Rail transport navigational boxes]]
 
</noinclude>
 
</noinclude>

Revision as of 01:00, 21 July 2017

Initial visibility: currently defaults to autocollapse

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

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