تفاوت میان نسخه‌های «مدیاویکی:Common.js»

repeated code
(وگ)
(repeated code)
}
 
/*</pre>
=== Interwiki links to featured articles ===
<pre>*/
 
/**
* 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' ) ) {
var InterwikiLinks = document.getElementById( 'p-lang' ).getElementsByTagName( 'li' );
for ( var i = 0; i < InterwikiLinks.length; i++ ) {
if ( document.getElementById( InterwikiLinks[i].className + '-fa' ) ) {
InterwikiLinks[i].className += ' FA';
InterwikiLinks[i].title = 'This is a featured article in another language.';
} else if ( document.getElementById( InterwikiLinks[i].className + '-ga' ) ) {
InterwikiLinks[i].className += ' GA';
InterwikiLinks[i].title = 'This is a good article in another language.';
}
}
}
}
$( LinkFA );
 
/*</pre>
۵۲٬۹۸۶

ویرایش