Manual:Removing tabs/zh

The tabs on MediaWiki can be removed by adding the following code to MediaWiki:Common.css.

Remove Tabs from Specific Pages
It is possible to remove a tab only from a particular page(s) of your choice. For example, the following:

will hide the Delete tab on the Main Page.

You only have to replace the ID of the tab and the name of the page. In the above example the ID of the tab is #ca-delete and the name of the page Main_Page.

So, for example, if you want to remove the Discussion tab on a page with the name "Example Page", use this code:

If the name of the page consists of more than one word, put underscores (_) between the words.

Lines between tabs
In the Vector skin, the light blue fading lines between tabs is called the  The light blue fading lines on the sides are left-navigation and right-navigation.

See this help page topic for more information

参见

 * Manual:FAQ
 * User:Subfader/Hide page tabs
 * How can I hide tabs for users not logged in?
 * How to hide "View History" button for unlogged users?
 * Extensions
 * Extension:GroupPermissionsManager/CustomTabs
 * Extension:DynamicTabs