Template talk:Navbox documentation
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
|
Template:Navbox documentation is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit extended-protected}} to notify an administrator, template editor or extended-confirmed editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
Relevant BRFA
[edit]You are invited to join the discussion at Wikipedia:Bots/Requests for approval/SdkbBot 4. {{u|Sdkb}} talk 05:10, 2 August 2023 (UTC)
- @Sdkb: I didn't see this earlier, but I really appreciate what you're doing over there! :D –MJL ‐Talk‐☖ 16:52, 28 August 2023 (UTC)
Documentation
[edit]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)
- 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)
- Fixed. – Jonesey95 (talk) 18:49, 8 November 2023 (UTC)
- Oh cool! Thanks! SWinxy (talk) 00:40, 9 November 2023 (UTC)
- Fixed. – Jonesey95 (talk) 18:49, 8 November 2023 (UTC)
Proposal: Upgrade to include param TemplateStyles
[edit]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)
- 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)
- @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)
- Updated. I've also added a
|hatnotes=
param for hatnotes appearing above the banners. SWinxy (talk) 19:42, 9 November 2023 (UTC)
- Updated. I've also added a
- @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)
Outdated info
[edit]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)
- 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)
Impoving the template; can anyone help me?
[edit]I wanted to improve this template so that it could also be used in subpages for the documentation, but I did not succeed. Here is my attempt for that: [1]. I tried it with a subpage (Template:Navbox documentation/content) but then the other parameters were't working anymore. KimKelting (talk) 17:57, 16 October 2024 (UTC)
- This template isn't meant to be used inside other documentation as it's meant for very simple usages. If you need more complex usages, just use the regular documentation. You also have
|2=
and|3=
which might work with what you need. Gonnym (talk) 18:18, 16 October 2024 (UTC)- This doesn't helped me. But I have an idea, how I can improve this anyway. KimKelting (talk) 18:53, 16 October 2024 (UTC)
- I improved it successfully now KimKelting (talk) 19:24, 16 October 2024 (UTC)
- @KimKelting, why do you want to use this on subpages? You did not answer Gonnym's question, and your lack of edit summaries doesn't give any further clarity. I am going to revert the changes until you provide that and establish consensus for the change. Sdkb talk 19:32, 16 October 2024 (UTC)
- I want to use this on subpages in this cases: for example Template:Cranial nerves. This is an navigational template and has already an documentation subpage. And for this cases my contributions to this tamplate are an improvement. KimKelting (talk) 19:38, 16 October 2024 (UTC)
- @KimKelting: Ah, for that, you can use the second or third unnamed parameter here. So e.g.
{{navbox documentation|3=When editing the links in this template...}}
That should do what you want, no edits to the template itself needed! Sdkb talk 19:49, 16 October 2024 (UTC)- How??? KimKelting (talk) 19:51, 16 October 2024 (UTC)
- I want to use this on the existed documentation subpages, because it's easier. KimKelting (talk) 19:53, 16 October 2024 (UTC)
- I can't use this template on existed documentation pages and when I used the second or third parameter, then the documentation subpage is obsolet and this isn't what I want. KimKelting (talk) 20:03, 16 October 2024 (UTC)
- It looks like {{Cranial nerves}} navbox uses the {{Anatomy navbox doc}} standardized documentation, which in turn invokes {{Collapsible option}} (which is also invoked as a building block of this template). So all the reusable/standardizable elements have been reused/standardized, and this template just isn't a fit for that situation because another template (Anatomy navbox doc) fits instead.
- Is there a particular reason you want to use this one? Or is there some change to the documentation that you want to see that could only be achieved by using this? Otherwise, I don't think there's anything we need to fix. Sdkb talk 20:10, 16 October 2024 (UTC)
- Well, I want replace {{Collapsible option}} and {{Anatomy navbox doc}} with this navbox ducumentation and I want the third parameter for the anatomy navbox doc but I don't want that the documentation subpage become obsolet but I want to use the documentation subpage for this. I think for navigation templates this template fits better with all it's functions. KimKelting (talk) 20:24, 16 October 2024 (UTC)
- And I think it's easier to use an existing documentation subpage than to the information from the subpage copy the second and/or the third parameters. And I think that above all, keeping the “template-doc page pattern” is important. KimKelting (talk) 21:24, 16 October 2024 (UTC)
- I didn't consider, I can also use the single elements and include these in the documentation subpages. Sorry. KimKelting (talk) 22:14, 16 October 2024 (UTC)
- And I think it's easier to use an existing documentation subpage than to the information from the subpage copy the second and/or the third parameters. And I think that above all, keeping the “template-doc page pattern” is important. KimKelting (talk) 21:24, 16 October 2024 (UTC)
- Well, I want replace {{Collapsible option}} and {{Anatomy navbox doc}} with this navbox ducumentation and I want the third parameter for the anatomy navbox doc but I don't want that the documentation subpage become obsolet but I want to use the documentation subpage for this. I think for navigation templates this template fits better with all it's functions. KimKelting (talk) 20:24, 16 October 2024 (UTC)
- I can't use this template on existed documentation pages and when I used the second or third parameter, then the documentation subpage is obsolet and this isn't what I want. KimKelting (talk) 20:03, 16 October 2024 (UTC)
- I want to use this on the existed documentation subpages, because it's easier. KimKelting (talk) 19:53, 16 October 2024 (UTC)
- How??? KimKelting (talk) 19:51, 16 October 2024 (UTC)
- @KimKelting: Ah, for that, you can use the second or third unnamed parameter here. So e.g.
- I want to use this on subpages in this cases: for example Template:Cranial nerves. This is an navigational template and has already an documentation subpage. And for this cases my contributions to this tamplate are an improvement. KimKelting (talk) 19:38, 16 October 2024 (UTC)
- This doesn't helped me. But I have an idea, how I can improve this anyway. KimKelting (talk) 18:53, 16 October 2024 (UTC)