Uživatel:Zef/vector.js: Porovnání verzí
m |
m |
||
| Řádek 40: | Řádek 40: | ||
/* Odkaz na Obrázky*/ | /* Odkaz na Obrázky*/ | ||
jQuery( function( $ ) { | jQuery( function( $ ) { | ||
| − | var caption = ' | + | var caption = 'Obrázky'; |
if (wgUserLanguage != 'cs') | if (wgUserLanguage != 'cs') | ||
| − | caption = 'Kategorie: | + | caption = 'Kategorie:Obrázky'; |
| − | addPortletLink('p-personal', wgServer + wgScript + '?title=Kategorie: | + | addPortletLink('p-personal', wgServer + wgScript + '?title=Kategorie:Obrázky', caption, 'pt-sandbox', caption, '', document.getElementById('pt-preferences')); |
} | } | ||
); | ); | ||
Aktuální verze z 15. 11. 2014, 10:49
/* Odkaz na pískoviště */
jQuery( function( $ ) {
var caption = 'Pískoviště';
if (wgUserLanguage != 'cs')
caption = 'Special:Mypage/pískoviště';
addPortletLink('p-personal', wgServer + wgScript + '?title=Special:Mypage/pískoviště', caption, 'pt-sandbox', caption, '', document.getElementById('pt-preferences'));
});
/* Odkaz na bota */
jQuery( function( $ ) {
var caption = 'Bot';
if (wgUserLanguage != 'cs')
caption = 'Uživatel:Zef/Bot';
addPortletLink('p-personal', wgServer + wgScript + '?title=Uživatel:Zef/Bot', caption, 'pt-sandbox', caption, '', document.getElementById('pt-preferences'));
}
);
/* Odkaz na infoboxy */
jQuery( function( $ ) {
var caption = 'Infoboxy';
if (wgUserLanguage != 'cs')
caption = 'Kategorie:Infoboxy';
addPortletLink('p-personal', wgServer + wgScript + '?title=Kategorie:Infoboxy', caption, 'pt-sandbox', caption, '', document.getElementById('pt-preferences'));
}
);
/* Odkaz na Speciální:Dvojitá_přesměrování */
jQuery( function( $ ) {
var caption = '2Red';
if (wgUserLanguage != 'cs')
caption = 'Speciální:Dvojitá_přesměrování';
addPortletLink('p-personal', wgServer + wgScript + '?title=Speciální:Dvojitá_přesměrování', caption, 'pt-sandbox', caption, '', document.getElementById('pt-preferences'));
}
);
/* Odkaz na Obrázky*/
jQuery( function( $ ) {
var caption = 'Obrázky';
if (wgUserLanguage != 'cs')
caption = 'Kategorie:Obrázky';
addPortletLink('p-personal', wgServer + wgScript + '?title=Kategorie:Obrázky', caption, 'pt-sandbox', caption, '', document.getElementById('pt-preferences'));
}
);
/* Odkaz na Kategorie:Šablony */
jQuery( function( $ ) {
var caption = 'Šablony';
if (wgUserLanguage != 'cs')
caption = 'Kategorie:Šablony';
addPortletLink('p-personal', wgServer + wgScript + '?title=Kategorie:Šablony', caption, 'pt-sandbox', caption, '', document.getElementById('pt-preferences'));
}
);