For archive pages of completed (closed) discussions, a colored background is often made. To do this for the whole page, an opening tag <div style="background-color:gray"> (e.g. by template {{closed-start}}tart [[https://ru.wikipedia.org/wiki/Template:Closed | {{closed}}]]) is placed at the top of the page and a closing tag </div> (e.g. by template {{closed-end}}) is placed at the end of the page. But often only an opening tag <div> is put, because the parser autocloses the tags and, due to this, many pages fall into the list of linter errors https://www.mediawiki.org/wiki/Help:Extension:Linter/missing-end (tens of thousands pages). But, for example, take such a single div: <div style="background-color: #eaecf0; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; right: 0;"></div>. It was expected that the background will only be in the area in which the text of the article/discussion is located. But in fact, the background extends far beyond the <div class="mw-parser-output"> 1) up (to h1 header, affecting the part "From Wikipedia, the free encyclopedia") and down (affecting categories) in the Vector skin 2) in Monobook skin in all directions 3) When editing, the background covers the area of the wikitext editor and lists and categories below it.by template closed-end [[https://ru.wikipedia.org/wiki/Template:Ecs|{{ecs}}]]) is placed at the end of the page.
https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=934865013
Is it possible to clarify the boundaries of an mw-parser-output area so that the background remains within that areaBut often only an opening template/tag <div> is put, because the parser autocloses the tags
https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=934865972
due to this, many pages fall into the list of linter errors https://www.mediawiki.org/wiki/Help:Extension:Linter/missing-end (tens of thousands pages with "Missing end tag - div" in ruwiki [[https://ru.wikipedia.org/w/index.php?title=Special:LintErrors/missing-end-tag&namespace=4&uselang=en | e.g. namespase wikipedia]], [[https://ru.wikipedia.org/w/index.php?title=%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%A4%D0%BE%D1%80%D1%83%D0%BC_%D0%BF%D0%B0%D1%82%D1%80%D1%83%D0%BB%D0%B8%D1%80%D1%83%D1%8E%D1%89%D0%B8%D1%85/%D0%90%D1%80%D1%85%D0%B8%D0%B2/2017/01&action=edit&lintid=8555846 | e.g. lintid=8555846]]).
But, for example, take such a single div: <div style="background-color: #eaecf0; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; right: 0;"></div>. It was expected that the background will only be in the area in which the text of the article/discussion is located. But in fact, the background extends far beyond the <div class="mw-parser-output">
* up (to h1 header, affecting the part "From Wikipedia, the free encyclopedia") and down (affecting categories) in the Vector skin https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=934867364&useskin=vector
* in Monobook skin in all directions https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=934867364&useskin=monobook
* When editing, the background covers the area of the wikitext editor and lists and categories below it. https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&action=edit&oldid=934867364 -> Show preview
Is it possible to clarify the boundaries of an mw-parser-output area so that the background remains only inside of<div class="mw-parser-output">?
Is it possible somehow better to make a gray background for the content of individual pages to avoid the constant addition of a closing div for tens of thousands of pages?