Module talk:Sidebar

Active discussions
  (Redirected from Template talk:Sidebar)


In the archives, some seem to have suggested that sidebar templates ought merely mirror the contents of Template:Navboxes. Thumperward even experimented with a Template:Navbox vertical. While I doubt arguments going that far as to have sidebars exactly mirroring contents of navobxes would be convincing, at least some increased level of standardisation of the looks (rendering) of sidebars could probably be in the interest of the readers of Wikipedia? You could argue that the precurrent variation of looks of sidebars doesn't really serve any real purpose when a WP:CONSENSUS more standardsed looks for sidebars - still suitable for diverse applications over the board - could be achieved? Chicbyaccident (talk) 16:06, 29 November 2018 (UTC)

Chicbyaccident, {{Military navigation}} uses Module:Navbox to generate sidebars or footer navboxes depending the use of |style=wide. Frietjes (talk) 19:58, 29 November 2018 (UTC)


I've noticed that sidebars still use hardcoded images (i.e. [[File:Placeholder.png|20px|caption]]). Is there a specific reason that a module hasn't been implemented similar to Module:InfoboxImage? Happy to work on that myself, just curious if it is simply a matter of no one having done it yet or if it was a conscious choice to intentionally NOT do that. --Zackmann (Talk to me/What I been doing) 19:01, 30 November 2018 (UTC)

We don't want to provide users the option to add their own images in sidebars generally in an instantiation of that sidebar in an article, so a module is overkill. --Izno (talk) 19:33, 30 November 2018 (UTC)
OH duh, this is only called from the template while an infobox is providing the image from the article. DUHHH. Thanks! --Zackmann (Talk to me/What I been doing) 20:14, 30 November 2018 (UTC)

Top marginEdit

Could you please add a top margin (0.5 em) just like Infobox does, so the sidebar and message boxes won't touch (see Politics of Equatorial Guinea)? Thanks. --CaiusSPQR (talk) 00:45, 30 November 2019 (UTC)

Hardcoded element-level background colorEdit

This template currently hardcodes a css background color into the style attribute on the table tag with the following line: :css('background', '#f9f9f9'), which breaks the ability to style it with user CSS (eg Vector), because the style attribute is the most-specific possible identifier and not overrideable. This means you get color clashes when using eg a dark mode theme. There's no need to do this, as you could just use the class="infobox" to get the same styling as infoboxes have, which is obviously the desire, here. As a darkmode Vector user, I'd appreciate it if someone with the ability to fix this could so. Tossrock (talk) 07:48, 13 December 2019 (UTC)

Return to "Sidebar" page.