Help talk:Extension:Linter/tidy-font-bug

Jump to navigation Jump to search

About this board

Adithyak1997 (talkcontribs)

I would like to know the problem that occurs when I remove the font tag and replace it without removing 'Tidy bug affecting font tags wrapping links'

Reply to "Removing font tag"
Bdijkstra (talkcontribs)

Any suggestions on how to fix this in templates? E.g. nl:Sjabloon:Infobox werelderfgoed has a link at the bottom, which gets passed as a parameter to the next template.

SSastry (WMF) (talkcontribs)
Bdijkstra (talkcontribs)

Thanks for the link. The idea that links should ideally be visible as links, is a good argument to remove unnecessary styling.

Summary by SSastry (WMF)

This is a bug in linter because of faulty testing. https://www.mediawiki.org/w/index.php?title=User:SSastry_(WMF)/Sandbox&oldid=2607140&action=parsermigration-edit#Tidy_font_bug_&_images shows that image captions aren't affected.

Bdijkstra (talkcontribs)

Is the linter supposed to flag cases where no text appears between double brackets? E.g. on nl:Station Antwerpen-Centraal, the top of the infobox is an image, which is wrapped between font-tags.

SSastry (WMF) (talkcontribs)

Image captions are also affected, although maybe we don't have checks for whether the image caption is absent. For that scenario, we don't need to flag a lint error.

Bdijkstra (talkcontribs)

Are you sure? Captions shouldn't render differently, and if they do, I suppose that would be a different linter category.

SSastry (WMF) (talkcontribs)

Hmm ... you are right. I am sure I tested it, but, clearly I botched my testing there! I'll update my linter code to not flag image captions. Thanks for the bug report! :)

SSastry (WMF) (talkcontribs)
There are no older topics