MediaWiki քննարկում:Common.js

Page contents not supported in other languages.
Վիքիպեդիայից՝ ազատ հանրագիտարանից

Update on search bar tools[խմբագրել կոդը]

"Hello. I assigned Pmartin to a temporary global 'editinterface' group, so that he can update a script on several wikis. The script was broken by recent changes to the Special:Search page. I hope this was not controversial, but if you'd like to object, please leave me a message on m:User talk:Pathoschild. :) —Pathoschild 23:06:58, 30 oktober 2008 (UTC)" Pmartin 13:03, 31 Հոկտեմբերի 2008 (UTC)[reply]

Գործիքների ավելացում[խմբագրել կոդը]

Ադմիններ, քանի որ սովորական մասնակիցները չեն կարող խմբագրել այս էջը, ես ասում եմ ձեզ, կարող եք ավելացնել հետևյալ տողը.

mw.loader.load('//hy.wikipedia.org/w/index.php?title=MediaWiki:Editpage.js&action=raw&ctype=text/javascript'); 

Կանխավ շնորհակալություն: --Վադգթ (Joker) (քննարկում) 15:50, 17 Հունիսի 2013 (UTC)[reply]

Ինչու պատասխան չկա: --Վադգթ (Joker) (քննարկում) 17:44, 18 Հունիսի 2013 (UTC)[reply]
Որովհետև, երբ շատերը արդեն նույն սկրիպտը միացրել են, իրանց common.js–ում սրա ավելացումը բերեց, այդ գործիքից երկու հատ ունենալուն, և փոփխություն մցնելուց, պետք է ամեն բան հաշվի առնել։ --Ալեքսեյ a.k.a. Xelgen (քննարկում) 21:53, 5 Հուլիսի 2013 (UTC)[reply]

Google Maps/MediaWiki:WLMcoord.js must be reverted without delay[խմբագրել կոդը]

(sorry to use English here but that's all I can read/write.)

Please revert to revision 1327439 as soon as possible. The current state is clearly in violation of the WMF Privacy policy as discussed at the WLM international mailing list. (first, second)

Thanks!

--Jeremyb (քննարկում) 03:37, 16 Սեպտեմբերի 2013 (UTC)[reply]

Thanks a lot for sharing your concenrs with us, Jeremyb. I've disabled tool in common.js, and will take a closer look at issues with privacy and copyright, in next 2 days, and will get back to this (and will notify you again, will reply in WLM mailing list). --Ալեքսեյ a.k.a. Xelgen (քննարկում) 06:50, 16 Սեպտեմբերի 2013 (UTC)[reply]

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 19:13, 9 Հուլիսի 2015 (UTC) (comments, translations and last instructions)[reply]

Խնդրում եմ այս կոդը ավելացրեք էջում`

// Helper script for .hlist class in common.css
// Author: en:User:Edokter
if ( $.client.profile().name == 'msie' ) {
// Add pseudo-selector class to last child list items in IE 8
if ( $.client.profile().versionBase == '8' ) {
$( '.hlist' ).find( 'dd:last-child, dt:last-child, li:last-child' )
.addClass( 'hlist-last-child' );
}
// Generate interpuncts and parens for IE < 8
if ( $.client.profile().versionBase < '8' ) {
$( '.hlist' ).find( 'dt + dd, dt + dt' ).prev()
.append( ': ' );
$( '.hlist' ).find( 'dd + dd, dd + dt, li + li' ).prev()
.append( ' ' );
$( '.hlist' ).find( 'dl dl, ol ol, ul ul' )
.prepend( '( ' ).append( ') ' );
}
}

Մանրամասները MediaWiki քննարկում:Common.css-ում --ԱշոտՏՆՂքնն․ 19:13, 9 Հուլիսի 2015 (UTC)[reply]
Արված է--Լիլիթ (քննարկում) 11:37, 10 Հուլիսի 2015 (UTC)[reply]

Խնդրում եմ $( '.hlist' ).find( 'dd + dd, dd + dt, li + li' ).prev() .append( ' ' ); -ը փոխարինեք $( '.hlist' ).find( 'dd + dd, dd + dt, li + li' ).prev() .append( '· ' );-ով

Մանրամասները MediaWiki քննարկում:Common.css-ում--ԱշոտՏՆՂ (քննարկում) 11:03, 8 Օգոստոսի 2015 (UTC)[reply]

Արտաքին որոնում[խմբագրել կոդը]

Բարև ձեզ։ Մենք ունենք արտաքին որոնման հնարավորություն, բայց այն չի աշխատում։ Դա ուղղելու համար խնդրում եմ կոդում
document.getElementById("searchText");
-ները փոխարինել
document.getElementById("ooui-1");
-ներով։ Համ էլ միանգամից կարել է առաջին 10 տողերը ջնջել, որովհետև ոչ մի բան չեն անում։ GeoO, Arsog1985։--ԱշոտՏՆՂ (քննարկում) 10:57, 17 Հուլիսի 2017 (UTC)[reply]
Արված է, Աշոտ ջան:--Arsog (1985) 11:26, 17 Հուլիսի 2017 (UTC)[reply]
Ապրես շատ, Արամ ջան։--ԱշոտՏՆՂ (քննարկում) 12:17, 17 Հուլիսի 2017 (UTC)[reply]