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 |
---|
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)
- 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 functionadd_list_styles
be eventually removed from Module:Sidebar (assuming all relevant places are replaced with explicit calls to {{plainlist}} et al.)? Or isadd_list_styles
and related code for adding TemplateStyles expected to be left in the module "forever"? —andrybak (talk) 19:57, 31 May 2023 (UTC)- @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)
- I'm confused. I think I don't understand the layout/formatting of the page MediaWiki talk:Common.css/to do. For example, {{Infobox Cyrillic letter}} was still listed for plainlist. However, Special:Diff/1157920338 seems very similar to the aforementioned Special:Diff/1157915259. What am I missing? —andrybak (talk) 20:22, 31 May 2023 (UTC)
- My link to the to do page was to indicate there is higher-value work to be done on other things than the pretty-mechanical/low-value change that adds plainlist/hlist templates and eventually removes the checking code from the module.
- Your infobox cyrillic letter change looks fine (though now-reverted and a full page protection on top of that unrelated to your efforts). There are more painful conversions for infoboxes which is why I added the checking code in Module:Infobox as well (think: it is trivial to make an infobox where the row disappears with a basic parameter and a class in the row class rather than putting an if block in with a template).
- The parts of the to do list that should be worked are the ones not under the "done" section. :) Izno (talk) 07:40, 1 June 2023 (UTC)
- I'm confused. I think I don't understand the layout/formatting of the page MediaWiki talk:Common.css/to do. For example, {{Infobox Cyrillic letter}} was still listed for plainlist. However, Special:Diff/1157920338 seems very similar to the aforementioned Special:Diff/1157915259. What am I missing? —andrybak (talk) 20:22, 31 May 2023 (UTC)
- @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)
Headings misaligned with list titles
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)
- @Jonesey95, I have done what I can. There is obviously still a parameter there to change the border color of the entire sidebar. That will need to be evaluated -- if a lot of templates are setting that then there should likely be a parameter to permit downstream use of their own TemplateStyles, or removal of the parameter, or perhaps a few choice colors added in this template for use downstream and then the general selection of a color removed. (I have no strong preference.)
- On a general note, I have been thinking about whether this category is the best use of anyone's time, since I'm increasingly of the belief that this template should be deprecated for use in the mainspace entirely. I don't want to waste people's time converting to use TemplateStyles.... Izno (talk) 20:20, 31 May 2023 (UTC)
Sidebar missing in mobile view
{{LGBT sidebar}}: Refer GaLTaS, where the sidebar displays only in Desktop view on iPad and iPhone. Chrisdevelop (talk) 23:48, 29 November 2023 (UTC)
- Template:Sidebar says: "This template does not display in the mobile view of Wikipedia; it is desktop only. Read the documentation for an explanation."
- and "Templates using the classes class=navbox ({{navbox}}) or class=nomobile ({{sidebar}}) are not displayed on the mobile web site of English Wikipedia. Mobile page views account for approximately 65% of all page views (90-day average as of May 2023)." Johnjbarton (talk) 01:40, 30 November 2023 (UTC)
- Thanks for your speedy reply and explanation. I copied the Sidebar from another similar site and didn’t see any documentation there. Where can I read this documentation? Given that most viewers are using mobile view, and therefore won’t see the Template unless they switch to Desktop view, is there either a way to edit this to display in all situations, or is there another Sidebar template that already will? Chrisdevelop (talk) 01:55, 30 November 2023 (UTC)
- IDK, I came here to try to figure out what the deal is. AFAICT, the sidebar is not implemented correctly on mobile plus some think that dropping the sidebar content altogether is good because it reduces page weight and thus load time. I suppose these folks grew up in the 2000s. I could not find any more info. I tried asking on Wikipedia:Village_pump_(technical)#Template_sidebar_design_alternative? but got crickets. Johnjbarton (talk) 02:40, 30 November 2023 (UTC)
- Thanks for all your trouble. I’ll keep an eye on the Village Pump and check back here every so often. I like this particular LGBT project sidebar because if saves a lot of time to not have to enter its directory manually. Is there a place where the Sidebar itself can be edited? That was how I ended up here in the first place. Chrisdevelop (talk) 02:48, 30 November 2023 (UTC)
- By "the Sidebar" do you mean "The page GaLTaS has a sidebar and I want to change its content?
- If yes edit the intro and see
- {{LGBT sidebar}}
- This template contains the config for the sidebar. Navigate to the config file by putting "Template:" in Wikipedia search bar followed by the name of the template: Template:LGBT_sidebar. Edit that page to change the template.
- BEWARE any change you make affects all pages using that sidebar. You should discuss any changes on the Template_talk:LGBT page, or better ask someone else to do the edits the first time. Johnjbarton (talk) 03:03, 30 November 2023 (UTC)
- Brilliant, thank you - exactly what I needed to know; and yes, I will take your advice re editing this. Chrisdevelop (talk) 03:28, 30 November 2023 (UTC)
- Thanks for all your trouble. I’ll keep an eye on the Village Pump and check back here every so often. I like this particular LGBT project sidebar because if saves a lot of time to not have to enter its directory manually. Is there a place where the Sidebar itself can be edited? That was how I ended up here in the first place. Chrisdevelop (talk) 02:48, 30 November 2023 (UTC)
- IDK, I came here to try to figure out what the deal is. AFAICT, the sidebar is not implemented correctly on mobile plus some think that dropping the sidebar content altogether is good because it reduces page weight and thus load time. I suppose these folks grew up in the 2000s. I could not find any more info. I tried asking on Wikipedia:Village_pump_(technical)#Template_sidebar_design_alternative? but got crickets. Johnjbarton (talk) 02:40, 30 November 2023 (UTC)
- Thanks for your speedy reply and explanation. I copied the Sidebar from another similar site and didn’t see any documentation there. Where can I read this documentation? Given that most viewers are using mobile view, and therefore won’t see the Template unless they switch to Desktop view, is there either a way to edit this to display in all situations, or is there another Sidebar template that already will? Chrisdevelop (talk) 01:55, 30 November 2023 (UTC)