Module talk:Sidebar/Archive 6: Difference between revisions

Content deleted Content added
m Archiving 1 discussion(s) from Module talk:Sidebar) (bot
m Archiving 1 discussion(s) from Module talk:Sidebar) (bot
Line 66:
:{{para|state}} has never been an argument supported by {{tl|sidebar with collapsible lists}}. You may be confusing it for {{tl|navbox}}, which does accept that parameter. Here {{para|expanded}} is the correct argument as you have identified. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 17:25, 12 April 2022 (UTC)
:Fixed. [[User:Altanner1991|Altanner1991]] ([[User talk:Altanner1991|talk]]) 16:24, 28 May 2022 (UTC)
 
== Missing navbar in {{tl|Neolithic}}? ==
 
For some reason the v/t/e links are not appearing in {{tl|Neolithic}}. My cursory skim of the source doesn't seem to indicate an obvious reason. Can someone help please? --[[User:Joy|Joy [shallot]]] ([[User talk:Joy|talk]]) 08:13, 6 June 2022 (UTC)
 
: Never mind, I found the reason in another talk page archive - the "name" parameter was missing. Can we document this better? --[[User:Joy|Joy [shallot]]] ([[User talk:Joy|talk]]) 08:15, 6 June 2022 (UTC)
 
: The convoluted "if ... and (args.name or ...) ~= cfg.i18n.title_not_to_add_navbar) then" block should have an "else" sibling that prints some sort of a warning message, whether in the live output or that new box above the edit preview. --[[User:Joy|Joy [shallot]]] ([[User talk:Joy|talk]]) 08:19, 6 June 2022 (UTC)
::Why should we warn people about this? Sidebars are not like navboxes which are basically guaranteed to have the relevant parameter. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 15:13, 6 June 2022 (UTC)
:::It all comes down to the same thing - no {{para|name}}, no navbar. In that respect, sidebars are no different from navboxes. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 19:52, 6 June 2022 (UTC)
 
::: We should warn them because it's obfuscated otherwise, it's not intuitive at all, you have to delve into the documentation to understand this quirk. It's bad design. --[[User:Joy|Joy &#91;shallot&#93;]] ([[User talk:Joy|talk]]) 08:23, 11 June 2022 (UTC)