Discusion MediaWiki:Common.js

Ultimo commento: 1 anno fa, lasciato da ABreault (WMF) in merito all'argomento Prepare for T314318

Ghe xe qualche aministrador che połe xontar sto codexe???? grasie, senpre che no si tuti in ferie :P

/** WikiMiniAtlas *******************************************************

 *
 *  Description: WikiMiniAtlas is a popup click and drag world map.
 *               This script causes all of our coordinate links to display the WikiMiniAtlas popup button.
 *               The script itself is located on meta because it is used by many projects.
 *               See Meta:WikiMiniAtlas for more information. 
 *  Created by: User:Dschwen
 */

document.write('<script type="text/javascript" src="' + 'http://meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js' + '&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400"></script>');

/*

Give search results even when page doesn't exist canbia

 
Screenshot of the Earth test search, with this script adding links to Wikidata, Reasonator, Commons, and Wikipedia.

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: [1] [2] [3]. 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");
}

--Nemo 09:56, 13 dis 2013 (CET) (comments, translations and last instructions)Rispondi

  Fato
(da Vajotwo).--GatoSelvadego (msj) 09:56, 13 dis 2013 (CET)Rispondi
Bello! E scusate per il pre non chiuso. --Nemo bis (msj) 11:56, 14 dis 2013 (CET)Rispondi

Announced JavaScript change for badges implementation canbia

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* (msj) 21:23, 11 ago 2014 (CEST)Rispondi

Prepare for T314318 canbia

Please make a change like the following,

https://it.wikipedia.org/w/index.php?title=MediaWiki%3ACommon.js&type=revision&diff=130157033&oldid=127743689

For more information, see mw:Parsoid/Parser_Unification/Media_structure/FAQ

Thanks,

Arlolra (msj) 21:59, 31 zen 2023 (CET)Rispondi

Done in Special:Diff/1107972 ABreault (WMF) (msj) 22:22, 23 feb 2023 (CET)Rispondi
Traesto fora da Wikipèdia - L'ençiclopedia łìbara e cołaboradiva in łéngua Vèneta "https://vec.wikipedia.org/w/index.php?title=Discusion_MediaWiki:Common.js&oldid=1107973"
Torna a ła voxe "Common.js".