Jump to content

Help talk:Customizing toolbars

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Hide

How can I hide most of the default links on the left side bar like Main Page, Contents, Help, Contact page, etc? The editor whose username is Z0 17:26, 28 June 2018 (UTC)[reply]

@Z0: those links are not in a toolbar. Try WP:HD, or failing that, WP:VPT. Whichever one you choose, it is essential that you state which skin you are using; this is configured at Preferences → Appearance. --Redrose64 🌹 (talk) 21:51, 28 June 2018 (UTC)[reply]
@Z0: If you like, placing the below code in your common.css page will remove the entire sidebar for you.
/* This moves the sidebar off-screen */
#mw-panel {
    opacity: 0;
    margin-left: -11em;
}
/* This moves other stuff into the leftover space */
#content, #head-base, #footer, #mw-head-base {
    margin-left: -1px;
}
/* Nicer presentation for the left-hand tabs */
#left-navigation {
    margin-left: 1em;
}
Ammarpad (talk) 20:44, 30 June 2018 (UTC)[reply]

Wikidata

Is it possible to pull in the Wikidata Q for a page using this? Ie I want to use the Q in a url. I see we have this for the pagename mw.config.get( 'wgPageName' ) Doc James (talk · contribs · email) 20:24, 8 December 2024 (UTC)[reply]

Okay found it and it works mw.config.get( 'wgWikibaseItemId' ) Doc James (talk · contribs · email) 20:38, 8 December 2024 (UTC)[reply]