MediaWiki:Monobook.js
Sign in to save~2 min read
Encyclopedic overview
/* Any JavaScript here will be loaded for users using the MonoBook skin */
/** * Topbar content fix with sitenotice and CentralNotice * * Description: This fixes the location of topbar content (e.g., featured * content star) when the sitenotice or CentralNotice is active. * Maintainers: [[User:TheDJ]], [[User:MZMcBride]] */ // Only when editing/previewing a page if ( mw.config.get( 'wgAction' ) == 'submit' || mw.config.get( 'wgAction' ) == 'view' ) { $( function() { // If there is a dismissible sitenotice or an (expanded) centralnotice if ( $( '#mw-dismissible-notice' ).length || $( '#centralNotice' ).hasClass('expanded') ) { mw.util.addCSS( '#bodyContent { position: relative; } #coordinates { position: absolute; top: 1px !important; }' ); } } ); }
Excerpted from Wikipedia’s “MediaWiki:Monobook.js” article, available under the CC BY-SA 4.0 licence.
Available in 104 languages
- Français
- Deutsch
- 中文
- 日本語
- Italiano
- Albanian
- Asturian
- Avaric
- Bahasa Indonesia
- Balinese
- Bashkir
- Basque
- bat_smg
- Bavarian
- be_x_old
- Bhojpuri
- Bikol
- Bishnupriya
Show 85 more
- Bosnian
- Breton
- Buginese
- Bulgarian
- Catalan
- cdo
- Cebuano
- Central Kurdish
- Chechen
- Colognian
- Cornish
- Croatian
- Danish
- Divehi
- Dzongkha
- Egyptian Arabic
- Erzya
- Esperanto
- Fiji Hindi
- Filipino
- Finnish
- Friulian
- Galician
- Greek
- Hebrew
- Hungarian
- Iloko
- Interlingua
- Irish
- Javanese
- Kashmiri
- Kurdish
- Latvian
- lbe
- Limburgish
- Luxembourgish
- Macedonian
- Malay
- Malayalam
- Manx
- Māori
- Marathi
- Neapolitan
- Nederlands
- Newari
- nrm
- Occitan
- Pali
- Papiamento
- Polski
- Punjabi
- Quechua
- roa_tara
- Romanian
- Romany
- Sardinian
- Serbian
- Shan
- Sichuan Yi
- Sicilian
- simple
- Sinhala
- Slovak
- Slovenian
- Sundanese
- Svenska
- Tahitian
- tdd
- Telugu
- Tibetan
- Tiếng Việt
- Türkçe
- Udmurt
- Ukrainian
- Urdu
- Uzbek
- Volapük
- Walloon
- Waray
- Welsh
- West Flemish
- Yiddish
- Zeelandic
- zh_classical
- zh_yue
via Wikidata sitelinks · CC0