For faster navigation, this Iframe is preloading the Wikiwand page for Sgwrs MediaWici:Common.js.

Sgwrs MediaWici:Common.js

Give search results even when page doesn't exist

[golygu cod]

Sylwadau

[golygu cod]
Bad idea for minority languages

I don't like this idea at all, I am trying to create a web presence for the Welsh Language by trying to create pages with more information about Welsh issues than is available in generic English language articles.

The idea that Welsh or Cornish articles "default" to English or that Basque and Catalan articles "default" to Spanish makes a mockery of lesser used languages presence on Wikipedia! AlwynapHuw (sgwrs) 05:57, 14 Rhagfyr 2013 (UTC)[ateb]

O gymryd cip bras ar y cynnig, dw i'n dueddol o gytuno efo Alwyn. Er mai dolen ddiniwed ydy hi ar un agwedd mae'r syniad o chwaneg o ddolennau i iethoedd eraill i mi'n gyfystyr a dangos y drws i'n darllenwyr! Cafwyd trafodaeth debyg yn ddiweddar ynglyn a chreu dolennau i en. Dim diolch. Llywelyn2000 (sgwrs) 00:45, 15 Rhagfyr 2013 (UTC)[ateb]

Y cynnig a'r sgript

[golygu cod]
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)
{{bottomLinkPreText}} {{bottomLinkText}}
Sgwrs MediaWici:Common.js
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 ๐ŸŽ‰! the new version arrives on September 1st! Don't want to wait?