MediaWiki Discussió:Common.js

Darrer comentari: fa 11 anys per Aleator sobre el tema Canviar corr_list

Canviar corr_list modifica

Hola! Si ningú veu inconvenients procediria a canviar la variable 'corr_list':"Llista de correccions en aquesta pàgina" per 'corr_list':"Correccions respecte de l'original publicat", ja que a suggeriment d'en GosGroc "no queda clar si corregim el transcriptor (o sigui jo) o [l'obra original]". És el que apareix a la caixeta amb la llista d'errors quan hem posat la plantilla {{Corr}} o {{Errata}}. -Aleator 20:42, 14 març 2013 (CET)Respon

Give search results even when page doesn't exist modifica

 
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
//  
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 ~~~~~ (comments, translations and last instructions)
Torna a la pàgina "Common.js".