Difference between revisions of "Template:American League"

From blackwiki
Jump to navigation Jump to search
blackwiki>WOSlinker
(tag fix)
blackwiki>Charlesaaronthompson
(I updated the HTML formatting in the template.)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
 
| name = American League
 
| name = American League
| title = [[American League|<span style="color:#FFFFFF;">American League</span>]]
+
| title = {{Baseball primary link|American League|American League|American League}}
 
| state = {{{state|autocollapse}}}
 
| state = {{{state|autocollapse}}}
 
| listclass = hlist
 
| listclass = hlist
  
| basestyle = background:#CC0000; color:#FFFFFF; {{box-shadow border|a|#000088|2px}}
+
| basestyle = {{Baseball primary style|American League|border=2}};
  
 
| group1 = Organization
 
| group1 = Organization
Line 17: Line 17:
 
| group2 = Current teams
 
| group2 = Current teams
 
| list2 = {{Navbox|subgroup
 
| list2 = {{Navbox|subgroup
| basestyle = background:#FFFFFF; {{box-shadow border|a|#CC0000|2px}}
+
| basestyle = {{Baseball primary style|American League|border=2}};
  | group1 = [[American League East|East]]
+
  | group1 = {{Baseball primary link|American League|American League East|East}}
 
  | list1 =
 
  | list1 =
 
* [[Baltimore Orioles]]
 
* [[Baltimore Orioles]]
Line 25: Line 25:
 
* [[Tampa Bay Rays]]
 
* [[Tampa Bay Rays]]
 
* [[Toronto Blue Jays]]
 
* [[Toronto Blue Jays]]
  | group2 = [[American League Central|Central]]
+
  | group2 = {{Baseball primary link|American League|American League Central|Central}}
 
  | list2 =
 
  | list2 =
 
* [[Chicago White Sox]]
 
* [[Chicago White Sox]]
Line 32: Line 32:
 
* [[Kansas City Royals]]
 
* [[Kansas City Royals]]
 
* [[Minnesota Twins]]
 
* [[Minnesota Twins]]
  | group3 = [[American League West|West]]
+
  | group3 = {{Baseball primary link|American League|American League West|West}}
 
  | list3 =
 
  | list3 =
 
* [[Houston Astros]]
 
* [[Houston Astros]]

Revision as of 22:18, 21 February 2018

Initial visibility: currently defaults to autocollapse

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

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