Page MenuHomePhabricator

Conflicting border/thumb/frame options are not detected as Linter errors
Open, Needs TriagePublicBUG REPORT

Description

Steps to Reproduce:
Put this in a sandbox on en.WP:

[[File:Kralicky-Sneznik-03.jpg|thumb|border|left|Rolling hills of the [[Králický Sněžník]] massif, [[Dolní Morava|Horní Morava]], near the border with [[Bohemia]].]]

[[File:Kralicky-Sneznik-03.jpg|frame|border|left|Rolling hills of the [[Králický Sněžník]] massif, [[Dolní Morava|Horní Morava]], near the border with [[Bohemia]].]]

Actual Results:
The conflicting frame/border or thumb/border options do not trigger a Linter error.

Expected Results:
The conflicting frame/border or thumb/border options should trigger a Linter error.

Event Timeline

Jonesey95 created this task.Oct 2 2020, 6:37 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 2 2020, 6:38 PM

Until a minute ago, [[mw:Help:Images]] said "If multiple of these options are present, only the first one will be used".

That was not correct. I have changed it and added a note with a link to this bug report.

See https://en.wikipedia.org/w/index.php?title=User:Jonesey95/sandbox&oldid=981508576 which shows that when border is listed first and thumb or frame is present, thumb or frame overrides border. I have not created test cases for all of the other possible combinations.

NicoV added a subscriber: NicoV.Oct 3 2020, 7:12 AM