Difference between revisions of "Template:Canon EF Mount zoom lenses timeline"

From blackwiki
Jump to navigation Jump to search
imported>GodeNehler
(+2020)
imported>Pauli133
(switching legend from spans to {{legend inline}} - looks cleaner, easier to read, fewer lint errors.)
Line 382: Line 382:
 
|colspan="2"| 20
 
|colspan="2"| 20
 
|}
 
|}
<center><span style="background:#a0e0a0">'''[[Canon_EF_lens_mount#Diffractive_optics|DO]]''' lenses</span> <span style="background:#F75D59">'''[[Canon L lens|L]]''' lenses</span> <span style="background:#EDDA74">'''[[Ultrasonic_motor|USM]]''' lenses</span> <span style="background:#B3B7FF">'''[[Stepper motor|STM]]''' lenses</span></center>
+
{{legend inline|#a0e0a0|'''[[Canon_EF_lens_mount#Diffractive_optics|DO]]''' lenses}}
 +
{{legend inline|#F75D59|'''[[Canon L lens|L]]''' lenses}}
 +
{{legend inline|#EDDA74|'''[[Ultrasonic_motor|USM]]''' lenses}}
 +
{{legend inline|#B3B7FF|'''[[Stepper motor|STM]]''' lenses}}
 
|}<noinclude>
 
|}<noinclude>
 
{{Collapsible option}}
 
{{Collapsible option}}
 
[[Category:Lens templates]]
 
[[Category:Lens templates]]
 
</noinclude>
 
</noinclude>

Revision as of 15:21, 20 January 2020

Initial visibility: currently defaults to autocollapse

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

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