templates - How can I hide the sidebar in MediaWiki? -
I would like to be able to retrieve the entire sidebar (navigation, search, toolbox) and location . In other words, the page should be wide enough to fill the place used by the sidebar.
I do not want to do this for every page, but only for specific pages, so preferably using the template.
I have found a template that hides the sidebar, but it is important that it does not retrieve the place:
& lt; Css & gt; # Column-content {margin: 0 .6EM 0;} # content {margin: 2.8 m 0}} # p-logo,. Built-sidebar, #P-Lang, #P-TB, #P-Search {Display: none;} # p-cactions {left: .1em;} #footer {display: none;} & lt; / Css>
This extension is using.
Does anybody know that I can modify it to get this place again - or is there any other solution?
Update: After helping Adrian Archer (see below), I found that the problem is in my desired skin main.css
, but I'm not sure. Thanks for the help of Adrian Archer (see his answer) + Hard work of a colleague, I have a working example (probably works for all skins). Create a template with these materials (e.g., template: hide sidebar
):
& lt; Css & gt; # Column-content {margin: 0 .6EM 0;} # content {margin: 2.8 m 0}} # p-logo,. Built-in sidebar, #P-lang, #P-TB, #P-Search {Do not display anything; } # P-cactions {LEFT: .1 AM; } #footer {display: none; } #mw_content {margin-left: 0.2em; } & Lt; / Css>
Then just add {{hide sidebar}}
to any page that you need. The sidebar area will be retrieved from the page with my question this difference is second to the last line: #mw_content {margin-left: 0.2em; }
Comments
Post a Comment