Размовы пра MediaWiki:Common.js

Змест старонкі недаступны на іншых мовах.
З Вікіпедыі, свабоднай энцыклапедыі

Можа вернем версію да зменаў і другі раз паспрабуем туды проста дапісаць тое што хочам? :) --Максім Л. 20:25, 1 чэрвеня 2011 (UTC)

Угу, вяртайце. Штоб я яшчэ ўзялася за гэтую МедыяВікі!---Хамелка / разм. 20:32, 1 чэрвеня 2011 (UTC)
А што трэба дапісаць? --Максім Л. 20:45, 1 чэрвеня 2011 (UTC)
Здаецца, і адкаціў, і дапісаў. Што там з каардынатамі, куды глядзець? --Максім Л. 20:58, 1 чэрвеня 2011 (UTC)
Кнопак унізе я не бачу, а пра каардынаты на маёй старонцы размоў у самым пачатку тэмы апошняй---Хамелка / разм. 21:25, 1 чэрвеня 2011 (UTC)

Трэба стварыць MediaWiki:Sysop.js MediaWiki:History.js MediaWiki:Editpage.js - апошні павінен вярнуць кнопачкі.--Чаховіч Уладзіслаў 13:32, 3 чэрвеня 2011 (UTC)

І зноў нічога, Максім мне рукі адарве :). І будзе ў правах---Хамелка / разм. 13:36, 3 чэрвеня 2011 (UTC)

%( Проста на старонцы былі адразу і Editpage.js з кнопачкамі і самі кнопачкі, так як спасылка на Editpage.js у самым пачатку, то магчыма дапусціць, што перш выконваўся Editpage.js, а "самі кнопачкі" у Common.js ігнараваліся. Дзіўны ў нас Common.js. --Чаховіч Уладзіслаў 14:02, 3 чэрвеня 2011 (UTC)

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 14:05, 12 снежня 2013 (FET) (comments, translations and last instructions)

Announced JavaScript change for badges implementation[правіць зыходнік]

Hi! I want to let you know that in near future badges will be deployed on Wikidata and the Wikipedias. They help us with displaying the good and featured article icons next to the sitelinks and will replace the javascript hack which is used at the moment together with the Link GA and Link FA templates. To avoid an overlap where the current system and the new feature conflict, I will add a minor fix to your Common.js which adds the class names to the interwiki links. This is part of my task as a global edit interface editor for the Wikidata team. Thanks, Bene* (размовы) 21:07, 11 жніўня 2014 (FET)

Prepare for T314318[правіць зыходнік]

Please make changes like the following,

https://ca.wikipedia.org/wiki/Especial:ComparePages?page1=MediaWiki%3ACommon.js&rev1=24309161&page2=Usuari%3AArlolra%2Fsandbox%2FMediaWiki%3ACommon.js&rev2=31054319&action=&unhide=

https://ca.wikipedia.org/wiki/Especial:ComparePages?page1=MediaWiki%3ACommon.js&rev1=31055727&page2=Usuari%3AArlolra%2Fsandbox%2FMediaWiki%3ACommon.js&rev2=31058458&action=&unhide=

For more information, see mw:Parsoid/Parser_Unification/Media_structure/FAQ

Thanks, Arlolra (размовы) 21:43, 31 студзеня 2023 (+03)[адказаць]

@Arlolra, Зроблена. Artsiom91 (размовы) 23:24, 31 студзеня 2023 (+03)[адказаць]