MediaWiki-ни сюзюу:Common.js: Версияланы арасында башхалыкъ
EdwardsBot (сюзюу | къошумла) →Give search results even when page doesn't exist: Джангы бёлюм |
Тюзетиуню ачыкълауу джокъду |
||
Тизгин 12: | Тизгин 12: | ||
importScriptURI("//en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js&action=raw&ctype=text/javascript"); |
importScriptURI("//en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js&action=raw&ctype=text/javascript"); |
||
} |
} |
||
--[[m:User:Nemo_bis|Nemo]] |
--[[m:User:Nemo_bis|Nemo]] 00:02, 25 ноябрь 2022 (UTC) ([[w:en:MediaWiki talk:Wdsearch.js|comments, translations and last instructions]]) |
||
</div> |
</div> |
||
<!-- EdwardsBot 0661 --> |
<!-- EdwardsBot 0661 --> |
||
== Prepare for [[phab:T314318|T314318]] == |
|||
Please copy this upstream change, |
|||
https://www.mediawiki.org/w/index.php?title=Snippets%2FDirect_imagelinks_to_Commons&type=revision&diff=5451422&oldid=3976429 |
|||
For more information, see [[mw:Parsoid/Parser_Unification/Media_structure/FAQ]] |
|||
Thanks, [[Къошулуучу:Arlolra|Arlolra]] ([[Къошулуучуну сюзюу:Arlolra|сюзюу]]) 00:02, 25 ноябрь 2022 (UTC) |
00:02, 25 ноябрь 2022 версиясы
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 00:02, 25 ноябрь 2022 (UTC) (comments, translations and last instructions)
Prepare for T314318
Please copy this upstream change, https://www.mediawiki.org/w/index.php?title=Snippets%2FDirect_imagelinks_to_Commons&type=revision&diff=5451422&oldid=3976429 For more information, see mw:Parsoid/Parser_Unification/Media_structure/FAQ Thanks, Arlolra (сюзюу) 00:02, 25 ноябрь 2022 (UTC)