Hisgot sa MediaWiki:Common.js : Kalainan tali sa mga rebisyon
→Give search results even when page doesn't exist: new section |
→Bug fixes and updates: new section |
||
Linya 15: | Linya 15: | ||
</div> |
</div> |
||
<!-- EdwardsBot 0661 --> |
<!-- EdwardsBot 0661 --> |
||
== Bug fixes and updates == |
|||
Hi! |
|||
Could you replace the current code of [[MediaWiki:Common.js]] by the one I saved [//ceb.wikipedia.org/w/index.php?title=Wikipedia:Blakbord&oldid=4480764&action=edit in the test page]? Here is [//ceb.wikipedia.org/w/index.php?title=MediaWiki:Common.js&oldid=1062818&diff=4480764 the diff of the changes] I made. I fixed some syntax errors and updated or removed some obsolete code. |
|||
There is still room for improvements, but this should be enough for now... ~~~~ |
Rebisyon niadtong 17:52, 29 Enero 2014
Give search results even when page doesn't exist
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)
Bug fixes and updates
Hi! Could you replace the current code of MediaWiki:Common.js by the one I saved in the test page? Here is the diff of the changes I made. I fixed some syntax errors and updated or removed some obsolete code. There is still room for improvements, but this should be enough for now... ~~~~