MediaWikimōtung:Common.js
Give search results even when page doesn't exist
[adiht fruman]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)
Fix Uncaught TypeError
[adiht fruman] It is requested that an edit be made to this fully protected page.
This template should be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
This template should be used only to request edits to fully protected pages that are uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Note that MediaWiki interface pages cannot be unprotected. |
The line $.webfonts.repository.languages.ang[2] = 'Junicode-insular'; is causing this: Uncaught TypeError: Cannot read property 'repository' of undefined. ~~~~ :Bysen:Fixed ~~~~