MediaWiki:Gadget-popups.js: Verskil tussen weergawes
Content deleted Content added
Anrie (besprekings | bydraes) kNo edit summary |
k Bot: Security fix: protocol-relative URLs per https://meta.wikimedia.org/?oldid=3197161 (questions?). |
||
Lyn 25:
////////////////////////////////////////////////////////////////////
var popStyleSheet = '
if ( window.localCSS ) { popStyleSheet = 'http://localhost:8080/js/navpop.css'; }
Lyn 1 487:
* Version 0.6.1
* Copyright (C) Pedro Fayolle 2005-2006
*
* Distributed under the BSD license
*
Lyn 1 537:
math: '/math/', // FIXME
images: ( window.getImageUrlStart ? getImageUrlStart(pg.wiki.hostname) : ''),
images_fallback: '
magnify_icon: 'skins/common/images/magnify-clip.png'
},
Lyn 1 554:
user.name = user.name || 'Wikipedian'
user.signature = '[['+locale.user+':'+user.name+'|'+user.name+']]'
//paths.images = '
}
Lyn 3 442:
function listLinks(wikitext, oldTarget, titleToEdit) {
// mediawiki strips trailing spaces, so we do the same
// testcase:
var reg=RegExp('\\[\\[([^|]*?) *(\\||\\]\\])', 'gi');
var ret=[];
Lyn 5 038:
function getImageUrlStart(wiki) { // this returns a trailing slash
switch (wiki) {
case 'en.wikipedia.org': return '
case pg.wiki.commons: return '
case 'en.wiktionary.org': return '
case 'secure.wikimedia.org':
return joinPath(['http://upload.wikimedia.org', pg.wiki.prePath]) + '/'; break;
default: // unsupported - take a guess
if (pg.wiki.wikimedia) {
return '
}
/* this should work for wikicities */
Lyn 5 062:
function imageThumbURL(img, wiki, width) {
//
// eg
// Rubiks_cube_solved.jpg/120px-Rubiks_cube_solved.jpg
// ^^^^^^^^^^^^^^^^^^^^^^^
Lyn 7 948:
//
// See instructions at
//
pg.string = {
|