Difference between revisions of "Template:Apple hardware"

From blackwiki
Jump to navigation Jump to search
blackwiki>KamranMackey
(Stopped using small text for the Accessories group unless necessary. Small text for subgroups and product group names made that section look odd compared to the other sections.)
blackwiki>KamranMackey
(Surrounded 12 / 12 Mini & 12 Pro / 12 Pro Max products with italics, as they are currently unreleased.)
Line 245: Line 245:
 
** <small>[[iPhone 11|11]]</small>
 
** <small>[[iPhone 11|11]]</small>
 
** <small>[[iPhone 11 Pro|11 Pro / 11 Pro Max]]</small>
 
** <small>[[iPhone 11 Pro|11 Pro / 11 Pro Max]]</small>
** <small>[[iPhone 12|12 / 12 Mini]]</small>
+
** <small>''[[iPhone 12|12 / 12 Mini]]''</small>
** <small>[[iPhone 12 Pro|12 Pro / 12 Pro Max]]</small>
+
** <small>''[[iPhone 12 Pro|12 Pro / 12 Pro Max]]''</small>
 
* [[iPod]]
 
* [[iPod]]
 
** <small>[[iPod Classic|Classic]]</small>
 
** <small>[[iPod Classic|Classic]]</small>
Line 300: Line 300:
 
}}
 
}}
 
}}
 
}}
 +
 
| group4    = [[:Category:Apple Inc. peripherals|Accessories]]
 
| group4    = [[:Category:Apple Inc. peripherals|Accessories]]
 
| list4    = {{ navbox|child
 
| list4    = {{ navbox|child
Line 411: Line 412:
 
   }}
 
   }}
 
   }}
 
   }}
 +
 
| group5    = [[Apple-designed processors|Processors]]
 
| group5    = [[Apple-designed processors|Processors]]
 
| list5    = {{ navbox|child
 
| list5    = {{ navbox|child

Revision as of 10:02, 17 October 2020

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