Hiding page tabs: Difference between revisions
Jump to navigation
Jump to search
Ehollis.wiki (talk | contribs) (Created page with "==Use case== ''When all pages within a specific namespace are only created and edited using a Page Form. '' Therefore users should not use either VisualEditor nor the source...") |
Ehollis.wiki (talk | contribs) |
||
Line 12: | Line 12: | ||
#Find the "Namespace ID:" | #Find the "Namespace ID:" | ||
##On a page within the specific namespace, right click and select "Inspect" from the menu | ##On a page within the specific namespace, right click and select "Inspect" from the menu | ||
##From the Inspect "Elements" tab, within the 3rd line, find <code><font color=OrangeRed>ns-xxxx</font></code> | ##From the Inspect "Elements" tab, within the 3rd line, find <code><font color=OrangeRed>.ns-xxxx</font></code> | ||
##The "Namespace ID" is the four digit number following <code><font color=OrangeRed>ns-</font></code> | ##The "Namespace ID" is the four digit number following <code><font color=OrangeRed>.ns-</font></code> | ||
#Go to the '''[[MediaWiki:Common.css]]''' page | #Go to the '''[[MediaWiki:Common.css]]''' page | ||
#Add the line <code><font color=OrangeRed>ns-xxxx #ca-ve-edit { display:none!important; }</font></code> to hide the VisualEditor "Edit" tab. | #Add the line <code><font color=OrangeRed>.ns-xxxx #ca-ve-edit { display:none!important; }</font></code> to hide the VisualEditor "Edit" tab. | ||
==To remove a tab per "page name"== | ==To remove a tab per "page name"== |
Latest revision as of 11:49, 6 December 2019
Use case
When all pages within a specific namespace are only created and edited using a Page Form.
Therefore users should not use either VisualEditor nor the source editor to edit the page. Removing these tabs reduce the likelihood that those editors will be used.
However, keyboard shortcuts can still be used to access these editors.
To remove a tab for all pages within a "namespace"
- Find the "Namespace ID:"
- On a page within the specific namespace, right click and select "Inspect" from the menu
- From the Inspect "Elements" tab, within the 3rd line, find
.ns-xxxx
- The "Namespace ID" is the four digit number following
.ns-
- Go to the MediaWiki:Common.css page
- Add the line
.ns-xxxx #ca-ve-edit { display:none!important; }
to hide the VisualEditor "Edit" tab.
To remove a tab per "page name"
- Go to the MediaWiki:Common.css page
- Add the line
.page-Main_Page #ca-ve-edit { display: none !important; }
to hide the VisualEditor "Edit" tab.
Tab codes
See MW:User:Subfader/Hide page tabs for more.
Keyboard shortcuts
- "Edit source": --> Shift+Alt+E
- "Edit" (VisualEditor) --> Shift+Alt+V