Diferencia entre revisiones de «MediaWiki discusión:Common.js»

Contenido de la página no disponible en otros idiomas.
De Wikiviajes, la guía libre de viajes
Último comentario: hace 6 años por Wiki-1776 en el tema Agregar parámetros de los Listados
Contenido eliminado Contenido añadido
thanks
Línea 18: Línea 18:
: {{hecho}} --Un saludo [[Archivo:Crystal 128 konsole.svg|16px|link=]] [[Usuario:Kizar|Kizar]] <small>// [[Usuario Discusión:Kizar|Contactar]]</small> 13:32 12 dic 2013 (UTC)
: {{hecho}} --Un saludo [[Archivo:Crystal 128 konsole.svg|16px|link=]] [[Usuario:Kizar|Kizar]] <small>// [[Usuario Discusión:Kizar|Contactar]]</small> 13:32 12 dic 2013 (UTC)
:: Good, it's working! :) --[[Usuario:Nemo bis|Nemo bis]] ([[Usuario discusión:Nemo bis|discusión]]) 10:47 14 dic 2013 (UTC)
:: Good, it's working! :) --[[Usuario:Nemo bis|Nemo bis]] ([[Usuario discusión:Nemo bis|discusión]]) 10:47 14 dic 2013 (UTC)

== Agregar parámetros de los Listados ==

Hola, si no me estoy confundiendo de lugar. ¿Sería posible agregar los parámetros «wikipedia» «wikidata» y «imagen» de los [[Wikiviajes:listados|listados]] al MediaWiki? para que aparezcan cuando se usan los botones de la barra de edición (herramientas). Sería útil tenerlos de una vez para no tener que escribirlos. Saludos.--[[Usuario:Wiki-1776|Wiki-1776]] ([[Usuario discusión:Wiki-1776|discusión]]) 01:26 2 feb 2018 (UTC)

Revisión del 01:26 2 feb 2018

Give search results even when page doesn't exist

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 (comments, translations and last instructions)

Hecho Hecho --Un saludo Kizar // Contactar 13:32 12 dic 2013 (UTC)Responder
Good, it's working! :) --Nemo bis (discusión) 10:47 14 dic 2013 (UTC)Responder

Agregar parámetros de los Listados

Hola, si no me estoy confundiendo de lugar. ¿Sería posible agregar los parámetros «wikipedia» «wikidata» y «imagen» de los listados al MediaWiki? para que aparezcan cuando se usan los botones de la barra de edición (herramientas). Sería útil tenerlos de una vez para no tener que escribirlos. Saludos.--Wiki-1776 (discusión) 01:26 2 feb 2018 (UTC)Responder