Help talk:Extension:Linter/obsolete-tag

Jump to navigation Jump to search

About this board

Adithyak1997 (talkcontribs)

In the parent page of this discussion ie. Extension:Linter/obsolete-tag, I would suggest editor(s) to please change the tag font to div in the tables present in sections font sizes and helpful hints. Otherwise I think the page needs to be transcluded(not sure about correct word) from the page Special pages ->Lint Errors ->Obsolete html tags(for verification, please visit this link).

Reply to "Help Page Issue"
Adithyak1997 (talkcontribs)

I am facing an error in both English wikipedia as well as Simple English Wikipedia. I have edited pages from both multi colon escape errors and obsolete html tag errors in both the wikipedias. But those pages ie. the page Special:Lint Errors is not at all getting updated. I could see my edit in the page history but the page is not getting removed from the linter category

Adithyak1997 (talkcontribs)

May i know the reason why the summary was created?Was that due to the reason that another page with similar error is created?

SSastry (WMF) (talkcontribs)
Reply to "Updation problem"
Adithyak1997 (talkcontribs)

I am trying to add Orange colour in the page User talk:Neptunion under welcome and WP:TE[edit source] section. I tried many cases but I cannot add orange colour there. Please help.~~~~

Reply to "Colour problem"
Izno (talkcontribs)

<source></source> and <samp></samp> should probably also be mentioned, and possibly also <pre></pre>. I would make the change but translatable pages make me sad. :D

Reply to "tt replacement"

Sometimes center is used for non-text items

Izno (talkcontribs)

Probably one of the more common occurrences I see for center use is centering a block object without text (notably images, but I've seen tables also), the fix for which is not text-align but instead <div style="margin: 0 auto"></div> or similar.

I would make the change but translatable pages make me sad. :D

Reply to "Sometimes center is used for non-text items"
Anomalocaris (talkcontribs)

If this is really a low-priority item, wouldn't it make sense for the help page to say something like, "If you are editing an article and find an obsolete HTML tag, of course it is OK to replace it, but eventually bots will be created to replace obsolete HTML tags, so there is no need to edit articles for the primary purpose of replacing HTML tags. (talkcontribs)

Funnily enough, there is a somewhat similar guide / help that does something like that in the parent page (Help:Extension:Linter#Goal: HTML5 output compliance). Adding it in the help here probably won't help much. Clearly it seems likely that you have missed it in the parent page, others will probably ignore this page altogether. It is just human nature.

In any event, since this is a wiki, one can act accordingly (improve it if need be).

SSastry (WMF) (talkcontribs)

U:Anomalocaris, let me add it to the help page so others aren't confused similarly.

Strainu (talkcontribs)

Not all replacements seem to work. For instance, compare these 2 versions: before and after (the difference is in Paul's signature). How should this case be approached?

Reply to "Font for a link" (talkcontribs)

The page is discussing the fact that these tags are obsolete and in doing so also uses the obsolete tags themselves to demonstrate their usage. This means that this page will show up in the linter.

It might be preferable to either replace those obsolete tags with Templatestyles, inline styling, or simply use screenshots because if / when these tags do become obsolete the rendering here will not show things as intended in certain browsers.

JackPotte (talkcontribs)

Actually I had knowingly decided to use them in a first time in order to compare and prove their rendering with their alternatives, in a dynamic way which a screenshot could not provide.

So to my mind these examples are not "ironic" but a relic to treat at the very end of the migration process they describe. (talkcontribs)

Well, that's counter intuitive, it is like a doctors telling a patient that smoking is bad for them while they actually smoke in front of the patient (and make the patient worse). A documentation that talks about good practices should avoid bad practices while doing it, because it encourages the reader to simply ignore such contradiction or simply believe that its authors are either lying or don't know what they are talking about.

It is likely that people already have a hard time believing that doing something like this is worth their time as the prior thread shows. Including such "live" examples will likely make matters worse.

Reply to "Ironic examples"
Amire80 (talkcontribs)

I completely support the general idea of conformance to modern web standards. Nevertheless, I'm wondering whether there are any other benefits to changing <center> to <div style="text-align: center"> other than just modernity and cleaner semantics. Can it improve performance, rendering, forward compatibility, stability? Anything else?

Ciencia Al Poder (talkcontribs)


This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Avoid using it and update existing code if possible

It may take a long time for browsers to drop the center element, but users should be educated to not use it anymore, so nobody has to hurry to replace it when it comes the day when browsers start dropping it.

Amire80 (talkcontribs)

This makes sense to me, but still, I'd like to have the strongest explanations I can bring to other editors, who will likely be unhappy to see thousands of edits that don't change anything substantial. Again, I understand how it is substantial, but if possible, I'd love to have more convincing arguments.

Ciencia Al Poder (talkcontribs)

obsolete tag is a low-priority one. But... everything in linter will cause edits that don't change anything substantial (because the page should look the same after and before the changes)... until the current MediaWiki markup start to behave differently, which is the goal of fixing those errors, and that would make them a substantial change :)

<center> is something that a bot can change easily, users may replace them while they do other edits to the same page. Anyway, I don't think <center> would be in use in many pages (maybe I'm wrong)

Legoktm (talkcontribs)

MediaWiki is moving towards full HTML5 compliance to clean up some of the oddness in our parsing (mostly related to the effects of tidy). Part of this means adding support for the new HTML5 tags and slowly deprecating and dropping support for the removed ones.

As for why the HTML5 standard dropped <center>, there's some good explanations in this SO answer, but the tl;dr is that HTML is supposed to describe the contents of the text, not format it (that's CSS). And center did just formatting and didn't describe it.

As Ciencia Al Poder said, this is a low priority issue and can easily be done by a bot. The English Wikipedia is slowly migrating towards w:Template:Center for example.

Reply to "What are the benefits?"
There are no older topics