Help:Lint errors/bogus-image-options/de
The bogus-image-options error is when an image is detected to use a non-existent option. For example in the code [[File:Example.jpg|foo|bar|baz]]
, "foo
" and "bar
" are bogus options, and "baz
" shows up as the caption.
Hilfe:Bilder has details on the supported image options, including a few notes about the quirky behavior of some of the parameters.
Known bugs in the Linter bogus file options detection include, but are not limited to:
- Parent task: <translate> task <tvar name=1>T274382</tvar></translate> - Make File syntax processing match the specification and documentation
- <translate> task <tvar name=1>T335538</tvar></translate> - Valid caption "thumb" in italics falsely detected as Linter bogus image option
In addition some other supported file options such as video and multi-page formats (e.g. pdf) are also checked.
Common errors include:
- Repeated options, e.g.
[[File:Example.jpg|thumb|right|thumb]]
→ [[File:Example.jpg|thumb|right]]
- Conflicting alignment options, e.g.
[[File:Example.jpg|thumb|right|150px|left]]
→ [[File:Example.jpg|thumb|right|150px]]
- Conflicting border/frame/thumb options (not reported as a Linter error; see phab link above), e.g.
[[File:Example.jpg|border|thumb|right|150px]]
→[[File:Example.jpg|thumb|right|150px]]
(always remove the "border" option) - A manual line break in
|alt=
or in the caption. (Remove the line break to fix the error.)
- Blank options, e.g.
[[File:Example.jpg|thumb||right]]
→ [[File:Example.jpg|thumb|right]]
- Two captions, e.g.
[[File:Example.jpg|thumb|right|Intended alt text|Beschreibungstext]]
→ [[File:Example.jpg|thumb|right|alt=Intended alt text|Beschreibungstext]]
- A plain number instead of a px value, e.g.
[[File:Example.jpg|thumb|right|225|Beschreibungstext]]
→ [[File:Example.jpg|thumb|right|225px|Caption text]]
- Typos in options, e.g.
[[File:Example.jpg|thumb|fight|Beschreibungstext]]
→ [[File:Example.jpg|thumb|right|Caption text]]
- Use of
left
,right
,thumb
, or###px
(any unlabeled pixel size) within<gallery>...</gallery>
tags.
To fix, remove left
, right
, and thumb
. Set pixel dimensions for the gallery using instructions at Hilfe:Bilder .
- Use of a
px
value withframe
(remove the px value to fix the error).
Werkzeuge
The following tools can help fix bogus image options:
Bogus image options may be reported by WPCleaner as part of CheckWiki error #534.