מדיה ויקי:Gadget-CustomSideBarLinks.js: הבדלים בין גרסאות בדף
more sensible flow |
מ 37 גרסאות של הדף wikipedia:he:מדיה_ויקי:Gadget-CustomSideBarLinks.js יובאו |
||
| (11 גרסאות ביניים של 5 משתמשים אינן מוצגות) | |||
| שורה 24: | שורה 24: | ||
return; | return; | ||
} // else... | } // else... | ||
var linksPortalName = 'myLinksPortal'; | var linksPortalName = 'myLinksPortal'; | ||
var $div = $('<div>', { id: linksPortalName } ) | var $div; | ||
if (skin === 'vector' || skin === 'vector-2022'){ | |||
$div = $('<nav>', { id: linksPortalName } ) | |||
.addClass('mw-portlet vector-menu vector-menu-portal portal') | |||
.append($('<h3>').addClass('vector-menu-heading').text('הקישורים שלי')) | |||
.append($('<div>', {'class': 'vector-menu-content'}).html(linkstext)); | |||
} else { | |||
$div = $('<nav>', { id: linksPortalName } ) | |||
.addClass('portal') | .addClass('portal') | ||
.append($('<h3>').text('הקישורים שלי')) | .append($('<h3>').addClass('vector-menu-heading').text('הקישורים שלי')) | ||
.append($('<div>', {'class': 'body'}).html(linkstext)); | .append($('<div>', {'class': 'body'}).html(linkstext)); | ||
} | |||
var $firstPortal = $('# | |||
var $firstPortal = $('#p-navigation'); | |||
$firstPortal.after($div); | $firstPortal.after($div); | ||
| שורה 41: | שורה 48: | ||
url: mw.util.wikiScript('index'), | url: mw.util.wikiScript('index'), | ||
data: { | data: { | ||
title: | title: new mw.Title(mw.config.get('wgUserName')+'/הקישורים שלי', mw.config.get('wgNamespaceIds').user).getPrefixedText(), | ||
action: 'render' | action: 'render' | ||
}, | }, | ||