Vorlage:Ambox/Doku: Unterschied zwischen den Versionen
→Parameters: tweak wording/formatting of image parameter section
imported>Eubulides K ("Image:File:" → "Image:") |
imported>Anakin101 (→Parameters: tweak wording/formatting of image parameter section) |
||
Zeile 148: | Zeile 148: | ||
'''image''' | '''image''' | ||
:'''No parameter''' = If no '''image''' parameter is given the template uses a default image. Which default image it uses depends on the '''type''' parameter. | :'''No parameter''' = If no '''image''' parameter is given the template uses a default image. Which default image it uses depends on the '''type''' parameter. | ||
:'''An image''' = Should be an image with usual wiki notation. 40px - 50px | :'''An image''' = Should be an image with usual wiki notation. Widths of 40px - 50px are usually about right. (Images over 52 pixels wide will cause padding problems.) | ||
::<code><nowiki>image = [[Image:Unbalanced scales.svg|40px|link=|alt=]]</nowiki></code> | :: Often an icon is [[Wikipedia:Alternative text for images #Purely decorative images|purely decorative]] in the W3C sense that it repeats the text. In order to improve [[Wikipedia:Accessibility|accessibility]], it is desirable to not have it be announced by [[screen reader]]s, as well as to avoid it linking to an irrelevant page. If (and only if) the image license allows this, it can be marked with "{{para|link}}{{para|alt}}". For example: | ||
: Conversely, an icon that does not use "{{para|link}}{{para|alt}}", and which therefore is announced to visually impaired readers, should use an "{{para|alt|<var>[[Wikipedia:Alternative text for images|alt text]]</var>}}" parameter that describes the icon. With no {{para|link}} parameter, the alt text should describe the icon's visual appearance. For example: | :::<code><nowiki>image = [[Image:Unbalanced scales.svg|40px|link=|alt=]]</nowiki></code> | ||
::<code><nowiki>image = [[Image:Gnome globe current event.svg|40px|alt=Clock over a larger globe]]</nowiki></code> | :: Conversely, an icon that does not use "{{para|link}}{{para|alt}}", and which therefore is announced to visually impaired readers, should use an "{{para|alt|<var>[[Wikipedia:Alternative text for images|alt text]]</var>}}" parameter that describes the icon. With no {{para|link}} parameter (using the default link), the alt text should describe the icon's visual appearance. For example: | ||
: With a nonempty "{{para|link|<var>Page</var>}}" the alt text should describe the icon's function. For example: | :::<code><nowiki>image = [[Image:Gnome globe current event.svg|40px|alt=Clock over a larger globe]]</nowiki></code> | ||
::<code><nowiki>image = [[Image:Purple question mark.svg|40px|link=Special:Random|alt=Random article]]</nowiki></code> | :: With a nonempty "{{para|link|<var>Page</var>}}" the alt text should describe the icon's function. For example: | ||
: An icon whose license requires | :::<code><nowiki>image = [[Image:Purple question mark.svg|40px|link=Special:Random|alt=Random article]]</nowiki></code> | ||
:: An icon whose license requires attribution may have alt text, but ''must keep the default link''. Although public domain images do not require a link, many licenses do require one. Please see ''[[Wikipedia:Alternative text for images #Purely decorative images|Purely decorative images]]'' for more information about licensing. | |||
:'''none''' = Means that no image is used. | :'''none''' = Means that no image is used. | ||
:<s>'''blank'''</s> = This parameter is now deprecated. If you see it in use, change it to "image=none". | :<s>'''blank'''</s> = This parameter is now deprecated. If you see it in use, change it to "image=none". |