Content deleted Content added
m add semicolon |
m minor fixes |
||
Line 24:
$newa.text(a[i]);
$h.append($newa);
if ((i + 1) < a.length) {
$h.append(" • ");
}
}
$("#contentSub").append($h);
Line 41 ⟶ 42:
$parseData.find("a").each(function () {
var link = $(this).attr("href"),
index = link.indexOf("Template:");
if (index === -1) {
$(this).attr({
Line 79 ⟶ 80:
$(function () {
if (mw.config.get("wgNamespaceNumber") === 0 && mw.config.get("wgAction") === "view"
&& $("ca-edit") !== 0) {
var portletLink = mw.util.addPortletLink('p-cactions', '#', 'Stub', 'ca-stubtag', 'Add a stub tag to this page', '');
$(portletLink).click(function (e) {
Line 88 ⟶ 89:
if (___location.href.indexOf("&autoaddstubtag=") !== -1 && $("#wpTextbox1").length !== 0) {
var x = decodeURIComponent(___location.href.split("&autoaddstubtag=")[1]);
if (x.indexOf("-stub") === -1)
x += "-stub";
}
$('#wpTextbox1').val($('#wpTextbox1').val() + "\n{" + "{" + x + "}}"); // add to the end of the article
$('#wpSummary').val("Tagging with {" + "{" + x + "}} using [[User:MC10/stubtagtab.js|stubtagtab.js]]");
|