Συζήτηση MediaWiki:Common.js

Τελευταίο σχόλιο: πριν από 9 έτη από P.a.a στο θέμα Πολυτονικό

Αναφορές προβλημάτων Αύγουστος 2008 Επεξεργασία

  1. Κύρια Σελίδα: Κάτω από τα interwiki υπάρχει ένας σύνδεσμος [Πλήρης κατάλογος]
  2. Ελλάδα: Ο έκτος σύνδεσμος interwiki (αραβικά) πρέπει να έχει ένα αστεράκι μπροστά
  3. Ελλάδα: Το κουτί με τις χώρες του ΝΑΤΟ πρέπει να έχει δεξιά ένα σύνδεσμο εμφάνιση/απόκρυψη
  4. επεξεργασία: Η εργαλειοθήκη πάνω από το πλαίσιο επεξεργασίας έχει 20 κουμπιά
  5. Ειδικό:Upload: Στην περιγραφή υπάρχει το πρότυπο Πληροφορίες εικόνας για συμπλήρωση


Έγιναν αλλαγές και λύθηκαν (νομίζω) τα προβλήματα. Παρακαλώ κάντε έναν επανέλεγχο.

OK, φαίνεται πως είναι όλα εντάξει. — Geraki ΣΜ 21:04, 3 Αυγούστου 2008 (UTC)Απάντηση

Fix secure Meta link Επεξεργασία

Could someone please change the "WikiMiniAtlas" section from:

 if (wgServer == "https://secure.wikimedia.org") {
  var metaBase = "https://secure.wikimedia.org/wikipedia/meta";
} else {
  var metaBase = "http://meta.wikimedia.org";
}

to:

 if (wgServer == "https://el.wikipedia.org" || "https://secure.wikimedia.org") {
  var metaBase = "https://meta.wikimedia.org";
} else {
  var metaBase = "http://meta.wikimedia.org";
}

Now you can use https://el.wikipedia.org/ and https://meta.wikimedia.org, so let's make sure the site works properly for both people. We can even just replace "https://secure.wikimedia.org" with "https://el.wikipedia.org" if we want to, since most people will probably use https://el.wikipedia.org.

Thanks! Κασεγ συζήτηση 21:54, 4 Απριλίου 2012 (UTC)Απάντηση

OSM-Gadget Επεξεργασία

The next big step in OSM-Wikipedia cooperation is: http://wiki.openstreetmap.org/wiki/WIWOSM For that we need the article name in the tool to running it.

So please use the simple central installation by using meta: http://de.wikipedia.org/wiki/Wikipedia:WikiProjekt_Georeferenzierung/Anwendungen/OpenStreetMap/en#Installation

Thanks. --Kolossos (συζήτηση) 17:13, 11 Ιουλίου 2012 (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");
}
--[[m:User:Nemo_bis|Nemo]] ~~~~~ ([[w:en:MediaWiki talk:Wdsearch.js|comments, translations and last instructions]])

<!-- EdwardsBot 0661 -->

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* (συζήτηση) 19:16, 11 Αυγούστου 2014 (UTC)Απάντηση

Πολυτονικό Επεξεργασία

1200 bytes λιγότερα

$( '#wpTextbox1' ).on( 'wikiEditor-toolbar-buildSection-characters', function (event, section) {
  var greekExtended = [], i;
  for(i = 0x1f00; i < 0x1fff; i++){
    greekExtended.push(String.fromCharCode(i));
  }
  var reserved = [245, 241, 240, 220, 213, 212, 197, 181, 127, 126, 94, 92, 90, 88, 79, 78, 71, 70, 31, 30, 23, 22]; 
  for(i = 0; i < reserved.length; i++){
    greekExtended.splice(reserved[i], 1);
  }
  Array.prototype.push.apply(section.pages.greek.characters, greekExtended);
});

P.a.a (συζήτηση) 17:51, 8 Νοεμβρίου 2014 (UTC)Απάντηση

Επιστροφή στη σελίδα "Common.js".