Jump to content

Module talk:Sidebar

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Izno (talk | contribs) at 19:59, 31 May 2023 (Support for plainlist TemplateStyles and mobile disappearing styles: Reply). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Left justified text?

Is there a simple way to use normal left-justified text for the content section? Maury Markowitz (talk) 14:14, 18 July 2022 (UTC)[reply]

@Maury Markowitz, the only way today is to use |contentstyle=text-align: left (or the same for |liststyle= in sidebar with collapsible lists). These parameters are documented in Template:Sidebar#Deprecated parameters. I have considered adding a parameter to support this in the module directly like how the centered text is supported for sidebar with collapsible list titles now. Izno (talk) 06:54, 17 December 2022 (UTC)[reply]

Support for plainlist TemplateStyles and mobile disappearing styles

I've made some changes to the module sandbox here that reflect changes made to Module:Navbox/sandbox and which I've started a discussion at Template talk:Navbox#TemplateStyles for plainlist. These changes are describe in parts 1 and 2 there. If you have questions, please feel free to discuss there. Izno (talk) 23:40, 16 December 2022 (UTC)[reply]

Hi, Izno. Thank you for your work on the CSS/TemplateStyles refactoring. Are edits such as Special:Diff/1157915259 useful with regards of this effort?
I see that Module:Sidebar has support for adding the TemplateStyles based on parameters (|contentclass= in the case of {{Atomic radius}}). Will function add_list_styles be eventually removed from Module:Sidebar (assuming all relevant places are replaced with explicit calls to {{plainlist}} et al.)? Or is add_list_styles and related code for adding TemplateStyles expected to be left in the module "forever"? —⁠andrybak (talk) 19:57, 31 May 2023 (UTC)[reply]
@Andrybak, it's probably not much of a win, if a win at all, today, to make swaps like that. I did do that for a few sidebars several years ago, but having to deal with the hundreds of thousands of navigation templates (Module:Sidebar and Module:Navbox, and Module:Infobox too) made it not a winning strategy to me when there are other much larger gains to be had. Right now, if there is a loss, it's that the addition of plainlist/hlist styles to a page would become slightly less deterministic. Izno (talk) 19:59, 31 May 2023 (UTC)[reply]

Headings misaligned with list titles

As you can see on Template:Politics of Serbia and Montenegro. I believe something needs to be done on Module:Sidebar/styles.css to fix this but not quite sure what. -Vipz (talk) 19:49, 3 January 2023 (UTC)[reply]

Style parameters used in Template:Sidebar person

It appears that about half of the pages in Category:Sidebars with styles needing conversion are there because they use {{Sidebar person}}, which uses a couple of |style= parameters. If someone who understands the minimal documentation about templatestyles wants to update that template, it will tidy up a bunch of pages at once. – Jonesey95 (talk) 04:15, 14 March 2023 (UTC)[reply]