<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://gunmetalolympus.wiki/index.php?action=history&amp;feed=atom&amp;title=Module_talk%3ASidebar</id>
	<title>Module talk:Sidebar - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://gunmetalolympus.wiki/index.php?action=history&amp;feed=atom&amp;title=Module_talk%3ASidebar"/>
	<link rel="alternate" type="text/html" href="http://gunmetalolympus.wiki/index.php?title=Module_talk:Sidebar&amp;action=history"/>
	<updated>2026-04-24T03:46:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>http://gunmetalolympus.wiki/index.php?title=Module_talk:Sidebar&amp;diff=384&amp;oldid=prev</id>
		<title>Demongrrl: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://gunmetalolympus.wiki/index.php?title=Module_talk:Sidebar&amp;diff=384&amp;oldid=prev"/>
		<updated>2026-04-23T22:21:43Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:21, 24 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Demongrrl</name></author>
	</entry>
	<entry>
		<id>http://gunmetalolympus.wiki/index.php?title=Module_talk:Sidebar&amp;diff=383&amp;oldid=prev</id>
		<title>wikipedia&gt;Yodin: /* Dark mode: title always blue */ more ce</title>
		<link rel="alternate" type="text/html" href="http://gunmetalolympus.wiki/index.php?title=Module_talk:Sidebar&amp;diff=383&amp;oldid=prev"/>
		<updated>2026-04-23T17:24:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Dark mode: title always blue: &lt;/span&gt; more ce&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ user:MiszaBot/config&lt;br /&gt;
| maxarchivesize      = 31K&lt;br /&gt;
| minthreadsleft      = 4&lt;br /&gt;
| minthreadstoarchive = 1&lt;br /&gt;
| counter             = 7&lt;br /&gt;
| algo                = old(90d)&lt;br /&gt;
| archive             = Module talk:Sidebar/Archive %(counter)d&lt;br /&gt;
}}&lt;br /&gt;
{{copied|from=Module:Sidebar|from_oldid=816157517|to=:incubator:Module:Wp/nod/Sidebar|to_diff=4304026}}&lt;br /&gt;
{{to do |inner=&lt;br /&gt;
* [[/Archive 5#Nomobile use]]&lt;br /&gt;
* [[/Archive 5#Make tables into divs instead|#Make tables into divs instead]]&lt;br /&gt;
* [[/Archive 5#Width auto and similar sidebars]]&lt;br /&gt;
}}&lt;br /&gt;
{{archives|search=yes|bot=MiszaBot II|age=90}}&lt;br /&gt;
{{Lua sidebar}}&lt;br /&gt;
&lt;br /&gt;
== ARIA ==&lt;br /&gt;
&lt;br /&gt;
{{edit template-protected|answered=yes}}&lt;br /&gt;
Hi, per WIA-ARIA, can the parent {{tag|table|o}} HTML element with classes &amp;lt;code&amp;gt;sidebar sidebar-collapse nomobile nowraplinks&amp;lt;/code&amp;gt; please get an ARIA role. Like the Mbox templates (see [[Module:Message box]], I was thinking &amp;lt;code&amp;gt;role=&amp;quot;none&amp;quot;&amp;lt;/code&amp;gt; is most appropriate. Although, in this case since most sidebars are navigation boxes it may be helpful to able to pass a boolean parameter to change the ARIA role given to &amp;lt;code&amp;gt;role=&amp;quot;navigation&amp;quot;&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
@[[User:Izno|Izno]] What do you think? Sorry, I&amp;#039;m browsing around with my screenreader and noticed the sidebar also uses HTML tables still... Are you also on-board with &amp;lt;code&amp;gt;role=&amp;quot;none&amp;quot;&amp;lt;/code&amp;gt; and a boolean argument to switch this to &amp;lt;code&amp;gt;role=&amp;quot;navigation&amp;quot;&amp;lt;/code&amp;gt;?&lt;br /&gt;
&lt;br /&gt;
(P.S. future me or someone else kind enough I can proof it—will have to also explain clearly and succinctly in sidebar and sidebar with collapsible lists template docs how to use lists (that expose {{tag|ul|o}}, {{tag|li|o}}, etc.) and be ARIA-friendly i.e. grouping them so they&amp;#039;re read out usefully, labelling (!!) so important as otherwise a long babelling electronic voice of hyperlinks is all the visually impaired has for reference etc. if this is even possible to achieve on WP...) &amp;lt;span style=&amp;quot;color:#CD0000&amp;quot;&amp;gt;[[User:Waddie96|waddie96]] ★ ([[User talk:Waddie96|talk]])&amp;lt;/span&amp;gt; 02:47, 1 September 2025 (UTC)&lt;br /&gt;
&lt;br /&gt;
:Sidebars are either nav or aside, if we were to use HTML elements that I don&amp;#039;t current have access to. I&amp;#039;ll mark it up as nav for now in the sandbox. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 16:57, 1 September 2025 (UTC)&lt;br /&gt;
::Thanks. I&amp;#039;m pretty confident that this particular WIA-ARIA work such as assigning roles to HTML elements whose semantics are incongruent to their use-case is an uncontroversial edit despite it being such a high-use page. Placing edit request.&lt;br /&gt;
::Kindly at the HTML attribute &amp;lt;code&amp;gt;role=&amp;quot;navigation&amp;quot;&amp;lt;/code&amp;gt; to the parent {{tag|table|o}} element please. This will replace the implicit semantics of a data table with the explicit semantics of a navigation group/group of links (the identical semantics as {{tag|nav|o}}) to accessibility technology. &lt;br /&gt;
::I guessed this, so please don&amp;#039;t slate me:&lt;br /&gt;
{{textdiff|&amp;lt;nowiki&amp;gt;:css(&amp;#039;width&amp;#039;, args.width or nil)&lt;br /&gt;
:cssText(args.bodystyle or args.style)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;:css(&amp;#039;width&amp;#039;, args.width or nil)&lt;br /&gt;
:cssText(args.bodystyle or args.style)&lt;br /&gt;
:attr(&amp;quot;role&amp;quot;, &amp;quot;navigation&amp;quot;)&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
::or is it &amp;lt;code&amp;gt;setAttribute(&amp;quot;role&amp;quot;, &amp;quot;navigation&amp;quot;)&amp;lt;/code&amp;gt;? I feel like the former.&amp;lt;span style=&amp;quot;color:#CD0000&amp;quot;&amp;gt;[[User:Waddie96|waddie96]] ★ ([[User talk:Waddie96|talk]])&amp;lt;/span&amp;gt; 17:39, 1 September 2025 (UTC)&lt;br /&gt;
:::Or you can just say sync to the sandbox. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 19:13, 1 September 2025 (UTC)&lt;br /&gt;
:{{not done for now}}&amp;#039;&amp;#039;&amp;#039;:&amp;#039;&amp;#039;&amp;#039;&amp;lt;!-- Template:ETp --&amp;gt; Going to wait until RedBurn finishes their work. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 15:56, 2 September 2025 (UTC)&lt;br /&gt;
::Good day @[[User:Izno|Izno]]. Please can you just insert the code I posted below for now. There&amp;#039;s no timeline how long it may take the sandbox editing/testing to finish, and this edit won&amp;#039;t need much testing beyond me checking ten or so use-cases that it actually shows up... At line 156, insert the highlighted code: &amp;lt;syntaxhighlight lang=lua line start=&amp;quot;144&amp;quot; highlight=&amp;quot;13&amp;quot; style=&amp;quot;width:100%;font-size:small;&amp;quot;&amp;gt;&lt;br /&gt;
	root = root:tag(&amp;#039;table&amp;#039;)&lt;br /&gt;
	if not child then&lt;br /&gt;
		root &lt;br /&gt;
			:addClass(cfg.i18n.class.sidebar)&lt;br /&gt;
			-- force collapsibleclass to be sidebar-collapse otherwise output nothing&lt;br /&gt;
			:addClass(collapsibleClass == cfg.i18n.class.collapse and cfg.i18n.class.collapse or nil)&lt;br /&gt;
			:addClass(&amp;#039;nomobile&amp;#039;)&lt;br /&gt;
			:addClass(args.float == cfg.i18n.float_none and cfg.i18n.class.float_none or nil)&lt;br /&gt;
			:addClass(args.float == cfg.i18n.float_left and cfg.i18n.class.float_left or nil)&lt;br /&gt;
			:addClass(args.wraplinks ~= cfg.i18n.wrap_true and cfg.i18n.class.wraplinks or nil)&lt;br /&gt;
			:addClass(args.bodyclass or args.class)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, args.width or nil)&lt;br /&gt;
			:attr(&amp;#039;role&amp;#039;, &amp;#039;presentation&amp;#039;)&lt;br /&gt;
			:cssText(args.bodystyle or args.style)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; Thank you &amp;lt;span class=&amp;quot;fn nickname&amp;quot; style=&amp;quot;color:#CD0000&amp;quot;&amp;gt;[[User:Waddie96|waddie96]] ★ ([[User talk:Waddie96|talk]])&amp;lt;/span&amp;gt; 16:19, 7 September 2025 (UTC)&lt;br /&gt;
:::The reason I have not done so is because we expect to have two changes and I&amp;#039;m preventing the [[WP:Job queue]] from having to swallow two in some relatively quick procession (editing highly used modules has been observed by the WMF before). Users have lived with the change for many many years and is relatively minor at the end of the day. There is also 0 reason to test it any further. You should move on to more productive activities.  And lastly, setting role to presentation is already what we&amp;#039;re not doing. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 16:29, 7 September 2025 (UTC)&lt;br /&gt;
::::Ah ok got you. Thanks for the education 😄. Observed meaning it was able to cause enough performance issues that WMF was able to track the cause all the way down to a module? Insane.&lt;br /&gt;
::::{{tq| You should move on to more productive activities.}} Please watch your tone though. &amp;lt;span class=&amp;quot;fn nickname&amp;quot; style=&amp;quot;color:#CD0000&amp;quot;&amp;gt;[[User:Waddie96|waddie96]] ★ ([[User talk:Waddie96|talk]])&amp;lt;/span&amp;gt; 20:19, 7 September 2025 (UTC)&lt;br /&gt;
::::If it’s in retaliation because I came across with tone I do apologise, the web doesn’t come with emotion semantics unless you use an emoticon 😅 &amp;lt;span class=&amp;quot;fn nickname&amp;quot; style=&amp;quot;color:#CD0000&amp;quot;&amp;gt;[[User:Waddie96|waddie96]] ★ ([[User talk:Waddie96|talk]])&amp;lt;/span&amp;gt; 20:21, 7 September 2025 (UTC)&lt;br /&gt;
:::::@[[User:Waddie96|Waddie96]] I went ahead and implemented &amp;lt;source lang=lua inline&amp;gt;:attr(&amp;quot;role&amp;quot;, &amp;quot;navigation&amp;quot;)&amp;lt;/source&amp;gt; along with some other changes I was making, since The RedBurn&amp;#039;s changes above appear to be stalled. &amp;lt;span class=&amp;quot;nowrap&amp;quot;&amp;gt;--[[User:Ahecht|Ahecht]] ([[User talk:Ahecht|&amp;lt;b style=&amp;quot;color:#FFF;background:#04A;display:inline-block;padding:1px;vertical-align:middle;font:bold 50%/1 sans-serif;text-align:center&amp;quot;&amp;gt;TALK&amp;lt;br /&amp;gt;PAGE&amp;lt;/b&amp;gt;]])&amp;lt;/span&amp;gt; 18:12, 29 December 2025 (UTC)&lt;br /&gt;
&lt;br /&gt;
{{edit request|ans=yes}}&lt;br /&gt;
&lt;br /&gt;
Please adjust line-height to be in keeping with the increase at {{tl|infobox}}.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=css&amp;gt;&lt;br /&gt;
.sidebar {&lt;br /&gt;
    line-height: 1.5em;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;span class=&amp;quot;fn nickname&amp;quot; style=&amp;quot;color:#CD0000&amp;quot;&amp;gt;[[User:Waddie96|waddie96]] ★ ([[User talk:Waddie96|talk]])&amp;lt;/span&amp;gt; 04:49, 14 September 2025 (UTC)&lt;br /&gt;
&lt;br /&gt;
:Reason being: Currently, links etc. will be too bunched together, and it actually makes it &amp;#039;harder&amp;#039; to read from an usability perspective since it appears busy/cluttered and &amp;#039;a lot&amp;#039;. &amp;lt;span class=&amp;quot;fn nickname&amp;quot; style=&amp;quot;color:#CD0000&amp;quot;&amp;gt;[[User:Waddie96|waddie96]] ★ ([[User talk:Waddie96|talk]])&amp;lt;/span&amp;gt; 04:49, 14 September 2025 (UTC)&lt;br /&gt;
::As always with this editor: Where are the links to test cases? This module is used in 400K+ pages. Also, please link to the relevant &amp;quot;increase at {{tl|infobox}}&amp;quot;. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 14:57, 18 September 2025 (UTC)&lt;br /&gt;
==How come this thing still uses tables?==&lt;br /&gt;
[https://en.wikipedia.org/w/index.php?title=Module%3ASidebar%2Fsandbox&amp;amp;diff=1326372818&amp;amp;oldid=1309357365 I just replaced all table elements with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; in the sandbox] and it has exactly the same appearance in all [[Template:Sidebar/testcases|testcases]] except one (Politics of Panama).  So how come this thing still uses tables?  [[user:sapphaline|&amp;lt;span class=&amp;quot;skin-nightmode-reset-color&amp;quot; style=&amp;quot;color:#c20;text-decoration:underline&amp;quot;&amp;gt;sapphaline&amp;lt;/span&amp;gt;]] ([[user talk:sapphaline|&amp;lt;span class=&amp;quot;skin-nightmode-reset-color&amp;quot; style=&amp;quot;color:#236;text-decoration:underline&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 16:55, 8 December 2025 (UTC)&lt;br /&gt;
:Your edits created a bunch of Linter errors at [[:Template:Sidebar/testcases]]. I&amp;#039;ve already cleaned up after you at [[:Template:Infobox rugby biography/sandbox]] today. Please clean up after yourself when you are done. Thanks. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 20:30, 8 December 2025 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Images on mobile ==&lt;br /&gt;
&lt;br /&gt;
I was recently reviewing @[[User:Noleander|Noleander]]&amp;#039;s FAC nomination of [[Bridge]], which uses the {{t|Bridge sidebar}} sidebar in the lead section. That sidebar (like many others) includes an image, which is effectively the lead section&amp;#039;s visual. I noticed that, because the sidebar is configured not to display on mobile, it results in there being no lead image on mobile.&lt;br /&gt;
&lt;br /&gt;
Would it be possible for this module to detect when there is an image in a sidebar and display that on mobile, even when the sidebar as a whole is not? (Perhaps we&amp;#039;d want to limit it to lead sections.) Or would that be too technically complicated/introduce other complexities, in which case it might be better to implement on a per-article basis using {{t|If mobile}}? &amp;lt;span style=&amp;quot;border:3px outset;border-radius:8pt 0;padding:1px 5px;background:linear-gradient(6rad,#86c,#2b9)&amp;quot;&amp;gt;[[User:Sdkb|&amp;lt;span style=&amp;quot;color:#FFF;text-decoration:inherit;font:1em Lucida Sans&amp;quot;&amp;gt;Sdkb&amp;lt;/span&amp;gt;]]&amp;lt;/span&amp;gt; &amp;lt;sup&amp;gt;[[User talk:Sdkb|&amp;#039;&amp;#039;&amp;#039;talk&amp;#039;&amp;#039;&amp;#039;]]&amp;lt;/sup&amp;gt; 21:02, 13 December 2025 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Alternative text for image ==&lt;br /&gt;
&lt;br /&gt;
I added a brief instruction on how to provide alternative text for the sidebar image, as is required for [[WP:ALT]]. This is not an obscure detail: I had no idea  how to do it 10 months ago, and I posted a query here in this Talk page, and got an answer.  Then the same question came up yesterday in an FAC review.  There  may be lots of editors that have tried to help  blind users by adding alt text to sidebar images, and gave up.  The mechanism is not at all obvious, even to experienced editors, because many expect the &amp;quot;alt&amp;quot; attribute to be a sibling of the &amp;quot;image&amp;quot; attribute   So, I added instructions. I inserted the instructions  within the &amp;quot;image&amp;quot; attribute explanation. [[User:Noleander|Noleander]] ([[User talk:Noleander|talk]]) 15:17, 10 March 2026 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Dark mode: title always blue ==&lt;br /&gt;
&lt;br /&gt;
In dark mode, the title is always blue, as if it was an unvisited wikilink (regardless of if the reader has visited the page or not), even when on the title&amp;#039;s subject page (e.g. [[Rhetoric]]). Light mode is completely unaffected by this, with the title appearing as expected. I noticed that [[Module talk:Sidebar/Archive 7#Title always link-blue?|this had been raised before]], and the relevant CSS rule identified, but it wasn&amp;#039;t fixed at the time as it wasn&amp;#039;t clear why the rule existed. As this discussion points out, the CSS change [[Special:Diff/1234103998|was made in 2024]] by @[[User:Jdlrobson|Jdlrobson]] (@[[User:Jon (WMF)|Jon (WMF)]]), with an edit summary saying it was in response to [[mw:Reading/Web/Accessibility_for_reading/Reporting/en.wikipedia.org/Archive_1#%E2%9C%85Fall_of_Constantinople_dark_mode_error|this dark mode error report]]. I&amp;#039;ve checked [[Template:History of the Byzantine Empire sidebar|the template mentioned in the report]], which now seems to be working fine in dark mode even when you disable the CSS rule. @[[User:Jdlrobson|Jdlrobson]]: would you object to this CSS rule being removed, to allow the title to appear as expected? --&amp;lt;span style=&amp;quot;text-shadow:grey 0.15em 0.15em 0.1em&amp;quot;&amp;gt;[[User:Yodin|Yodin]]&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;text-shadow:grey 0.25em 0.25em 0.12em&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;[[User talk:Yodin|T]]&amp;lt;/sup&amp;gt;&amp;lt;/span&amp;gt; 15:30, 23 April 2026 (UTC)&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Yodin</name></author>
	</entry>
</feed>