Help:Lint errors/bogus-image-options/pl

From mediawiki.org
This page is a translated version of the page Help:Lint errors/bogus-image-options and the translation is 21% complete.
Other languages:

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.

Strona Pomoc:Obrazy opisuje obsługiwane opcje dostępne przy wstawianiu ilustracji.

Known bugs in the Linter bogus file options detection include, but are not limited to:

  • Parent task: zadanie T274382 - Make File syntax processing match the specification and documentation
  • zadanie T216003 - Linter fails to detect a quotation mark after the "upright" number.
  • zadanie T264464 - Conflicting border/thumb/frame options are not detected as Linter errors
  • zadanie T216566 - Capitalized versions of valid File options are usually ignored, but are not flagged as Linter bogus file options
  • zadanie T179605 - LintError bogus-image-options triggers on "Thumbtime"
  • zadanie T276675 - Image caption ending in "px" is incorrectly detected as a Linter error (To work around a false positive error when "px" is at the end of a caption, add {{sp}} after "px". It will add a space, which does not change the displayed caption but which makes the error go away.)

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|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 or ###px (any unlabeled pixel size) within ‎<gallery>...‎</gallery> tags.

To fix, remove left or right. Set pixel dimensions using instructions at Pomoc:Obrazy .

Narzędzia

Następujące narzędzia pomagają naprawić ten problem: