Content deleted Content added
→Div close tags: Replying to Anomalocaris (using reply-link) |
Anomalocaris (talk | contribs) →Div close tags: Help space is almost lint-free |
||
Line 342:
:[[User:Sdkb|Sdkb]]: Thank you for asking. I was working on a project to [[WP:Linter|remove lint errors]] from Wikipedia. I found [[Help:Introduction/All]] listed with [[Special:LintErrors/missing-end-tag|Missing end tags]] for {{tag|div|o}}. I edited it and used the lintHint tool described in [[WP:Linter]], and starting from the bottom, I detected that the last {{tag|div|c}} belonged inside the closing double curly braces of {{tlx|strip categories}}, where I placed it. There were 9 more missing end tags for {{tag|div|o}}. Experimentally, I placed them at the bottom. LintHint accepted this, and the page preview looked OK, so I saved the edit. Looking back now, it would seem that since all of the {{tag|div|o}} tags are opened inside {{tlx|strip categories}}, they should be closed inside it too. But lintHint accepted it, I guess because it processes {{tlx|strip categories}} (and other templates) out of existence before analyzing lint issues. So the first fix would probably be to move all of the closing {{tag|div|c}} tags inside the closing double brace of {{tlx|strip categories}}. I was in a hurry and I didn't want to spend a lot of time trying to figure out the purpose of each {{tag|div|o}} tag, and therefore its intended scope, so when I achieved a result that looked OK and didn't have lint errors, I stopped and published my changes. Please go ahead and improve on my work! —[[User:Anomalocaris|Anomalocaris]] ([[User talk:Anomalocaris|talk]]) 20:36, 15 March 2021 (UTC)
::{{u|Anomalocaris}}, I'm not really familiar enough with div tags to feel comfortable diving into this on my own. The main thing is just that [[Help:Introduction/All]] is supposed to be only a "container page", so to speak, so if lint errors are present there, they likely arose at a more core level (like the individual help pages or {{tl|Intro to}}; trying to understand what you wrote about category stripping, it seems to have something to do with that?) and should probably be resolved at that level. They likely are also present on other similar container pages in the series (e.g. [[Help:Introduction to images with Wiki Markup/All]]). Thanks for whatever you've done/are doing to help; anything that resolves the errors without changing the normal display is certainly a plus. <span style="color:#AAA"><small>{{u|</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}}</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 22:22, 15 March 2021 (UTC)
:::[[User:Sdkb|Sdkb]]: I moved the closing {{tag|div|c}} tags as I suggested. According to [https://fireflytools.toolforge.org/linter/enwiki Outstanding linter errors on enwiki], there is only one (1) lint error in all of the Help namespace, a stripped {{tag|div|c}} in [[Help:Wikitext]], and this lint error is an artifact of some unusual markup to deal with the ideosyncracies of the {{tag|pre|o}} tag, for which I didn't see an obvious workaround. So, at the moment, except possibly for [[Help:Wikitext]], no further lint control work is required in the Help namespace. It may be possible to improve the placement of the closing {{tag|div|c}} tags in [[Help:Introduction/All]], but this would be for clarity and ease of further editing, not for fixing lint errors. —[[User:Anomalocaris|Anomalocaris]] ([[User talk:Anomalocaris|talk]]) 22:54, 15 March 2021 (UTC)
|