Difference between revisions of "Template:Major Leagues"

From blackwiki
Jump to navigation Jump to search
imported>WikiOriginal-9
 
(55 intermediate revisions by 33 users not shown)
Line 1: Line 1:
{| class="vcard vertical-navbox" style="text-align:center; font-size:88%; background:#F9F9F9; border:1px solid #AAA; color:#000; clear:right; float:right; margin:0.5em 0 0.5em 1em; padding:0.2em; width:400px"
+
{{Navbox
| {{Collapsible list
+
|name      = Major Leagues
| title = [[Major professional sports leagues in the United States and Canada]]
+
|title     = [[Major professional sports leagues in the United States and Canada]]
| '''Four largest leagues'''
+
|state    = {{{state|autocollapse}}}
| {{spaces|3}}[[National Football League]] (NFL)
+
|listclass = hlist
| {{spaces|3}}[[Major League Baseball]] (MLB)
+
|list1    =
| {{spaces|3}}[[National Basketball Association]] (NBA)
+
* [[Canadian Football League]]
| {{spaces|3}}[[National Hockey League]] (NHL)
+
* [[Major League Baseball]]
| '''Other national leagues'''
+
* [[Major League Soccer]]
| {{spaces|3}}[[Arena Football League]] (AFL)
+
* [[National Basketball Association]]
| {{spaces|3}}[[Canadian Football League]] (CFL)
+
* [[National Football League]]
| {{spaces|3}}[[Major League Lacrosse]] (MLL)
+
* [[National Hockey League]]
| {{spaces|3}}[[Major League Soccer]] (MLS)
+
}}<noinclude>
| {{spaces|3}}[[National Lacrosse League]] (NLL)
+
{{collapsible option}}
| {{spaces|3}}[[United Football League (2009)|United Football League]] (UFL)
+
[[Category:Canada sports navigational boxes]]
}}
+
[[Category:United States sports navigational boxes]]
{{navbar|Template:Major Leagues}}
+
</noinclude>
|}<noinclude>[[Category:Sports navbox templates]]</noinclude>
 

Latest revision as of 00:42, 26 January 2018

Initial visibility: currently defaults to autocollapse

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

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