Уикипедия:CSS кластарының тізімдемесі

Лақап:
УП:CSS

There are a lot of CSS classes and IDs used on the English Wikipedia. The use of most of them is not clearly explained or described anywhere but on the place they are used. However, since Special:Whatlinkshere does not work for CSS, it can be hard to find these explanations; the definitions themselves can be located in many different places.

This page is an attempt to catalogue and describe all the CSS classes and IDs used on this wiki.

There is still a lot of classes and IDs to document, add some! Also add information about other skins.

Stylesheets and JavaScript өңдеу

skin type stylesheets (in cascade order) javascript (in order) notes
Chick
(chick)
monobook
  1. chick/main.css (screen, projection)
  2. common/commonPrint.css (print)
  3. IE fixes
  4. MediaWiki:Common.css
  5. MediaWiki:Chick.css
  6. generated user stylesheet
  7. user/chick.css
  1. IE fixes
  2. skin variables
  3. common/wikibits.js
  4. skin variables
  5. MediaWiki:Common.js
  6. MediaWiki:Chick.js
  7. user/chick.js
Classic
(standard)
standard
  1. common/wikiprintable.css (print)
  2. common/common.css
  3. common/wikistandard.css
  4. MediaWiki:Common.css
  5. MediaWiki:Standard.css
  6. user/standard.css
  7. generated user stylesheet
  1. common/wikibits.js
  2. user/standard.js
used when an invalid skin is specified
Cologne Blue
(cologneblue)
standard
  1. common/wikiprintable.css (print)
  2. common/common.css
  3. common/cologneblue.css
  4. MediaWiki:Common.css
  5. MediaWiki:Cologneblue.css
  6. user/cologneblue.css
  7. generated user stylesheet
  1. common/wikibits.js
  2. user/cologneblue.js
MonoBook
(monobook)
monobook
  1. monobook/main.css (screen, projection)
  2. common/commonPrint.css (print)
  3. IE fixes
  4. MediaWiki:Common.css
  5. MediaWiki:Monobook.css
  6. generated user stylesheet
  7. user/monobook.css
  1. IE fixes
  2. skin variables
  3. common/wikibits.js
  4. skin variables
  5. MediaWiki:Common.js
  6. MediaWiki:Monobook.js
  7. user/monobook.js
default skin for anonymous users, default skin for new users
MySkin
(myskin)
monobook
  1. myskin/main.css (screen, projection) (empty)
  2. common/commonPrint.css (print)
  3. IE fixes
  4. MediaWiki:Common.css
  5. MediaWiki:Myskin.css (empty)
  6. generated user stylesheet
  7. user/myskin.css
  1. IE fixes
  2. skin variables
  3. common/wikibits.js
  4. skin variables
  5. MediaWiki:Common.js
  6. MediaWiki:Myskin.js
  7. user/myskin.js
for user-defined styles
Nostalgia
(nostalgia)
standard
  1. common/wikiprintable.css (print)
  2. common/common.css
  3. common/nostalgia.css
  4. MediaWiki:Common.css
  5. MediaWiki:Nostalgia.css
  6. user/nostalgia.css
  7. generated user stylesheet
  1. common/wikibits.js
  2. user/nostalgia.js
Simple
(simple)
monobook
  1. simple/main.css (screen, projection)
  2. common/commonPrint.css (print)
  3. IE fixes
  4. MediaWiki:Common.css
  5. MediaWiki:Simple.css
  6. generated user stylesheet
  7. user/simple.css
  1. IE fixes
  2. skin variables
  3. common/wikibits.js
  4. skin variables
  5. MediaWiki:Simple.js
  6. user/simple.js

IE fixes өңдеу

Internet Explorer is a bit more buggy than other popular browsers, and needs some additional CSS and JavaScript to work around some of its bugs.

skin IE < 5.5 IE 5.5 IE 6 IE 7 IE < 7
Chick
(chick)
chick/IE50Fixes.css chick/IE55Fixes.css chick/IE60Fixes.css chick/IE70Fixes.css common/IEFixes.js
MonoBook
(monobook)
monobook/IE50Fixes.css monobook/IE55Fixes.css monobook/IE60Fixes.css monobook/IE70Fixes.css common/IEFixes.js
MySkin
(myskin)
myskin/IE50Fixes.css myskin/IE55Fixes.css myskin/IE60Fixes.css myskin/IE70Fixes.css common/IEFixes.js
Simple
(simple)
simple/IE50Fixes.css simple/IE55Fixes.css simple/IE60Fixes.css simple/IE70Fixes.css common/IEFixes.js

The body of a page has as class name the pagename with spaces and colons replaced by underscores, and prefixed with "page-", e.g. this page's body has class page-Wikipedia_Catalogue_of_CSS_classes.

class Description in CSS¹ in HTML¹
:active Used on some tab buttons. A CSS pseudo-class. See the W3 standard. monobook/main.css (screen, projection) skins/MonoBook.php
autocomment Used for the section bits in edit summaries, i.e. the part between /* and */ on watchlist and rc pages. ? includes/Linker.php
boilerplate Another Template class ? {{delete}}, {{Catfd}}, {{tfd}}
catlinks Category links normally at the bottom of the page. chick/main.css (screen, projection) includes/Skin.php
center Emulates <center> functionality monobook/main.css ?
collapsible, collapsed, autocollapse Allows tables to be expanded and collapsed like NavFrame MediaWiki:Common.js -
comment Edit summaries on watchlist and rc pages. ? includes/Linker.php
cleanup Used on some cleanup Templates ? {{fiction}}, {{generalize}}, {{Off-topic}}, {{Abbreviations}}
dablink Used to mark disambiguation links at the top of pages. MediaWiki:Monobook.css (hidden when printed) {{dablink}}
dangerousLink Used on Image pages to not have dangerous file types display previews. Called in ImagePage.php All skins, I believe.
def Used in the allmessagestable, Special:Allmessages(System messages) chick/main.css (screen, projection) ?
diff, diff-addedline, diff-context, diff-deletedline, diff-ntitle, diff-otitle, diffchange Used by the diff view MediaWiki:Monobook.css, common/common.css, chick/main.css, monobook/main.css, simple/main.css, common/commonPrint.css skin on diff view, includes/normal/RandomTest.php
disputed A cleanup class. ? {{Contradict}}
editlink Class to mark an Edit link for use in templates. MediaWiki:Monobook.css (hidden when printed) {{ed right}}, {{ed2}}, {{ed}}
error ? MediaWiki:Monobook.css (only defined for paragraph elements), chick/main.css (screen, projection) includes/Math.php
errorbox ? chick/main.css (screen, projection) ?
editHelp Interface section ? includes/EditPage.php
editOptions Used in the div surrounding the minor edit and watch this page checkboxes. monobook/main.css, includes/EditPage.php
editsection Class used in the interface for section [edit] links common/commonPrint.css (print) includes/Linker.php
editform Part of the interface.
editpage-copywarn Part of the interface.
editpage-copywarn2 Part of the interface. MediaWiki:Edittools
editpage-specialchars Part of the interface. MediaWiki:Edittools
external text Class used in the interface for external links ? ?
extiw Used for Interwiki links. ? includes/Linker.php
expansion A type of cleanup class ? {{Cleanup-ipa}}
firstHeading Used on the title of the page, e.g. "Editing Wikipedia:Catalogue of CSS classes (section)" monobook/main.css (screen, projection) skins/MonoBook.php
floatright, floatleft, floatnone ? common/commonPrint.css (print) ?
image Interface class used for links to images. ? includes/Linker.php
infobox Formatting for article infoboxes MediaWiki:Common.css 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). ? includes/Parser.php, languages/Language.php, skins/Standard.php, includes/Linker.php
IPA Font-selection fixes for MSIE 6.0 bug, for IPA (originally from Template:IPA fonts; discussion pages: Template talk:IPA fonts, Template talk:IPA) MediaWiki:Common.css {{IPA}}, {{IPA2}}
latinx Font-selection fixes for MSIE 6.0 bug, for Latin Extended-B (original discussion) MediaWiki:Common.css {{latinx}}
metadata Used to mark metadata that should not be printed (?) MediaWiki:Monobook.css (hidden when printed) {{disambig}}, {{fiction}}, {{generalize}}, {{Off-topic}}, {{Abbreviations}}, {{delete}}, {{Catfd}}, {{tfd}}
messagebox Used on some Template messageboxes, sensibly enough. MediaWiki:Common.css {{fiction}}, {{generalize}}, {{POV}}, {{Opaque}}, {{Office}}, {{Off-topic}}, {{Abbreviations}}, {{1911POV}}, {{Esoteric}}, {{Tdeprecated}}, {{Tfd-inline}}
merge A cleanup class. ? {{Merging}}, {{Mergedisputed}}, {{Split}}, {{Splitsection}}, {{Merge}}, {{Mergeto}}, {{Mergefrom}}, {{Mergesection}}, {{Mergesections}}, {{Mergesectionto}}, {{Mergedisputed}}
minor Used for the "m" marking minor edits. ? includes/SpecialContributions.php
mufi Forces fonts used for Medieval Unicode Font Initiative (discussion) MediaWiki:Common.css {{mufi}}
namespacesettings Interface section on Recent Changes page ? includes/SpecialRecentchanges.php
namespaceselector Part of the Recent Chages page ? includes/GlobalFunctions.php
navbox formatting for navigational boxes MediaWiki:Common.css -
NavFrame, NavHead, NavPic, NavContent Used by the experimental Dynamic Navigation Bars code (See Wikipedia:NavFrame) MediaWiki:Monobook.js {{hidden}}, {{hidden begin}}, {{hidden end}}, {{afd}}, {{afdx}},
new The redlink class; used on internal links to pages that do not have any undeleted history. (Also used in the allmessagestable, Special:Allmessages(System messages)) monobook/main.css (screen, projection), common/commonPrint.css (print) includes/Linker.php, includes/Skin.php, languages/Language.php
newpage The "N" used for new pages on watchlist, etc. ? includes/ChangesList.php
noarticletext See MediaWiki:Noarticletext. monobook/main.css (screen, projection) includes/Article.php
nonumtoc Hides automatic numbering on the table of contents (in combination with explicitly stating __TOC__ or __FORCETOC__ MediaWiki:Common.css -
notice Style for "notices" (?) MediaWiki:Common.css {{disambig}}, {{db-meta}} (which means, all the speedy deletion templates), and others.
nounderlines Disables underlines on links on children of this element (original request) MediaWiki:Common.css {{Arabic alphabet}}, probably others
noprint Hides content when printed. MediaWiki:Monobook.css, common/commonPrint.css (print) {{ed right}}, {{ed2}}, {{ed}}, {{edit}}, {{Shortcut}}, and others.
ns-4 ltr Used on the HTML body element. Purpose unknown. ? ?
magnify ? common/commonPrint.css (print) ?
orig Used in the allmessagestable, Special:Allmessages(System messages) chick/main.css (screen, projection) ?
pBody Used all-around on the various body-like pieces of the interface, including personal tools, sidebar, and tabs. ? skins/MonoBook.php
plainlinks Disables the external link arrow MediaWiki:Monobook.css, monobook/main.css {{Catfd}}, {{tfd}}, and many other places.
polytonic Font-selection fixes for MSIE 6.0 bug, for Polytonic Greek (originally from Template:polytonic; discussion page) MediaWiki:Common.css {{polytonic}}
portlet Used on the tab buttons, and maybe other places? MediaWiki:Monobook.css skins/MonoBook.php, config/index.php
prettytable Obsolete: superseded by wikitable MediaWiki:Common.css lots of tables
printfooter Used to mark the footer of the page in the interface. ? includes/Skin.php
protected Used on some templates that go on protected pages. ? {{Office}}
rcoptions Interface section on Recent Changes page ? includes/SpecialRecentchanges.php
recentchanges Interface section on Recent Changes page ? includes/SpecialRecentchanges.php
redirectText Something to do with redirects. ? includes/Article.php
reference The class is assigned to the reference note links occurring within the article text and generated by Cite.php. MediaWiki:Cite reference link
references The class is assigned to the ordered list of reference notes generated by Cite.php. MediaWiki:Cite references prefix
references-2column For two-column references in articles (in any format, not only Cite.php). To be used where the per article consensus demands two columns for the references (usually when the references list is very long). MediaWiki:Common.css Manually assigned by editors with <div class="references-2column">..</div>
references-small For small-font references 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; see also {{FootnotesSmall}}) MediaWiki:Common.css Manually assigned by editors with <div class="references-small">..</div>
rimage ? common/commonPrint.css (print) ?
successbox ? chick/main.css (screen, projection) ?
searchButton Used in the interface on exactly what you would expect. ? skins/MonoBook.php
selected Used on some tab buttons in the intrface. Not sure exactly what it does. ? ?
special Used for non-links in watchlists, etc. Like the "(diff)" on a new page. ? includes/QueryPage.php, includes/ImagePage.php
subpages used on the line listing the parent of a subpage monobook/main.css (screen, projection) includes/Skin.php, includes/SkinTemplate.php
standard-talk ? MediaWiki:Common.css {{Move}}, {{Bot}}
templatesUsed surrounds the div listing the templates used on a page, on the edit page. ? includes/EditPage.php
tright, tleft ? common/commonPrint.css (print) ?
Talk-Notice Standard talk template style (?) MediaWiki:Common.css ?
toc, tottitle, toclevel-1, toclevel-2, toctext, tocnumber, toctoggle Used by the Table of Contents. Should not be used by anything else; use class="toccolours" instead. monobook/main.css, common/commonPrint.css (print) skin on TOC
toccolours Same formatting as class="toc", but can be used by other things. monobook/main.css, MediaWiki:Monobook.css lots of places
thumb ? common/commonPrint.css (print) ?
userlinks Username, for unambiguous letterforms like l, 1, i. {{userlinks}} -
usermessage "You have new messages" box monobook/main.css (screen, projection) -
Unicode Font-selection fixes for MSIE 6.0 bug, for unusual Unicode characters (originally from Template:Unicode fonts; discussion pages: Template talk:Unicode fonts, Template talk:Unicode) MediaWiki:Common.css {{Unicode}}
visualClear ? monobook/main.css (screen, projection) includes/templates/Userlogin.php, skins/MonoBook.php
watchlistredir Marks redirects on Special:Watchlist/edit Special:Watchlist/edit
wikitable Class for skinning normal tables (same as prettytable) MediaWiki:Common.css {{prettytable}}, lots of tables
id Description in CSS¹ in HTML¹
about Part of the interface.
allmessagestable ? monobook/main.css ?
afd The WP:AfD template. ? {{afd}}
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. monobook/main.css (screen, projection) monobook-derived skins around content
column-content part of the rendered page structure monobook/main.css (screen, projection), common/commonPrint.css (print) ?
column-one part of the rendered page structure monobook/main.css (screen, projection), common/commonPrint.css (print) ?
confirmemail Notice asking for users to confirm their email address ? MediaWiki:Recentchangestext, MediaWiki:Watchdetails, Wikipedia:Administrators' noticeboard/Header
content part of the rendered page monobook/main.css (screen, projection), common/commonPrint.css (print) ?
contentSub surrounds the notice of the partents of subpages monobook/main.css (screen, projection) ?
coordinates Used to show the coordinates below the page title (original discussion, talk page) MediaWiki:Monobook.css {{coor title dms}}
copyright Part of the interface.
current {{Dab_current}} ? {{Dab_current}}
differences-prevlink Used in the diff pages ? ?
disambig Disambiguation notices (wikiproject) MediaWiki:Common.css {{disambig}}, {{TLAdisambig}}, {{4LA}}, {{disambig-cleanup}}, {{geodis}}, {{hndis}}, {{numberdis}}, {{hurricane disambig}}, {{DisambigRecommend}}
disclaimer Part of the interface.
delete The div in the Speedy deletion templates. {{delete}}, {{db-meta}} (and so all the CSD templates).
footer part of the rendered page common/commonPrint.css (print) ?
globalWrapper surrounds the whole page monobook/main.css (screen, projection), common/commonPrint.css (print) ?
jump-to-nav ? monobook/main.css (screen, projection) common/commonPrint.css (print) ?
lastmod Part of the interface.
longpagewarning Allows hiding of the "long page" warning via user CSS MediaWiki:Longpagewarning
NavFramen, NavTogglen Used by the experimental Dynamic Navigation Bars code MediaWiki:Monobook.js MediaWiki:Monobook.js
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 ? monobook/main.css ?
searchTargetContainer ? monobook/main.css ?
shortcut {{Shortcut}} ? {{Shortcut}}
siteNotice Site notices MediaWiki:Monobook.css, chick/main.css, monobook/main.css, common/wikiprintable.css (hidden), 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, monobook/main.css (hidden)
spoiler Spoiler notices MediaWiki:Common.css {{spoiler}}, {{spoiler-about}}, {{magic-spoiler}}, {{solution}}, {{endspoiler}}, {{Spoiler-other}}, {{Spoiler-blank}}
stub Stub notices (wikiproject) monobook/main.css (screen, projection) (only on links, i.e. A elements) common/commonPrint.css (print) {{stub}}, all stub templates (list)
tfd Template:Catfd ? {{Catfd}}, {{tfd}}
toc, toctitle Table of Contents common/commonPrint.css (print) skin on TOC
tdeprecated Template:Tdeprecated ? {{Tdeprecated}}
top anchor at the top of the page, used for links that go "back to the top" ? ?
villagepumpfaq Allows the user to hide the FAQ on the top of Wikipedia:Village pump (technical) Wikipedia:Village pump (technical)
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.

id Description in CSS¹ in HTML¹
ca-delete Delete tab button ? ?
ca-edit edit this page tab button MediaWiki:Monobook.css ?
ca-history History tab button ? ?
ca-move Move tab button ? ?
ca-nstab-user ? ? ?
ca-nstab-wp Wikipedia project page tab button ? ?
ca-protect Protection tab button
ca-talk Talk page tab button ? ?
ca-unwatch Unwatch tab button ? ?
f-poweredbyico Powered by MediaWiki icon in the footer common/commonPrint.css (print) ?
f-copyrightico Copyright Wikimedia Foundation in the footer common/commonPrint.css (print) ?
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 surrounds the tab buttons ? ?
p-personal surrounds the "personal toolbar", i.e. userpage, talk page, prefs, watchlist, contribs, log out. monobook/main.css (screen, projection) ?
p-logo surrounds the logo image ? ?
p-nav ? ? ?
p-navigation surrounds the Navigation menu; i.e. Main page, Community Portal, etc... ? ?
p-tb surrounds the toolbox meun; i.e. whatlinkshere, related changes, etc... ? ?
pt-login ? MediaWiki:Monobook.css ?
pt-userpage Userpage link personal toolbar link ? ?
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 monobook/main.css ?
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.
wpTextbox1 Part of the interface.
wpWatchthis Part of the interface.

JavaScript variables өңдеу

  1. In some special cases in JavaScript.

See also өңдеу