Help:Lint errors/bogus-image-options/pl
This page is about Linter error bogus-image-options.
Błąd bogus-image-options polega na obecności nieistniejącej opcji pliku. Na przykład w kodzie [[File:Example.jpg|foo|bar|baz]], "foo" i "bar" to nadmiarowe, nieistniejące opcje, a "baz" będzie wyświetlany jako opis pliku.
For example in the code [[File:Example.jpg|foo|bar|baz]], "foo" and "bar" are invalid options, and "baz" shows up as the caption.
Solution
Strona Pomoc:Obrazy opisuje obsługiwane opcje dostępne przy wstawianiu ilustracji.
Some of the known bugs in the Linter bogus file options detection are mentioned in, but not limited to:
- Parent task: T274382 - Make File syntax processing match the specification and documentation
Some other supported file types such as video and multi-page formats (e.g. pdf) are also checked.
Common errors
They 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]]
- 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|Caption text]]→[[File:Example.jpg|thumb|right|alt=Intended alt text|Caption text]]
- A plain number instead of a px value, e.g.
[[File:Example.jpg|thumb|right|225|Caption text]]→[[File:Example.jpg|thumb|right|225px|Caption text]]
- Typos in options, e.g.
[[File:Example.jpg|thumb|fight|Caption text]]→[[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 ###px, left, right, thumb. Set pixel dimensions for the gallery using instructions at Pomoc:Obrazy.
- Use of a
pxvalue withframe(remove the px value to fix the error). - Use of
pxpxin a size value (remove the extra "px" to fix the error).
Narzędzia
Następujące narzędzia pomagają naprawić ten problem:
- WPCleaner: zobacz instrukcję WPCleanera o poprawach błędów wykrytych przez Lintera. Błędne opcje pliku są też wykrywane jako część Wikiprojektu CheckWiki - błąd #534.