:Wikipedia:Catalogue of CSS classes
{{Short description|Styles available to Wikipedia editors}}
{{redirect|WP:CLASS|the quality assessment scheme|WP:ASSESS|student assignments|WP:ASSIGN}}
{{shortcut|WP:CLASS}}
{{Warning|image=Stop hand nuvola.svg |Many links to CSS files on this page are dead, therefore its contents should not be trusted until it is thoroughly checked and rewritten.}}
The website HTML, generated Wikipedia content and the JavaScripts of Wikipedia define hundreds of classes
and IDs
. The use of most of them is not clearly explained or described anywhere. Most of these classes and IDs are used for styling using CSS and identify parts of the page that this styling should apply to. They can also be used to make manipulations to the webpages using JavaScript and some have additional semantic meaning and are used by external parties.
This page is an attempt to catalogue and describe the most used and most important classes and IDs used on this wiki.
Before getting started
There are many intricacies about Cascading Style Sheets and JavaScript, too many to discuss all of them here. Some important points however:
- Classes are defined in the HTML document (generated by the server or by JavaScript). They are used as [https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/Selectors selectors] in CSS.
- Learn to use the browser inspectors of [https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector Firefox], [https://msdn.microsoft.com/en-us/library/gg589512(v=vs.85).aspx lE], [https://developer.chrome.com/devtools/index Chrome] or [https://developer.apple.com/library/safari/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Introduction/Introduction.html Safari] to inspect the webpages.
- By default much of the CSS and JavaScript resources are processed for efficiency. Append
?debug=true
or&debug=true
to the URL to make them more readable when inspecting. - For styling to apply there are two concepts that are important:
- Load order
Things defined later have priority and thus override things defined 'earlier'. We will try to give an overview of load order, later on. - Specificity
If load order is failing you when applying your styling, you should know that more complex selectors take priority over order of definition. This is called [https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity specificity]. It is best practice to keep specificity as low as possible in order to be able to override contextually with lil code.{{Clarify|reason=What is "lil code"?}} - Using
!important
is generally bad. Use different forms of specificity instead.
CSS is complex. Follow the links above and the other links throughout this article to learn more. If you do not understand how Cascading Style Sheets and JavaScript work and what symbols to use, please begin with Wikipedia's own articles about CSS and JavaScript, which contain a list of references and external links to relevant material.
Stylesheets and JavaScript
:Note: try searching through git for the core skin CSS/JS (eg. Go to [https://phabricator.wikimedia.org/diffusion/SVEC/browse/ /skins/Vector/]
and [https://phabricator.wikimedia.org/diffusion/SMNB/browse/ /skins/MonoBook/]
and [https://phabricator.wikimedia.org/diffusion/MW/browse/master/resources/src/mediawiki.skinning /core.git/resources/src/mediawiki.skinning]
for the current default/global sets).
The following table is really outdated since MediaWiki 1.17 (June 2011). The complexity of MediaWiki itself has increased significantly and many of the locations of the styling rules have been split out and are only collected and bundled when delivered to the browser.
One way to inspect the core CSS and JS files is to inspect a page with Web development tools while loading any Wikipedia page with ?debug=true
URL parameter (this will separate different CSS files, prevent minification and preserve comments). Another way is to look at these skin files [https://phabricator.wikimedia.org/source/Vector/browse/master/ (example of Vector in Git)]; note that most MediaWiki core JS files are to be found in [https://phabricator.wikimedia.org/source/mediawiki/browse/master/resources/src/ /resources/src directory].
class="wikitable plainlinks" border="1"
! Skin ! Type ! style="width:25em;"| Stylesheets (in cascade order) ! Javascript (in order) ! Notes |
style="vertical-align: top;"
| title="Skin" | Vector (default) : (vector) | style="background: #DDF;" title="type" | Template | title="Style" |
| title="Script" |
| title="Notes" | Default skin for anonymous users; |
style="vertical-align: top;"
| title="Skin" | Modern : (modern) | style="background: #DDF;" title="Type" | Template | title="Style" |
| title="Script" |
| title="Notes" | No IE fixes (?), unique print css |
style="vertical-align: top;"
| title="Skin" | MonoBook : (monobook) | style="background: #DDF;" title="Type" | Template | title="Style" |
| title="Script" |
| title="Notes" | Replaced by Vector as the default skin for anonymous and new users |
; Notes
= Page/action specific =
Several types of MediaWiki pages, actions, and preferences load conditional stylesheets and javascript, to reduce the burden of unnecessary script loading.
class="wikitable plainlinks" border="1"
! style="width:12.0em;"| Script or style ! style="width:16.0em;"| Page or action ! Description |
[https://phabricator.wikimedia.org/diffusion/SVN/browse/trunk/phase3/skins/common/allmessages.js?view=markup allmessages.js]
| Filtering tools for Allmessages list. |
[https://phabricator.wikimedia.org/diffusion/ECTR/browse/master/modules/ext.categoryTree.js categorytree.js] [https://phabricator.wikimedia.org/diffusion/ECTR/browse/master/modules/ext.categoryTree.css categorytree.css] | Special:CategoryTree and |
[https://phabricator.wikimedia.org/diffusion/SVN/browse/trunk/phase3/resources/mediawiki.action/mediawiki.action.history.diff.css diff.css]
| Diff pages | Stylesheet specifically for diff tables. |
[https://phabricator.wikimedia.org/diffusion/SVN/browse/trunk/phase3/skins/common/edit.js?view=markup edit.js]
| action=edit | Edit page tools, split from wikibits.js. |
[https://phabricator.wikimedia.org/diffusion/SVN/browse/trunk/phase3/skins/common/feed.css?view=markup feed.css]
| RSS/Atom feeds | "Make RSS and Atom feeds at least semi-legible to folk who accidentally load them in a browser." |
[https://phabricator.wikimedia.org/diffusion/SVN/browse/trunk/phase3/skins/common/history.js?view=markup history.js]
| action=history | History radio button list display. |
[https://phabricator.wikimedia.org/diffusion/SVN/browse/trunk/phase3/skins/common/metadata.js?view=markup metadata.js]
| Image pages with EXIF metadata | Show/hide tool for extended metadata list. |
[https://phabricator.wikimedia.org/diffusion/SVN/browse/trunk/phase3/skins/common/mwsuggest.js?view=markup mwsuggest.js]
| If not disabled in preferences | Activates new search suggest ajax (enabled by default on Wikimedia). |
[https://phabricator.wikimedia.org/diffusion/SVN/browse/trunk/phase3/skins/common/prefs.js?view=markup prefs.js]
| Dynamic tabs and other tools in user preferences. |
| action=edit | Live preview module, disabled on Wikipedia. |
[https://phabricator.wikimedia.org/diffusion/SVN/browse/trunk/phase3/skins/common/protect.js?view=markup protect.js]
| action=protect | Dynamic updating of protect form elements. |
[https://phabricator.wikimedia.org/diffusion/SVN/browse/trunk/phase3/skins/common/rightclickedit.js?view=markup rightclickedit.js]
| If enabled in preferences | Activates section editing by right-clicking on section titles. |
[https://phabricator.wikimedia.org/diffusion/SVN/browse/trunk/phase3/skins/common/upload.js?view=markup upload.js]
| Dynamic updating of upload form elements, and template selection preview. |
= User group specific =
Special stylesheets and JavaScript are loaded for some user groups.
class="wikitable plainlinks" border="1"
! Script or style ! Description |
MediaWiki:Group-abusefilter.css
| For abuse filter managers. |
MediaWiki:Group-abusefilter-helper.css
| For abuse filter helpers. |
MediaWiki:Group-autoconfirmed.css
| For autoconfirmed editors. |
MediaWiki:Group-checkuser.css
| For checkusers. |
MediaWiki:Group-extendedconfirmed.css
| For extended-confirmed editors. |
MediaWiki:Group-extendedmover.css
| For page movers. |
MediaWiki:Group-patroller.css
| For new page patrollers. |
MediaWiki:Group-sysop.css MediaWiki:Group-sysop.js | For admins. |
MediaWiki:Group-templateeditor.css
| For template editors. |
MediaWiki:Group-user.css MediaWiki:Group-user.js | For registered users. |
Classes
{{update|section|date=July 2022}}
We often add the name of a template or MediaWiki message itself as a class name in the code of the template or message. This allows users to style the message, and it allows future skinning of the message in the global CSS files. Please do not document such class names here, unless they are actually used in some CSS or JavaScript file, since there are (or at least should be) literally thousands of such class names.
class="wikitable" |
class
! description |
---|
| A CSS pseudo-class. See the [//www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes W3C standard]. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) | {{N/A}} |
active
| Used on the active tab button (monobook). | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/MonoBook.php?view=markup skins/MonoBook.php] |
allpagesredirect
| Redirect in the listings of Special:Allpages and Special:Prefixindex. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/specials/SpecialAllpages.php?view=markup includes/specials/SpecialAllpages.php] |
ambox, ambox-*
| Article message box template styles. | MediaWiki:Common.css, MediaWiki:Print.css (hidden when printed from articles) | {{tl|ambox}} meta-template that is used to create most article message boxes. |
autocomment
| Used for the section bits in edit summaries, i.e. the part between /* and */ on watchlist and rc pages. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/shared.css?view=markup common/shared.css] | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php] |
autonumber
| Class used in the interface for external links | {{N/A}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/parser/Parser.php?view=markup includes/parser/Parser.php] |
autosigned
| Class used to format automatic signatures | {{N/A}} | {{tl|Unsigned}} |
boilerplate
| (deprecated) Another template class | {{N/A}} | {{N/A}} |
catlinks
| Category links normally at the bottom of the page. | | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Skin.php?view=markup includes/Skin.php] |
center
| Used to reproduce a container for center-aligned contents, also a replacement to the | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php] |
citation
| Marks a full citation. | {{temp|Citation}} |
cleanup
| (Deprecated) Used on some cleanup templates | |
cmbox, cmbox-*
| Category message box template styles. | {{tl|cmbox}} meta-template that is used to create most category message boxes. |
collapsible, collapsed, autocollapse, innercollapse/outercollapse
| Allows tables to be expanded and collapsed using associated javascript. See Help:Collapsing | {{tl|navbox}} |
comment
| Edit summaries on watchlist and rc pages. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php] |
dangerousLink
| Used on Image pages to not have dangerous file types display previews. | {{dunno}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/ImagePage.php?view=markup includes/ImagePage.php] |
def
| Used in the allmessagestable, Special:Allmessages (System messages) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/specials/SpecialAllmessages.php?view=markup includes/specials/SpecialAllmessages.php] |
diff, diff-addedline, diff-context, diff-deletedline, diff-ntitle, diff-otitle, diffchange
| Used by the diff view | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/diff.css?view=markup common/diff.css], MediaWiki:Monobook.css | skin on diff view, [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/normal/RandomTest.php?view=markup includes/normal/RandomTest.php] |
disputed
| (Deprecated) A cleanup class. | {{dunno}} | |
editlink
| Class to mark an Edit link for use in templates. | MediaWiki:Print.css (hidden when printed) | {{tl|ed right}}, {{tl|ed2}}, {{tl|ed}} |
error
| Marks up errors | MediaWiki:Monobook.css (only defined for paragraph elements), [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (line 278) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Math.php?view=markup includes/Math.php], {{tl|db-t3}} |
editHelp
| Interface section | {{dunno}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/EditPage.php?view=markup includes/EditPage.php] |
editOptions
| Used in the div surrounding the minor edit and watch this page checkboxes. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css], | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/EditPage.php?view=markup includes/EditPage.php] |
editsection
| Class used in the interface for section | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (hidden when printed) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php] |
edittools-text
| Prevents the static edittools from flashing before the compact edittools is loaded. |
external
| Class used in the interface for external links | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php] |
extiw
| Used for Interwiki links. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php] |
expansion
| (Deprecated) A type of cleanup class | {{dunno}} | |
div.fmbox-warning, mw-warning-with-logexcerpt, mw-cascadeprotectedwarning
| Pink {{tl|fmbox}} warning style for div based system warning notices. The interface renders a div with one of the "mw-" classes around messages like MediaWiki:Protectedpagewarning. | MediaWiki:Editingold, [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/EditPage.php?view=markup includes/EditPage.php] |
firstHeading
| Used on the title of the page, e.g. "{{FULLPAGENAME}}" | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/MonoBook.php?view=markup skins/MonoBook.php] |
floatright, floatleft, floatnone
| Used to float something to the right/left of the page (or not float it at all) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, protection) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php] |
free
| Used in the interface for external links | {{N/A}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/parser/Parser.php?view=markup includes/parser/Parser.php] |
hatnote
| Used to mark disambiguation links at the top of pages. | {{tl|hatnote}} |
hlist
| Renders lists in horizontal style | {{tl|flatlist}} |
hlist inline
| Allows nesting horizontal lists on one line | |
image
| Interface class used for links to images. | {{dunno}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php] |
imbox, imbox-*
| Image pages message box template styles. | {{tl|imbox}} meta-template that is used to create most image message boxes. |
interwiki-xx
| Interface class used for interlanguage links in the page margin for language with code xx. | {{N/A}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/SkinTemplate.php?view=markup includes/SkinTemplate.php] |
infobox
| Formatting for article infoboxes |
internal
| Used in the interface on "Edit summary" and the question mark by the minor edit checkbox links, and in the links in the copyright statement(to the GFDL and Wikipedia:Copyrights). | {{dunno}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Parser.php?view=markup includes/Parser.php], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/languages/Language.php?view=markup languages/Language.php], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php] |
ltr and rtl
| Set in HTML body element. ltr = Page text goes "Left To Right" like now. rtl = Text goes "Right To Left", like in the Arabic Wikipedia. | | body |
magnify
| The two "magnify" rectangles in the caption of a thumb'ed image ([http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/images/magnify-clip.png?view=markup magnify-clip.png]) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/shared.css?view=markup common/shared.css], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup Linker.php] (line 675) |
mbox-inside
| Tag for templates that might contain mboxes like {{tl|imbox}} and {{tl|tmbox}}. So that mboxes can detect that they are inside and adapt their margins accordingly. | {{tl|information}}, {{tl|WikiProjectBanners}} and {{tl|WikiProjectBannerShell}} should have this class. |
mbox-text, mbox-image, mbox-imageright, mbox-empty-cell
| Used in <td> and <th> elements inside message boxes. See Wikipedia:Ambox CSS classes. | {{tl|ambox}}, {{tl|tmbox}}, {{tl|imbox}}, {{tl|cmbox}}, {{tl|ombox}}, and {{tl|fmbox}} meta-templates that are used to build most message boxes. |
mediawiki
| Set in HTML body element, to identify pages generated by MediaWiki. | | as of 31533 this should appear in all skins |
metadata
| Used to mark elements in articles that are considered not to be part of the proper content of the article. These are annotations, maintenance templates, navigation links, media controls etc. These elements are often filtered out of 'alternative' views of the content, like CD-ROM editions, bookprint, webpage print, mobile views etc. | MediaWiki:Print.css (hidden when printed from articles) | {{tl|dmbox}}, {{tl|Catfd}}, {{tl|tfd}}, {{tl|ambox}} |
minor
| Used for the "m" marking minor edits. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/specials/SpecialContributions.php?view=markup includes/specials/SpecialContributions.php] |
mufi
| Forces fonts used for Medieval Unicode Font Initiative (discussion) | | {{tl|mufi}} |
mw-headline
| The headline in a heading (without the "[edit]" link) | {{dunno}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php] |
mw-headline-number
| The headline number, if auto-numbering the section headings (a user preference) is enabled | | [//gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/parser/Parser.php;hb=55f4eb263b9d480224b044ba1e55ba08da39828a#l4173 includes/parser/Parser.php] |
mw-hidden-cats-hidden
| "Hidden categories" with preference "Show hidden categories" off | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/shared.css?view=markup common/shared.css] | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Skin.php?view=markup includes/Skin.php] |
mw-hidden-cats-ns-shown
| "Hidden categories" in the Category namespace | | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Skin.php?view=markup includes/Skin.php] |
mw-hidden-cats-user-shown
| "Hidden categories" with preference "Show hidden categories" on | | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Skin.php?view=markup includes/Skin.php] |
mw-no-invert
| Wikipedia:Dark mode (gadget) prevent flipping of the colors of an element when in dark mode | MediaWiki:Gadget-dark-mode.css | |
mw-stack
| Used to fix inconsistencies between pages with and without {{tl|Stack}} / {{tl|Stack begin}} on mobile view. | {{dunno}} | {{tl|Stack}}, {{tl|Stack begin}} |
mw-tag-markers
| Tags of the Edit filter | |
namespacesettings
| Interface section on Recent Changes page | {{dunno}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/specials/SpecialRecentchanges.php?view=markup includes/specials/SpecialRecentchanges.php] |
namespaceselector
| Part of the Recent Chages page | {{dunno}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/GlobalFunctions.php?view=markup includes/GlobalFunctions.php] |
navbar
| v•d•e links in navboxes and other templates | {{tl|navbar}} |
navbox, navbox-*
| Navigational boxes | {{tl|navbox}} |
rowspan="2" | new
| The redlink class; used on internal links to pages that do not have any undeleted history. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection), [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Skin.php?view=markup includes/Skin.php], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/languages/Language.php?view=markup languages/Language.php] |
Used in the allmessagestable, Special:Allmessages (System messages)
| [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/specials/SpecialAllmessages.php?view=markup includes/specials/SpecialAllmessages.php] |
newpage
| The "N" used for new pages on watchlist, etc. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/ChangesList.php?view=markup includes/ChangesList.php] |
noarticletext
| See mw:Manual:Interface/Noarticletext. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Article.php?view=markup includes/Article.php] |
nomobile
| Hides content for mobile view. | {{dunno}} | {{tl|Random slideshow}}, {{tl|Sidebar}}, {{tl|Sidebar with collapsible lists}}, and others. |
nonumtoc
| Hides automatic numbering on the table of contents (in combination with explicitly stating | Articles |
noprint
| Hides content when printed. But for most usage, see metadata above instead. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css], MediaWiki:Print.css (hidden when printed) | {{tl|ed right}}, {{tl|ed2}}, {{tl|ed}}, {{tl|edit}}, {{tl|Shortcut}}, and others. |
noresize
| Prevents images from being compressed to smaller size on Vector 2022 (desktop) and Minerva (mobile) skins, adds scrollbars on mobile view. | {{dunno}} | {{tl|Annotated image}}, {{tl|Image label begin}}, {{tl|Superimpose}}, {{tl|Wide image}}, and others |
notice
| (Deprecated) Style for "notices"? Used to be used in {{tl|disambig}} etc. | |
id="nounderlines"
| nounderlines | Disables underlines on links who are children of this element (original request) | Articles |
nourlexpansion
| When printing only print the title of the link and not the link itself. (replaces "plainlinksneverexpand") | |
nowrap
| Generic no-wrap class. | |
nowraplinks
| Prevents line wraps inside links, but allows word wraps between the links and in normal text. Useful for instance for long link lists. | {{tl|nowraplinks}}, {{tl|nowraplinks end}}, {{tl|navbox}} |
ns--1, ns-0 - ns-101
| Set in HTML body element. Shows which namespace the page is in. ns-0 (main), ns-1 (Talk) and so on. "ns--1" is used on all "Special:" pages. See Wikipedia:Namespace#Enumeration. | | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Skin.php?view=markup includes/Skin.php] |
ns-talk, ns-subject, ns-special
| Set in HTML body element. Shows which namespace the page is in. "ns-talk" = all talk pages. "ns-subject" = all non-talk pages, such as articles, "Wikipedia:", "Image:" and so on. "ns-special" = all "Special:" pages (see Special:SpecialPages). See also Wikipedia:Namespace. | | |
ombox, ombox-*
| Other pages message box template styles. | {{tl|ombox}} meta-template that is used to create most other pages message boxes. |
orig
| Used in the allmessagestable, Special:Allmessages (System messages) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/specials/SpecialAllmessages.php?view=markup includes/specials/SpecialAllmessages.php] |
page-Pagename
| Each page has its own name as a class in the body tag. Formed by the pagename with spaces and colons replaced by underscores, and prefixed by "page-". Like this page's body has the class "page-Wikipedia_Catalogue_of_CSS_classes" in its body tag. | | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Skin.php?view=markup includes/Skin.php] |
pBody
| Used all-around on the various body-like pieces of the interface, including personal tools, sidebar, and tabs. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/MonoBook.php?view=markup skins/MonoBook.php] |
plainlinks
| Disables the external link arrow | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/shared.css?view=markup common/shared.css] | {{tl|Catfd}}, {{tl|tfd}}, and many other places. |
plainlinks2
| Changes the color of external links to en: to the internal links color. | |
plainlinksneverexpand
| (Deprecated) Replaced with "plainlinks nourlexpansion" | | |
plainrowheaders
| Changes the font style of table row headers that have the | |
portlet
| Used on the tab buttons, and the left navigation columns (in monobook) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/MonoBook.php?view=markup skins/MonoBook.php], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/config/index.php?view=markup config/index.php] |
prettytable
| (Removed) Predecessor of wikitable. No longer works. | | |
printfooter
| Used to mark the footer of the page in the interface. | {{dunno}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Skin.php?view=markup includes/Skin.php] |
protected
| (Deprecated) Used on some templates that go on protected pages. | {{dunno}} | |
rcoptions
| Interface section on Recent Changes page | {{dunno}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/specials/SpecialRecentchanges.php?view=markup includes/specials/SpecialRecentchanges.php] |
redirect-in-category
| redirect in the list of members, on a category page | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/CategoryPage.php?view=markup includes/CategoryPage.php] |
redirectText
| Span around the link on a redirect page | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css], MediaWiki:Vector.css | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Article.php?view=markup includes/Article.php] |
reference
| The class is assigned to the reference note links occurring within the article text and generated by Cite.php. |
reference-accessdate
| Some (not all as of 2008-06-08) citation templates wrap the "Retrieved on date" in this class, so it can be hidden in CSS optionally or by default. | | |
references, reflist, refbegin
| These classes are assigned to the ordered list of reference notes generated by Cite.php, and to the {{tl|Reflist}} and {{tl|Refbegin}} templates. | {{tl|Reflist}}, {{tl|Refbegin}} |
references-column-count, references-column-count-n, references-column-width
| Assigned to reference lists with columns | | {{tl|Reflist}}, {{tl|Refbegin}} |
references-small
| (Removed [https://en.wikipedia.org/w/index.php?title=MediaWiki:Common.css&diff=403515579&oldid=403494668]) For small-font references at 90% in articles (in any format, not only Cite.php). To be used where the per article consensus demands smaller font for the references. (original discussion). Also used to style the font size in tables. {{search link|insource:/references-small/i|search in articles}} | Manually assigned by editors with {{tag|div|params=class="references-small"}} |
rimage
| (Deprecated) Less useful equivalent of | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | {{N/A}} |
rtl
| "Right To Left" text direction, see ltr (Left To Right). | | |
searchButton
| Used in the interface on exactly what you would expect. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/MonoBook.php?view=markup skins/MonoBook.php] |
selected
| Used on the currently selected tab button in the interface. It changes the border-color. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/SkinTemplate.php?view=markup includes/SkinTemplate.php], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/MonoBook.php?view=markup skins/MonoBook.php] |
selflink
| Used on links pointing to the same page (e.g. Wikipedia:Catalogue of CSS classes) | {{dunno}} | {{dunno}} |
skin-skinname
| Each skin has its own name as a class in the | | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Skin.php?view=markup /includes/Skin.php] |
sortable
| Related to sortable tables | {{N/A}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikibits.js?view=markup wikibits.js] |
sortarrow
| Related to sortable tables | {{N/A}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikibits.js?view=markup wikibits.js] |
sortbottom
| Related to sortable tables | {{N/A}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikibits.js?view=markup wikibits.js] |
sortheader
| Related to sortable tables | {{N/A}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikibits.js?view=markup wikibits.js] |
special
| Used for non-links in watchlists, etc. Like the "(diff)" on a new page. | {{dunno}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/QueryPage.php?view=markup includes/QueryPage.php], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/ImagePage.php?view=markup includes/ImagePage.php] |
subpages
| used on the line listing the parent of a subpage | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Skin.php?view=markup includes/Skin.php], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/SkinTemplate.php?view=markup includes/SkinTemplate.php] |
sysop-show
| Makes the enclosed content visible to admins. Only use this for very short items (such as the red "Group notice" and "Page notice" editnotice links), since some browsers show hidden items to all users. | {{tl|editnotice load}} |
template-documentation
| For the box around template documentation. |
templatesUsed
| surrounds the div listing the templates used on a page, on the edit page. | {{dunno}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/EditPage.php?view=markup includes/EditPage.php] |
texhtml
| applies to span element that contains a formula | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/shared.css?view=markup common/shared.css], MediaWiki:Common.css | |
text
| Class used in the interface for external links | {{N/A}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/parser/Parser.php?view=markup includes/parser/Parser.php] |
thumb
| Outer div of a thumbnail. Its border (margin in monobook) is the outer "margin" for thumbnails. Also doubles as the inner padding for galleries. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css], MediaWiki:Common.css, MediaWiki:Monobook.css, [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php] |
thumbborder
| On the image when | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php] |
thumbcaption
| Div with the thumbnail's caption. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/shared.css?view=markup common/shared.css], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php] |
thumbimage
| On the thumbnail. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php] |
thumbinner
| Inner div of a thumbnail. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css], MediaWiki:Common.css | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php] |
tleft, tright
| Floated thumbnails | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup includes/Linker.php] |
tmbox, tmbox-*
| Talk page message box template styles. | {{tl|tmbox}} meta-template that is used to create most talk page message boxes. |
toc, toctitle, toclevel-1, toclevel-2, toctext, tocnumber, toctoggle
| Used by the Table of Contents. Should not be used by anything else; use class="toccolours" or a more semantic class (like "navbox") instead. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | skin on TOC |
toccolours
| Same formatting as class="toc", but can be used by other things, not useful on Vector 2022 skin. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/oldshared.css?view=markup common/oldshared.css], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/modern/main.css?view=markup modern/main.css], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/vector/screen.css?view=markup vector/main-ltr.css], MediaWiki:Modern.css, MediaWiki:Monobook.css | lots of places |
topicon
| Formatting for top right icons like featured article star, protected page etc. | {{tl|top icon}} |
unsortable
| Related to sortable tables | {{N/A}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikibits.js?view=markup wikibits.js] |
userlinks
| Username, for unambiguous letterforms like | – | {{tl|userlinks}} |
usermessage
| "You have new messages" box | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection), [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/modern/main.css?view=markup modern/main.css] (screen, projection) | – |
watchlistredir
| For redirects on Special:Watchlist/edit | |
wikitable
| For content tables | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/shared.css?view=markup common/shared.css] | everywhere |
wpb
| For WikiProject banner tables. | {{tl|WPBannerMeta}} and other WikiProject banners |
wpb-header
| For the header row of a WikiProject banner. | {{tl|WPBannerMeta}} and other WikiProject banners |
wpbs
| For WikiProject banner shells | {{tl|WikiProjectBannerShell}} |
wrap
| Generic wrap class to override nowrap. | |
wraplinks
| Allows line wraps inside links (to override nowraplinks) | |
class
! description ! in CSS¹ ! in HTML¹ |
= Classes not used in style sheets =
Wikipedia also uses a number of classes with functions unrelated to style sheets.
- Microformat classes as listed in Microformat classes.
noviewer
, which causes Media Viewer to disregard contentsrobots-nocontent
, which causes Yahoo!'s crawler to disregard contents per [http://www.ysearchblog.com/2007/05/02/introducing-robots-nocontent-for-page-sections/]nopopupnotice
, prevents EditNoticesOnMobile (and in the future possibly the apps) from automatically popping up an edit notice. See also phab:T312999.
IDs
{{shortcut|WP:IDS}}
border="1" class="wikitable"
! id ! Description ! in CSS/JS ! in HTML |
about
| Part of the interface (footer). | | |
allmessagestable
| Table with a list of system messages available in the MediaWiki: namespace. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] |
article
| Main content area for standard-derived skins. Everything on MediaWiki:Common.css must have any effect only within the element with this ID. | | standard-derived skins around content |
bodyContent
| Main content area for monobook-derived skins. Everything on MediaWiki:Common.css must have any effect only within the element with this ID. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) | monobook-derived skins around content |
collapsibleTablen, collapsibleButtonn
| Used by the collapsible tables code |
column-content
| part of the rendered page structure | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection), [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | {{dunno}} |
column-one
| part of the rendered page structure | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection), [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | {{dunno}} |
confirmemail
| Notice asking for users to confirm their email address | {{dunno}} | MediaWiki:Recentchangestext, Wikipedia:Administrators' noticeboard/Header |
content
| part of the rendered page | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection), [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | {{dunno}} |
contentSub
| surrounds the notice of the partents of subpages | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) | {{dunno}} |
coordinates
| Used to show the coordinates below the page title (original discussion, talk page) | {{tl|coord/display/inline,title}} |
copyright
| Part of the interface (footer). | | |
delete-reason delete-criterion | Added by deletion templates (CSD/XfD/PROD); picked up by JavaScript and used to preload the deletion summary when such pages are deleted. | CSD, XfD and PROD deletion templates |
differences-prevlink
| Used in the diff pages | {{dunno}} | {{dunno}} |
disambig
| (Deprecated) Old disambiguation notices style. And it used to trigger the display of {{tl|disambig editintro}} when editing a disambig page. | MediaWiki:Common.css MediaWiki:Common.js | Was used in {{tl|dmbox}} and disambig boxes built with it. |
disambigbox
| Triggers the display of {{tl|disambig editintro}} when editing a disambig page. | Used in {{tl|dmbox}} and disambig boxes built with it. |
disclaimer
| Part of the interface (footer). | | |
editform
| Part of the interface. | | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/EditPage.php?view=markup includes/EditPage.php] |
editpage-copywarn
| Part of the interface. | | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/EditPage.php?view=markup includes/EditPage.php] |
editpage-copywarn2
| Part of the interface. | |
editpage-copywarn3
| Part of the interface. | |
editpage-specialchars
| Part of the interface. |
footer
| part of the rendered page | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | {{dunno}} |
GeoGroupTemplate
| Allow direct referencing of box (used once per page) containing map links | (none) | {{Tl|GeoGroupTemplate}} |
globalWrapper
| surrounds the whole page | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection), [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | {{dunno}} |
jump-to-nav
| Links to jump to the navigation or the search bar, mainly for screen readers. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | {{dunno}} |
lastmod
| Part of the interface. | | |
longpagewarning
| Allows hiding of the "long page" warning via user CSS | |
mw-youhavenewmessages
| So JavaScript can find the "You have new messages" text in all skins. | |
privacy
| Part of the interface. | | |
searchBody
| Part of the interface. | | |
searchGoButton
| Part of the interface. | | |
searchInput
| Part of the interface. | | |
searchform
| Part of the interface. | | |
searchTarget
| {{dunno}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] | {{dunno}} |
searchTargetContainer
| {{dunno}} | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] | {{dunno}} |
shared-image-desc
| Wrapper around the image description from commons | | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/ImagePage.php?view=markup includes/ImagePage.php] |
siteNotice
| Site notices | MediaWiki:Monobook.css, [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css], [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikiprintable.css?view=markup common/wikiprintable.css] (hidden), [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (hidden) | skin around MediaWiki:Sitenotice, skin around MediaWiki:Anonnotice |
siteSub
| MediaWiki:Tagline - "From Wikipedia, the free encyclopedia", appears under the page title. | MediaWiki:Monobook.css, [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (hidden) | |
stub
| Stub notices (wikiproject) | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) (only on links, i.e. A elements) [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | {{tl|stub}}, all stub templates (list) |
tfd
| {{dunno}} | {{tl|Catfd}}, {{tl|tfd}} |
toc, toctitle
| Table of Contents | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | skin on TOC |
top
| anchor at the top of the page, used for links that go "back to the top" | {{dunno}} | {{dunno}} |
villagepumpfaq
| Allows the user to hide the FAQ on the top of Wikipedia:Village pump (technical) | |
watchlist-message
| | |
watchlist-message-RfX
| | |
wikiPreview
| Part of the interface. | | |
= ca-X, f-X, n-X, p-X, pt-X, t-X, wpX IDs =
i.e. interface buttons, links, etc.
"ca-" in the class names stands for "content actions", "f-" for footer, "n-" for navigation, "p-" for "page", "pt-" for "personal tools" (at the top), and "t-" for "tools" (in the side bar).
border="1" class="wikitable"
! id ! Description |
ca-addsection
| "+" or "new section" tab button on top of talk pages. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] and MediaWiki:Monobook.css. | {{dunno}} |
ca-delete
| Delete tab button for administrators | {{dunno}} | {{dunno}} |
ca-edit
| Source edit tab button | {{dunno}} |
ca-ve-edit
| Visual editor tab button | {{dunno}} |
ca-history
| History tab button | {{dunno}} | {{dunno}} |
ca-move
| Move tab button | {{dunno}} | {{dunno}} |
ca-nstab-user
| "user page" tab button in user space | {{dunno}} | {{dunno}} |
ca-nstab-wp
| Wikipedia project page tab button | {{dunno}} | {{dunno}} |
ca-protect
| Protection tab button | {{dunno}} | {{dunno}} |
ca-talk
| Talk page tab button | {{dunno}} | {{dunno}} |
ca-unwatch
| Unwatch tab button | {{dunno}} | {{dunno}} |
f-poweredbyico
| Powered by MediaWiki icon in the footer | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | {{dunno}} |
f-copyrightico
| Copyright Wikimedia Foundation in the footer | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/commonPrint.css?view=markup common/commonPrint.css] (print) | {{dunno}} |
f-list
| Part of the interface. | | |
n-Featured-articles
| Part of the interface. | | |
n-contact
| Part of the interface. | | |
n-currentevents
| Part of the interface. | | |
n-help
| Part of the interface. | | |
n-mainpage
| Part of the interface. | | |
n-portal
| Part of the interface. | | |
n-randompage
| Part of the interface. | | |
n-recentchanges
| Part of the interface. | | |
n-sitesupport
| Part of the interface. | | |
p-cactions
| Sets padding, margin, placement and colours of the page top tab buttons in Monobook. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] and MediaWiki:Monobook.css. | {{dunno}} |
p-coll-print_export
| Surrounds the "print/export toolbar" |? |? |
p-interation
| Surrounds the "interaction toolbar". | {{dunno}} | {{dunno}} |
p-personal
| Surrounds the "personal toolbar", i.e. userpage, talk page, prefs, watchlist, contribs, log out. | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] (screen, projection) | {{dunno}} |
p-lang
| Surrounds the links to other language Wikipedias | {{dunno}} | {{dunno}} |
p-logo
| Surrounds the logo image | {{dunno}} | {{dunno}} |
p-nav
| {{dunno}} | {{dunno}} | {{dunno}} |
p-navigation
| surrounds the Navigation menu; i.e. Main page, Community Portal, etc. | {{dunno}} | {{dunno}} |
p-tb
| surrounds the toolbox menu; i.e. whatlinkshere, related changes, etc. | {{dunno}} | {{dunno}} |
pt-login
| {{dunno}} | {{dunno}} |
pt-userpage
| Userpage link personal toolbar link | {{dunno}} | {{dunno}} |
pt-logout
| Part of the interface. | | |
pt-mycontris
| Part of the interface. | | |
pt-mytalk
| Part of the interface. | | |
pt-preferences
| Part of the interface. | | |
pt-watchlist
| Part of the interface. | | |
t-permalink
| Part of the interface. | | |
t-recentchangeslinked
| Part of the interface. | | |
t-specialpages
| Part of the interface. | | |
t-upload
| Part of the interface. | | |
t-whatlinkshere
| Part of the interface. | | |
wpSave
| Save button | [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/monobook/main.css?view=markup monobook/main.css] | {{dunno}} |
wpDiff
| Part of the interface. | | |
wpMinoredit
| Part of the interface. | | |
wpPreview
| Part of the interface. | | |
wpScrolltop
| Part of the interface. | | |
wpSummary
| Part of the interface. | | |
wpSummaryLabel
| Part of the interface. | | |
wpSection
| Part of the hidden interface. | | |
wpStarttime
| Part of the hidden interface. | | |
wpRecreate
| Part of the hidden interface. | | |
wpEdittime
| Part of the hidden interface. | | |
wpEditToken
| Part of the hidden interface. | | |
wpTextbox1
| Part of the interface. | | |
wpWatchthis
| Part of the interface. | | |
JavaScript variables
About 30 variables that can be used in JavaScript. View the rendered code of any page and find for instance var wgUserName
.
"wgAction":"view"
"wgArticleId":3941451
"wgBreakFrames":false
"wgCanonicalNamespace":"Project"
"wgCanonicalSpecialPageName":false
"wgCategories":["Wikipedia features"]
"wgCSPNonce":false
"wgCurRevisionId":1077279639
"wgDefaultDateFormat":"dmy"
"wgDigitTransformTable":["",""]
"wgDiscussionToolsFallbackEditMode":"source"
"wgDiscussionToolsFeaturesEnabled":{"replytool":true,"newtopictool":false,"sourcemodetoolbar":true,"topicsubscription":false,"autotopicsub":false}
"wgEchoSeenTime":{"alert":"2022-03-15T22:46:57Z","notice":"1970-01-01T00:00:01Z"}};
"wgEditSubmitButtonLabelPublish":true
"wgFlaggedRevsParams":{"tags":{"status":{"levels":-1}}}
"wgGEAskQuestionEnabled":false
"wgGELinkRecommendationsFrontendEnabled":false
"wgGENewcomerTasksGuidanceEnabled":true
"wgGlobalGroups":[]
"wgIsArticle":true
"wgIsProbablyEditable":true
"wgIsRedirect":false
"wgMediaViewerEnabledByDefault":true
"wgMediaViewerOnClick":true
"wgMFDisplayWikibaseDescriptions":{"search":true,"nearby":true,"watchlist":true,"tagline":false}
"wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"]
"wgNamespaceNumber":4
"wgNoticeProject":"wikipedia"
"wgNoticeUserData":{"registration":"999"}
"wgPageContentLanguage":"en"
"wgPageContentModel":"wikitext"
"wgPageName":"Wikipedia:Catalogue_of_CSS_classes"
"wgPopupsFlags":10
"wgRelevantArticleId":3941451
"wgRelevantPageIsProbablyEditable":true
"wgRelevantPageName":"Wikipedia:Catalogue_of_CSS_classes"
"wgRequestId":"791d32fc-0adb-4cb1-9a8c-db11247504d9"
"wgRestrictionEdit":[]
"wgRestrictionMove":[]
"wgRevisionId":1077279639
"wgSeparatorTransformTable":["",""]
"wgTitle":"Catalogue of CSS classes"
"wgULSAcceptLanguageList":["nl","en-us","en"]
"wgULSBabelLanguages":["nl","en"]
"wgULSCurrentAutonym":"English"
"wgULSisCompactLinksEnabled":false
"wgULSPosition":"interlanguage"
"wgUserEditCount":1288
"wgUserGroups":["extendedconfirmed","*","user","autoconfirmed"]
"wgUserId":1590755
"wgUserName":"xxx"
"wgUserRegistration":999
"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"}
"wgWikibaseItemId":"Q21188652"
"wgWMEPageLength":60000
"wgWMESchemaEditAttemptStepOversample":false
RLPAGEMODULES=["ext.cite.ux-enhancements","site","mediawiki.page.ready","jquery.tablesorter","jquery.makeCollapsible","mediawiki.toc","skins.monobook.scripts","mediawiki.page.watch.ajax","ext.gadget.ReferenceTooltips","ext.gadget.formWizard","ext.gadget.geonotice","ext.gadget.watchlist-notice","ext.gadget.charinsert","ext.gadget.extra-toolbar-buttons","ext.gadget.switcher","mmv.head","mmv.bootstrap.autostart","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.init","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.cx.eventlogging.campaigns","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.centralauth.centralautologin.clearcookie","ext.discussionTools.init","ext.uls.interface"];
RLSTATE={"ext.gadget.WatchlistBase":"ready","ext.gadget.WatchlistGreenIndicatorsMono":"ready","ext.gadget.SubtleUpdatemarker":"ready","ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"loading","user.options":"loading","ext.cite.styles":"ready","ext.discussionTools.init.styles":"ready","skins.monobook.styles":"ready","jquery.tablesorter.styles":"ready","jquery.makeCollapsible.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.echo.styles.badge":"ready","oojs-ui.styles.icons-alerts":"ready","ext.wikimediaBadges":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready"};
See also
- {{look from|Wikipedia:Catalogue of CSS classes}}
- Wikipedia:WikiProject User scripts
- Wikipedia:Useful styles
- Help:User style
- Help:Cascading style sheets