Manual:Removing tabs/zh


 *  See also to remove the links in the sidebar. 

将可以把以下代码添加到MediaWiki:Common.css来删除MediaWiki上的选项卡.



移除标签
Add the following code to MediaWiki:Common.css to remove corresponding tabs:

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.

请参见此帮助页面主题以获取更多信息



参见

 * How do I add/remove tabs throughout my wiki? from FAQ
 * Hide page tabs from User:Subfader

Topic on Project:Support desk:
 * How can I hide tabs for users not logged in?
 * How to hide "View History" button for unlogged users?
 * Hide search box on Main_Page
 * How to disable view source tab for anonymous users in mediawiki 1.20