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 30:
:I intend to do this for all images, but as I expressed on the Phab task, this is nontrivial for me. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 18:49, 28 March 2022 (UTC)
== How to override "class=nomobile" to display sidebar in mobile view? ==
Hi, if to make a sidebar visible in the mobile version of an article (mobile web site), how to override <code>class=nomobile</code>? I cannot find information about this on the help page.
* '''Example:''' In the article [[Peerages in the United Kingdom]] the sidebar should be also visible in mobile view. The sidebar-template is {{tl|Peerage}}, which uses the {{tl|Sidebar with collapsible lists}}, which in turn uses {{tl|Sidebar}}.
So how to do? How to pass a parameter from {{tl|Peerage}} to {{tl|Sidebar with collapsible lists}} to {{tl|Sidebar}}? What is the right class-name to make a sidebar visible in mobile view? Thanks a lot! Regards, --[[User:W like wiki|W like wiki]] <sup>[[Nonviolent Communication|good to know]]</sup> 14:01, 12 April 2022 (UTC)
:This cannot be overridden and that will not change. <code>nomobile</code> is used because the old class <code>vertical-navbox</code> is already hard-coded to be removed on mobile, but I wanted to change that class name to reflect the name of this module and because it was shorter for the purposes of TemplateStyles, so I added <code>nomobile</code> as a result. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 17:24, 12 April 2022 (UTC)
|