Difference between revisions of "Template:Chicago Cubs roster navbox/doc"

From blackwiki
Jump to navigation Jump to search
imported>Anon126
(new documentation (includes content from Special:PermanentLink/602524549))
 
imported>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 8: Line 8:
 
'''Note''': When updating the template to reflect roster changes, make sure to remove or add this template to the player's article page as appropriate.
 
'''Note''': When updating the template to reflect roster changes, make sure to remove or add this template to the player's article page as appropriate.
 
{{Roster maintenance|update source=http://mlb.mlb.com/team/roster_40man.jsp?c_id=chc}}
 
{{Roster maintenance|update source=http://mlb.mlb.com/team/roster_40man.jsp?c_id=chc}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>{{Sandbox other||
 
<!-- Categories go here and interwikis go in Wikidata. -->
 
<!-- Categories go here and interwikis go in Wikidata. -->
  

Latest revision as of 04:35, 24 April 2020

Usage

Initial visibility: currently defaults to autocollapse

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

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

Note: When updating the template to reflect roster changes, make sure to remove or add this template to the player's article page as appropriate.

Transclusion maintenance
Check completeness of transclusions
Update source