Kullanıcı:Srhat/vector.js: Revizyonlar arasındaki fark

İçerik silindi İçerik eklendi
Srhat (mesaj | katkılar)
Sayfa oluşturdu, içeriği: '// see Wikinews:Commentary pages on news events. // This script has some crappy hacks in it // ==================================================================...'
 
Srhat (mesaj | katkılar)
Değişiklik özeti yok
16. satır:
}
// Interface strings,
tab_view_comment_on_article = 'OpinionsYorumlar';
// Switch for people that don't want the extra tabs.
63. satır:
title = title.replace(/^[^:]*:/, "");
case 0:
if (title === 'Main_PageAna_Sayfa')
return;
title = encodeURIComponent(title).replace(/%2F/g, "/");
if (skin == "vector") {
//crappy temp hack. probably will break
addPortletLink('p-namespaces', wgArticlePath.replace("$1", "CommentsYorum:" + title), tab_view_comment_on_article, 'ca-commentsyorumlar', 'DiscussHaber yourhakkındaki personalyorumlarınızı viewpoint on the topic at handpaylaşın')
} else {
global_append_tab(wgArticlePath.replace("$1", "CommentsYorum:" + title), tab_view_comment_on_article, 'ca-talk', 'ca-commentsyorumlar');
}
try {
checkCommentaryPageExist("CommentsYorum:" + title);
}
catch (e) {
107. satır:
document.getElementById('ca-comments').className = 'new';
document.getElementById('ca-comments').firstChild.setAttribute('href',
wgServer+wgScript+ "?title=" + pageName + '&action=edit&preload=Wikinews:Commentary_pages_on_news_events/body' +
'&editintro=WikinewsVikihaber:Commentary_pages_on_news_eventsYorum sayfaları/introbilgi');
}
}