Template talk:Portal talk

Latest comment: 3 years ago by Funandtrvl in topic Missing end tag for div
WikiProject iconPortals  
WikiProject iconThis page is within the scope of WikiProject Portals, a collaborative effort to improve portals on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
Template This template does not require a rating on the project's quality scale.
Note icon
See also: List of Portals

Missing end tag for div edit

@Evad37, AfroThundr3007730, The Transhumanist, CommonsDelinker, Quiddity, and Funandtrvl: This template causes a missing end tag for <div> under certain circumstances, as can be seen from the markup, where there is no closing </div> tag for the markup <div style="border-top: 1px solid #c0c090; width: 100%;padding-top:0.3em">. I leave it to the experts to know where to put the closing </div> tag. The error shows up now in Portal talk:Ancient Egypt. —Anomalocaris (talk) 19:33, 16 March 2021 (UTC)Reply

@Anomalocaris: can you check if it's fixed now? I actually couldn't see the div on the portal talk page, but it definitely wasn't in the template. Funandtrvl (talk) 20:27, 16 March 2021 (UTC)Reply
Funandtrvl: It's good now for Portal talk:Ancient Egypt, but the closing </div> needs to be before one or more template closes (}}). A basic test is to use Special:ExpandTemplates. In Context title enter Portal talk:Ancient Egypt. In Input wikitext enter {{Portal talk}}. click OK. Then run lintHint, which has to be installed; see WP:Linter for more about lintHint. When lintHint reports "green" there is no lint. But in Context tltle, enter Portal talk:Slovenia and do it again. Now lintHint reports a stripped tag for </div>. So the </div> needs to be moved. —Anomalocaris (talk) 20:54, 16 March 2021 (UTC)Reply
Thank you for the explanation! I think it's fixed now. It really just adds a line to it. Funandtrvl (talk) 21:05, 16 March 2021 (UTC)Reply