Difference between revisions of "Template:Apple hardware"

From blackwiki
Jump to navigation Jump to search
(redundant)
blackwiki>Frietjes
m
Line 2: Line 2:
 
| name          = Apple Inc. hardware
 
| name          = Apple Inc. hardware
 
| title        = [[Apple Inc.|Apple]] hardware
 
| title        = [[Apple Inc.|Apple]] hardware
| state        = {{{state|expand}}}
+
| state        = {{{state|uncollapsed}}}
 
| titlestyle    = background: #eee;
 
| titlestyle    = background: #eee;
 
| evenodd      = swap
 
| evenodd      = swap
 
| groupstyle    = background: #f7f7f7; text-align: right; vertical-align: text-top;
 
| groupstyle    = background: #f7f7f7; text-align: right; vertical-align: text-top;
| listclass     = hlist
+
| bodyclass     = hlist
  
 
| above        =
 
| above        =
  
 
| group1        = [[Macintosh|Mac]]
 
| group1        = [[Macintosh|Mac]]
| list1        = {{Navbox subgroup
+
| list1        = {{Navbox|child
 
| groupstyle    = background: #f7f7f7; text-align: right; vertical-align: text-top;
 
| groupstyle    = background: #f7f7f7; text-align: right; vertical-align: text-top;
 
| belowstyle    = background: #eee;
 
| belowstyle    = background: #eee;
Line 17: Line 17:
  
 
   | group1      = [[Desktop computer|Desktop]]
 
   | group1      = [[Desktop computer|Desktop]]
   | list1      = {{Navbox subgroup
+
   | list1      = {{Navbox|child
 
   | groupstyle  = background:#f7f7f7;
 
   | groupstyle  = background:#f7f7f7;
  
Line 50: Line 50:
  
 
   | group2      = [[Laptop|Laptop]]
 
   | group2      = [[Laptop|Laptop]]
   | list2      = {{Navbox subgroup
+
   | list2      = {{Navbox|child
 
   | groupstyle  = background:#f7f7f7;
 
   | groupstyle  = background:#f7f7f7;
  
Line 69: Line 69:
  
 
   | group3      = [[Server computer|Server]]
 
   | group3      = [[Server computer|Server]]
   | list3      = {{Navbox subgroup
+
   | list3      = {{Navbox|child
 
   | groupstyle  = background:#f7f7f7;
 
   | groupstyle  = background:#f7f7f7;
  
Line 91: Line 91:
 
   | group2style = background: #fdfdfd;
 
   | group2style = background: #fdfdfd;
 
   | group2      = Devices
 
   | group2      = Devices
   | list2      = {{Navbox subgroup
+
   | list2      = {{Navbox|child
 
   | groupstyle  = width:13.9em; background:#f7f7f7;
 
   | groupstyle  = width:13.9em; background:#f7f7f7;
 
   | liststyle  = width:auto;
 
   | liststyle  = width:auto;
Line 126: Line 126:
  
 
   | group3      = [[:Category:Apple Inc. peripherals|Accessories]]
 
   | group3      = [[:Category:Apple Inc. peripherals|Accessories]]
   | list3      = {{Navbox subgroup
+
   | list3      = {{Navbox|child
 
   | groupstyle  = width:13.9em; background:#f7f7f7;
 
   | groupstyle  = width:13.9em; background:#f7f7f7;
 
   | liststyle  = width:auto;
 
   | liststyle  = width:auto;
Line 153: Line 153:
 
}}
 
}}
  
| belowclass    = hlist
+
| belowstyle = background: #eee;
| belowstyle   = background: #eee;
+
| below     =
| below         =
 
 
*[[Comparison of Macintosh models]]
 
*[[Comparison of Macintosh models]]
 
*[[List of products discontinued by Apple Inc.|List of discontinued products]]
 
*[[List of products discontinued by Apple Inc.|List of discontinued products]]
Line 166: Line 165:
 
{{Documentation|Template:Apple/doc}}
 
{{Documentation|Template:Apple/doc}}
  
[[Category:Apple Inc.-related templates|{{PAGENAME}}]]
+
[[Category:Apple Inc.-related templates]]
[[Category:Computer hardware templates|{{PAGENAME}}]]
+
[[Category:Computer hardware templates]]
 
</noinclude>
 
</noinclude>

Revision as of 00:24, 11 February 2012

Template documentation[view] [edit] [history] [purge]

Initial visibility: currently defaults to autocollapse

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

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

Related templates

Non-navbox or sidebar templates

Note, the |state= parameter and "autocollapse" functionality can't be used with these templates