MediaWiki:Vector.js
Megjegyzés: közzététel után frissítened kell a böngésződ gyorsítótárát, hogy lásd a változásokat.
- Firefox / Safari: tartsd lenyomva a Shift gombot és kattints a Frissítés gombra a címsorban, vagy használd a Ctrl–F5 vagy Ctrl–R (Macen ⌘–R) billentyűkombinációt
- Google Chrome: használd a Ctrl–Shift–R (Macen ⌘–Shift–R) billentyűkombinációt
- Internet Explorer / Edge: tartsd nyomva a Ctrl-t, és kattints a Frissítés gombra, vagy nyomj Ctrl–F5-öt
- Opera: Nyomj Ctrl–F5-öt
/* A Vector felületet használó szerkesztők számára betöltendő JavaScriptek */
// Only for legacy Vector skin
// Can be removed when sharing is disabled
// [[mw:Reading/Web/Desktop Improvements/Features/Loading Vector 2010 scripts]]
if ( $( 'body' ).hasClass( 'skin-vector-legacy' ) ) {
/*
== FlaggedRevs doboz abszolút pozicionálása ==
*/
function positionHeaderNotice() {
var $content = $( '#content' ),
$box = $( '#mw-fr-revisiontag.flaggedrevs_short' ),
$shortBasic = $( 'div.flaggedrevs_short_basic' );
if ( !$box.length ) {
return;
}
// Right to the page title
$( 'h1.firstHeading' )
.append( $box )
.addClass( 'huwiki-frbox-parent' )
.css( 'paddingRight', $box.width() + 'px' );
if ( $shortBasic.length ) {
$box.css( 'padding-bottom', '0' );
$shortBasic.append( '<div style="height: 2px;"></div>' );
}
}
mw.hook( 'wikipage.content' ).add( positionHeaderNotice );
/*
== Kiemeltcsillag/lakat igazítása ==
*/
function titleIcons( $content ) {
$( '.topicon#protected-icon, .topicon#featured-star, .mw-indicators #mw-indicator-protected, .mw-indicators #mw-indicator-featured' )
.addClass( 'titleIcon' )
.removeClass( 'topicon' ) // don't move topicons twice
.prependTo( '#firstHeading' )
.addClass( 'metadata' );
}
mw.hook( 'wikipage.content' ).add( function titleIconsLoader() {
$( titleIcons );
} );
}