Help:Infobox/user style: Difference between revisions
Jump to navigation
Jump to search
>SMcCandlish (creating documentation transclude) |
>SMcCandlish (tweak) |
||
Line 5: | Line 5: | ||
To hide all infoboxes, add the following to [[Special:MyPage/common.css]], on a line by itself: | To hide all infoboxes, add the following to [[Special:MyPage/common.css]], on a line by itself: | ||
<source lang="css">.infobox { display: none; }</source> | <source lang="css">.infobox { display: none; }</source><!-- | ||
<!-- Needs Special:Mypage/common.js options for: | |||
Needs Special:Mypage/common.js options for: | |||
* Making infoboxes collapsible | * Making infoboxes collapsible | ||
** Making them auto-collapsed | ** Making them auto-collapsed | ||
* Moving infoboxes to bottom of page | * Moving infoboxes to bottom of page | ||
--><noinclude> | --><noinclude> | ||
{{Documentation|content= | {{Documentation|content= |
Revision as of 05:57, 6 March 2016
Infoboxes and user style
Logged-in users can use user CSS to hide infoboxes in their own browsers.
To hide all infoboxes, add the following to Special:MyPage/common.css, on a line by itself: <source lang="css">.infobox { display: none; }</source>
Documentation
This documentation snippet is transcluded at Help:Infobox, Template:Infobox/doc, and other places where this information is relevant.
As a template, this snippet takes a |heading=
parameter to replace the ==Infoboxes and user style==
section heading code, as needed.