Difference between revisions of "Template:Incheon Subway"

From blackwiki
Jump to navigation Jump to search
imported>Cuchullain
m
imported>Kanghuitari
Line 3: Line 3:
 
| title      = [[Incheon Subway|<span style="color:#ffffff">Incheon Subway</span>]]
 
| title      = [[Incheon Subway|<span style="color:#ffffff">Incheon Subway</span>]]
 
| titlestyle = background:#447FC1; color:#ffffff;
 
| titlestyle = background:#447FC1; color:#ffffff;
| state      = {{{state<includeonly>|collapsed</includeonly>}}}
+
| state      = {{{state<includeonly>|expanded</includeonly>}}}
 
| listclass  = hlist
 
| listclass  = hlist
  
| abovestyle = background:#8CADCB; color:#ffffff; font-weight: bold;
+
| list1        = {{#if:{{{line1<includeonly>|</includeonly>}}}|{{Navbox | child
| above      = [[Incheon Subway Line 1|<span style="color:#ffffff">Incheon Subway Line 1</span>]]
+
| title      = [[Incheon Subway Line 1|<span style="color:#ffffff">Line 1</span>]]
 
+
| state      = uncollapsed
| list1 =
+
| titlestyle  = background:#{{SMS color|I1}}; color:#ffffff;
 +
| list1       =
 
* [[Gyeyang Station|Gyeyang]]
 
* [[Gyeyang Station|Gyeyang]]
 
* [[Gyulhyeon Station|Gyulhyeon]]
 
* [[Gyulhyeon Station|Gyulhyeon]]
Line 39: Line 40:
 
* [[Central Park Station (Incheon)|Central Park]]
 
* [[Central Park Station (Incheon)|Central Park]]
 
* [[International Business District Station|Int'l Business District]]
 
* [[International Business District Station|Int'l Business District]]
 
+
}} }}
 +
| list2        = {{#if:{{{line2<includeonly>|</includeonly>}}}|{{Navbox | child
 +
| title      = [[Incheon Subway Line 2|<span style="color:#ffffff">Line 2</span>]]
 +
| state      = uncollapsed
 +
| titlestyle  = background:#{{SMS color|I2}}; color:#ffffff;
 +
| list1     
 +
}} }}
 
| belowclass = hlist
 
| belowclass = hlist
 
| below      =  
 
| below      =  
* [[Incheon Subway Line 2]]
 
 
* [[Incheon Subway Line 3]]
 
* [[Incheon Subway Line 3]]
 
}}<noinclude>
 
}}<noinclude>

Revision as of 05:17, 8 August 2016

Initial visibility: currently defaults to autocollapse

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

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