Module talk:Sidebar
![]() | Text and/or other creative content from this version of Module:Sidebar was copied or moved into incubator:Module:Wp/nod/Sidebar with this edit. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted as long as the latter page exists. |
|
||||||
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
Related pages |
---|
Treating Module:Navbar/styles.css
[edit]@Izno: Is it right not to treat Module:Navbar/styles.css in add_list_styles() whether sidebar has a navbar or not? If an article page transcludes a sidebar (with a navbar) and another navbar in this order, the styles doesn't seem to be applied on mobile view. 本日晴天 (talk) 15:42, 24 December 2024 (UTC)
- add_list_styles is just for the two kinds of lists and is about the classes that have been added since eternity in the several templates (infobox also). Both navbox and sidebar have instead move_hiding_templatestyles which will take care of embedded TemplateStyles tags. Izno (talk) 17:32, 24 December 2024 (UTC)
- Okay, but on some pages (ex. Finder_(software)) on mobile view, navbars are actually displayed in unintended styles because Module:Navbar/styles.css isn't used. How about modifying this module like this and output an additional templatestyles tag if navbar is used? 本日晴天 (talk) 08:19, 27 December 2024 (UTC)
Option to omit nomobile?
[edit]@Izno: At Module talk:Sidebar/Archive 6#How to override "class=nomobile" to display sidebar in mobile view? you said "This cannot be overridden and that will not change". Did you only mean that there is no way to override an existing class=nomobile
, or did you rule out adding a new sidebar option like mobile=yes
to omit class=nomobile
? I came from a discussion about {{NGC objects}} at Wikipedia:Templates for discussion/Log/2025 January 4#Template:NGC objects. A long list is split into intervals so the articles are closer tied together than normal sidebars and this sidebar is very narrow. I think an option to omit nomobile would sometimes be nice. PrimeHunter (talk) 16:45, 4 January 2025 (UTC)
- Ruling both out. I can reinstate
vertical-navbox
if we prefer just to make it more opaque ;). It's not about how narrow or wide sidebars are, it's about how much HTML they dump into the page that isn't used in mobile. Izno (talk) 20:19, 4 January 2025 (UTC) - Which maybe doesn't make my true preference clear of course - which is that everything is displayed at all resolutions (or at least until this module is deleted, which is probably my truest preference, for various reasons). What I'm doing is respecting the WMF's choice to remove these elements from mobile. Izno (talk) 20:22, 4 January 2025 (UTC)
Should there be a way to automatically open up the relevant section of the sidebar?
[edit]After Template:Feminism sidebar got reorganized, a bunch of transclusions no longer automatically expand the correct section. For example, the article Feminist theory in composition studies automatically expands the "Concepts" section even though the article is now listed under the "Theory" section. Something I realized is that expanding the section that contains a link to the current article might be something that could be done automatically, so that editors no longer have to manually specify the section to auto-expand on every article where a sidebar is included. PBZE (talk) 19:39, 27 January 2025 (UTC)
How get "alt" text for the image
[edit]In article Atlanta Compromise, it is using an InfoBox Template:Nadir of American race relations .. that infobox has an image in it. How can I add "alt" text for the image, to assist visually impaired users of the encyclopedia? I couldn't find instructions for alt text in this module page. Noleander (talk) 01:39, 10 May 2025 (UTC)
- @Noleander: Template:Nadir of American race relations has and you would add the alt text inside that image specification using
{{Sidebar with collapsible lists ... | image = [[File:Le Petit Journal 7 Oct 1906 (cropped).jpg|232px|class=notpageimage]] ... }}
|alt=
, see WP:EIS#Alt text and caption. --Redrose64 🌹 (talk) 12:57, 10 May 2025 (UTC)- Great, thanks, that worked. Noleander (talk) 13:13, 10 May 2025 (UTC)