MediaWiki diskusija:Common.js

message: Pieliku papildu pogas rediģēšnas logam (iepriekšējā reizē (2006. gada decembrī) negāja). Tagad darbojas, tikai būs jāpārtulko visus nosaukumus. -Yyy 11:45, 22 jūlijā, 2007 (UTC)
Tagad, pēc šiem pēdējiem labojumiem, googli būs jāpārvāc no .fr uz .lv vai .com un būs jānoskaidro ko nozīmē tā pirmā opcija (mistisks nosaukums franciski). (neviens no šiem nelikās triviāls). -Yyy 17:48, 8 jūnijā, 2009 (UTC)
Šeitan jāpapildina
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.";
            }
        }
    }
}
 
addOnloadHook( LinkFA );
Vismaz vectorā redzēsim vai raksts ir labs citās vikipediņpedījās.--Krishjaanis 20:45, 22 septembrī, 2010 (UTC)
replies: text: Es ceru, ka kā balva par koda atrašanu, tevi iepriecinās, ka vismaz kāds tevi neuzskata par nosodošāko vikipēdistu  ~~ (saruna) 21:14, 22 septembrī, 2010 (UTC)
replies: text: :Nu dižais domātājs tevi nez kāpēc uztvēra kā visu vikipēdiju un es arī nemaz neesmu tik nosodošs :) --Krishjaanis 06:52, 23 septembrī, 2010 (UTC) P.S. Var jau vispār smuki sataisīt un iztulkot tos "dis artikl iz fīčered" (nu tas teksts kas parādās ja kursoru uzbīda uz tās kretīniskās zvaigznītes) arī uz latviski. --Krishjaanis 06:59, 23 septembrī, 2010 (UTC)
replies: text: ::Nē, katrā asākā diskusijā norādīt uz viņu kā vienu no sliktākajiem piemēriem nemaz nav nosodoši ;) Man šķiet, ka tad, ja cilvēks raksta `nikneims` viņš saprot, ka uzdarbojas vairāki cilvēki (viņam tur ir arī dzēšanas diskusija, tajā viņam neviens neliekas nosodošs vai vēl nez kāds - tātad es esmu ļauna, bet tu esi labs, priecājies XD). Anyway es vēlāk pamēģināšu iztulkot, ja neviens cits nepacentīsies ~~ (saruna) 07:41, 23 septembrī, 2010 (UTC)
thread_title: FA

message: Hello, I propose to enable the tool created by Magnus Manske (creator of MediaWiki) to provide results from other languages and Commons (via Wikidata) when a page doesn't exist here: links are added to Special:Search and noarticletext. This helps to encourage translation and to make readers use your wiki more, because they can be sure to find something even if it's not local (rather than searching directly on the biggest wiki). The Italian and Polish Wikipedias, among others already enabled it by default.
Examples:   . More information: Magnus blog.
How to: just add the following line at the end of Common.js.
// Results from Wikidata
// [[File:Wdsearch_script_screenshot.png]]
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search' ||  ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgCanonicalSpecialPageName' ) === false ) ) {
	importScriptURI("//en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js&action=raw&ctype=text/javascript");
}
--[[m:User:Nemo_bis|Nemo]] ~~~~~ ([[w:en:MediaWiki talk:Wdsearch.js|comments, translations and last instructions]])
</div>
<!-- EdwardsBot 0661 -->
thread_title:  Give search results even when page doesn't exist 

message: Hi! I want to let you know that in near future badges will be deployed on Wikidata and the Wikipedias. They help us with displaying the good and featured article icons next to the sitelinks and will replace the javascript hack which is used at the moment together with the Link GA and Link FA templates. To avoid an overlap where the current system and the new feature conflict, I will add a minor fix to your Common.js which adds the class names to the interwiki links. This is part of my task as a global edit interface editor for the Wikidata team. Thanks, Bene* (diskusija) 23:28, 18 augustā, 2014 (EEST)
thread_title:  Announced JavaScript change for badges implementation 

message: Hello, I propose to remove the entire block after "IE 6 Z-index bug workaround for anonnotice". Those donation notices are superseded and English-only banners in non-English wikis are both useless and harmful for Wikimedia and its finances. In fact, they make Wikipedia slower for unregistered users, so they cost more money than they bring, because the WMF has to spend millions on mw:Site performance. The WMF already runs banners for all the money they need, such permanent banners are inefficient. --Nemo bis (diskusija) 14:10, 13 februārī, 2015 (EET)
thread_title:  Donations 

message: Hi,
As Papuass reported the ContentTranslation extension doesn't work well in the Latvian Wikipedia because of an issue in Common.js.
Can anybody please fix it?
Just add the following after the var content = document.getElementById('content'); line:
if (!content) {
    return;
}
Thank you! --Amirs E. Aharoni (diskusija) 17:43, 8 jūnijā, 2015 (EEST)
replies: text: . Thank you! --  17:47, 8 jūnijā, 2015 (EEST)
replies: text: :Thank you! --Amirs E. Aharoni (diskusija) 18:00, 8 jūnijā, 2015 (EEST)
thread_title:  ContentTranslation