Template talk:Navbox documentation

Page contents not supported in other languages.
Source: Wikipedia, the free encyclopedia.
WikiProject iconWikipedia Help Template‑class
WikiProject iconThis template is within the scope of the Wikipedia Help Project, a collaborative effort to improve Wikipedia's help documentation for readers and contributors. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. To browse help related resources see the Help Menu or Help Directory. Or ask for help on your talk page and a volunteer will visit you there.
TemplateThis template does not require a rating on the project's quality scale.

Relevant BRFA

 You are invited to join the discussion at Wikipedia:Bots/Requests for approval/SdkbBot 4. {{u|Sdkb}}talk 05:10, 2 August 2023 (UTC)[reply]

@Sdkb: I didn't see this earlier, but I really appreciate what you're doing over there! :D –MJLTalk 16:52, 28 August 2023 (UTC)[reply]

Documentation

The message box at the top of the template says "This template does not display in the mobile view of Wikipedia; it is desktop only. Read the documentation for an explanation.". What documentation is it referring to? Thanks. DH85868993 (talk) 06:11, 1 September 2023 (UTC)[reply]

Yeah, it isn't explained anywhere. I'm not sure if there's a documentation page... documenting this well. SWinxy (talk) 18:31, 8 November 2023 (UTC)[reply]
 Fixed. – Jonesey95 (talk) 18:49, 8 November 2023 (UTC)[reply]
Oh cool! Thanks! SWinxy (talk) 00:40, 9 November 2023 (UTC)[reply]

Proposal: Upgrade to include param TemplateStyles

Please add optional parameter |styles= (alias: |TemplateStyles=) which takes the value of the TemplateStyles file used by the template, and displays it in the style of template {{Uses TemplateStyles}}. Ideally, there should be a default value, so that if the param is included with no value, then the value passed to {{Uses TemplateStyles}} should be a file name consisting of the name of the template with /styles.css appended; that is, for Template:Foo, including |styles=Template:Foo/styles.css in {{Navbox documentation}} would be equivalent to including the parameter with no value. Thanks, Mathglot (talk) 17:51, 8 November 2023 (UTC)[reply]

The second unnamed parameter can be used instead. It can be used for both adding more template banners, but also for things like {{Template shortcut}} and {{Uses TemplateStyles}}. SWinxy (talk) 18:28, 8 November 2023 (UTC)[reply]
@SWinxy:, thanks! That's really not at all clear from the documentation; guess that makes this a heterological template. I may have to come back and fix the doc. Thanks again! Mathglot (talk) 06:19, 9 November 2023 (UTC)[reply]
Updated. I've also added a |hatnotes= param for hatnotes appearing above the banners. SWinxy (talk) 19:42, 9 November 2023 (UTC)[reply]

Outdated info

Hi,

The template currently reads "This template does not display in the mobile view of Wikipedia; it is desktop only. Read the documentation for an explanation.", but the template does display on mobile.

The 2024 United States presidential election template is one that displays properly, for example.

Thanks, David O. Johnson (talk) 18:39, 8 July 2024 (UTC)[reply]

The navbox {{2024 United States presidential election}} is used at the bottom of Larry Elder. When I view that page in the mobile view in Safari on iOS, the navbox is not displayed. Also, when I click "Mobile view" in Firefox on my Mac OS computer, I do not see that navbox template at the bottom of Larry Elder. That is what this documentation template is telling editors. – Jonesey95 (talk) 19:10, 8 July 2024 (UTC)[reply]