MediaWiki:Common.js: Verskil tussen weergawes

Content deleted Content added
Adriaan (Besprekings | bydraes)
kopieer vanaf Wikipedia
No edit summary
Lyn 185:
}
/** Interwiki links to featured articles ***************************************
*
* Description: Highlights interwiki links to featured articles (or
* equivalents) by changing the bullet before the interwiki link
* into a star.
* Maintainers: [[User:R. Koot]]
*/
function LinkFA() {
if ( document.getElementById( "p-lang" ) ) {
function LinkFA()
var InterwikiLinks = document.getElementById( "p-lang" ).getElementsByTagName( "li" );
{
 
if ( document.getElementById( "p-lang" ) ) {
for ( var i = 0; i < InterwikiLinks.length; i++ ) {
var InterwikiLinks = document.getElementById( "p-lang" ).getElementsByTagName( "li" );
if ( document.getElementById( InterwikiLinks[i].className + "-fa" ) ) {
for ( var i = 0; i < InterwikiLinks[i].length;className i++= )" {FA"
if ( document.getElementById( InterwikiLinks[i].classNametitle += "-fa"Hierdie )artikel )geniet {voorbladartikelstatus in 'n ander taal";
InterwikiLinks[i].className += " FA"}
}
InterwikiLinks[i].title = "Hierdie artikel geniet voorbladartikelstatus in 'n ander taal";
}
}
}
addOnloadHook( LinkFA );
}
}
addOnloadHook( LinkFA );
/*
Déplacement des [modifier]
--------------------------
Correction des titres qui s'affichent mal en raison de limitations dues à MediaWiki.
Line 239 ⟶ 235:
}
addOnloadHook(setModifySectionStyle);
 
 
/**
* MainPage-tab
* On the main page (and its associated namespaces and actions (Talk, edit, history etc.) this script will put "Main Page" instead of "Article" or "Page" in the first tab
*
* @source: http://www.mediawiki.org/wiki/Snippets/Main_Page_tab
* @rev: 2
*/
jQuery( document ).ready( function( $ ) {
var title = mw.config.get( 'wgTitle' );
var hasMainPageTab = (title == 'Tuisblad'); // Title of the main page
if ( hasMainPageTab ){
$( '#ca-nstab-main a' ).text( title );
}
} );