Vorlage:Ambox/Doku: Unterschied zwischen den Versionen
Image: > File: (no other changes)
imported>Davidgothberg (Revert to last version by Woogee and David (me). Krinkle: Only unlink public domain images, almost all other licenses require author attribution and linking to the license, else it is copyright crime.) |
imported>Edokter (Image: > File: (no other changes)) |
||
Zeile 18: | Zeile 18: | ||
{{ambox | text = Some text.}} | {{ambox | text = Some text.}} | ||
Complex example: | Complex example: | ||
Zeile 26: | Zeile 25: | ||
| type = style | | type = style | ||
| small = left | | small = left | ||
| image = [[ | | image = [[File:Emblem-question-yellow.svg|40px|alt=Question mark]] | ||
| smallimage = [[ | | smallimage = [[File:Emblem-question-yellow.svg|20px|alt=Question mark]] | ||
| textstyle = color: red; font-weight: bold; font-style: italic; | | textstyle = color: red; font-weight: bold; font-style: italic; | ||
| text = Text for a big box, for the top of articles. | | text = Text for a big box, for the top of articles. | ||
Zeile 37: | Zeile 36: | ||
| type = style | | type = style | ||
| small = left | | small = left | ||
| image = [[ | | image = [[File:Emblem-question-yellow.svg|40px|alt=Question mark]] | ||
| smallimage = [[ | | smallimage = [[File:Emblem-question-yellow.svg|20px|alt=Question mark]] | ||
| textstyle = color: red; font-weight: bold; font-style: italic; | | textstyle = color: red; font-weight: bold; font-style: italic; | ||
| text = Text for a big box, for the top of articles. | | text = Text for a big box, for the top of articles. | ||
Zeile 85: | Zeile 84: | ||
{{ambox | {{ambox | ||
| type = content | | type = content | ||
| image = [[ | | image = [[File:Unbalanced scales.svg|40px|link=|alt=]] | ||
| text = type = content <br> image = <nowiki>[[ | | text = type = content <br> image = <nowiki>[[File:Unbalanced scales.svg|40px|link=|alt=]]</nowiki> <br> This image is often used for {{tl|POV}} and similar issues. | ||
}} | }} | ||
{{ambox | {{ambox | ||
| type = style | | type = style | ||
| image = [[ | | image = [[File:Wikitext.svg|50px|link=|alt=]] | ||
| text = type = style <br> image = <nowiki>[[ | | text = type = style <br> image = <nowiki>[[File:Wikitext.svg|50px|link=|alt=]]</nowiki> <br> This image is often used for {{tl|wikify}} etc. | ||
}} | }} | ||
{{ambox | {{ambox | ||
| type = move | | type = move | ||
| image = [[ | | image = [[File:Merge-arrows.svg|50px|link=|alt=]] | ||
| text = type = move <br> image = <nowiki>[[ | | text = type = move <br> image = <nowiki>[[File:Merge-arrows.svg|50px|link=|alt=]]</nowiki> <br> This image is used for {{tl|merge}} etc. | ||
}} | }} | ||
Zeile 112: | Zeile 111: | ||
{{ambox | {{ambox | ||
| image = [[ | | image = [[File:Gnome globe current event.svg|42px|alt=Clock over a larger globe]] | ||
| imageright = [[ | | imageright = [[File:Nuvola apps bookcase.svg|40px|alt=Three stacked books]] | ||
| text = image = <nowiki>[[ | | text = image = <nowiki>[[File:Gnome globe current event.svg|42px|alt=Clock over a larger globe]]</nowiki> <br> imageright = <nowiki>[[File:Nuvola apps bookcase.svg|40px|alt=Three stacked books]]</nowiki> | ||
}} | }} | ||
{{ambox | {{ambox | ||
| image = [[ | | image = [[File:Gnome globe current event.svg|42px|alt=Clock over a larger globe]] | ||
| imageright = [[ | | imageright = [[File:Shuttle.svg|20px|link=|alt=]] | ||
| text = '''This article or section documents a current [[spaceflight]].''' | | text = '''This article or section documents a current [[spaceflight]].''' | ||
<br>Content may change as the mission progresses. | <br>Content may change as the mission progresses. | ||
Zeile 131: | Zeile 130: | ||
{{ambox | {{ambox | ||
| type = speedy / delete / content / style / notice / move / protection | | type = speedy / delete / content / style / notice / move / protection | ||
| image = none / [[ | | image = none / [[File:...|40px|...]] | ||
| imageright = [[ | | imageright = [[File:...|40px|...]] | ||
| style = CSS values | | style = CSS values | ||
| textstyle = CSS values | | textstyle = CSS values | ||
| text = The message body text. | | text = The message body text. | ||
| small = {{{small|}}} / left | | small = {{{small|}}} / left | ||
| smallimage = none / [[ | | smallimage = none / [[File:...|20px|...]] | ||
| smallimageright = none / [[ | | smallimageright = none / [[File:...|20px|...]] | ||
| smalltext = A shorter message body text. | | smalltext = A shorter message body text. | ||
}} | }} | ||
Zeile 150: | Zeile 149: | ||
:'''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.) | :'''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.) | ||
:: Often an icon is [[Wikipedia:Alternative text for images #Purely decorative images|purely decorative]] in the W3C sense that it repeats the text. 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: | :: Often an icon is [[Wikipedia:Alternative text for images #Purely decorative images|purely decorative]] in the W3C sense that it repeats the text. 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: | ||
:::<code><nowiki>image = [[ | :::<code><nowiki>image = [[File:Unbalanced scales.svg|40px|link=|alt=]]</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: | :: 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: | ||
:::<code><nowiki>image = [[ | :::<code><nowiki>image = [[File:Gnome globe current event.svg|40px|alt=Clock over a larger globe]]</nowiki></code> | ||
:: With a nonempty "{{para|link|<var>Page</var>}}" the alt text should describe the icon's function. For example: | :: With a nonempty "{{para|link|<var>Page</var>}}" the alt text should describe the icon's function. For example: | ||
:::<code><nowiki>image = [[ | :::<code><nowiki>image = [[File: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. | :: 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. | ||
Zeile 162: | Zeile 161: | ||
:'''No parameter''' = If no '''imageright''' parameter is given then no image is shown on the right side. | :'''No parameter''' = If no '''imageright''' parameter is given then no image is shown on the right side. | ||
:'''An image''' = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (Images over 52 pixels width will cause padding problems.) For example: | :'''An image''' = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (Images over 52 pixels width will cause padding problems.) For example: | ||
::<code><nowiki>imageright = [[ | ::<code><nowiki>imageright = [[File:Nuvola apps bookcase.png|40px|alt=Three stacked books]]</nowiki></code> | ||
:'''Anything''' = Any other object that you want to show on the right side. | :'''Anything''' = Any other object that you want to show on the right side. | ||
Zeile 200: | Zeile 199: | ||
{{ambox | {{ambox | ||
| small = left | | small = left | ||
| image = [[ | | image = [[File:Replacement filing cabinet.svg|50px|link=|alt=]] | ||
| smallimage = [[ | | smallimage = [[File:Replacement filing cabinet.svg|25px|link=|alt=]] | ||
| text = | | text = | ||
small = left <br> image = <nowiki>[[ | small = left <br> image = <nowiki>[[File:Replacement filing cabinet.svg|50px|link=|alt=]]</nowiki> <br> smallimage = <nowiki>[[File:Replacement filing cabinet.svg|25px|link=|alt=]]</nowiki> | ||
}} | }} | ||
Zeile 209: | Zeile 208: | ||
:'''No parameter''' = If no '''smallimageright''' parameter is given then this template falls back to use the '''imageright''' parameter. If the '''imageright''' parameter also is empty then no image is shown on the right side. | :'''No parameter''' = If no '''smallimageright''' parameter is given then this template falls back to use the '''imageright''' parameter. If the '''imageright''' parameter also is empty then no image is shown on the right side. | ||
:'''An image''' = Should be an image with usual wiki notation. 20px - 25px width is usually about right. For example: | :'''An image''' = Should be an image with usual wiki notation. 20px - 25px width is usually about right. For example: | ||
::<code><nowiki>smallimageright = [[ | ::<code><nowiki>smallimageright = [[File:Nuvola apps bookcase.png|20px|alt=Three stacked books]]</nowiki></code> | ||
:'''Anything''' = Any other object that you want to show on the right side. | :'''Anything''' = Any other object that you want to show on the right side. | ||
:'''none''' = Means that no right side image is used. This overrides any image fed to '''imageright''', when "small=left". | :'''none''' = Means that no right side image is used. This overrides any image fed to '''imageright''', when "small=left". |