Content deleted Content added
Epicgenius (talk | contribs) fix |
Epicgenius (talk | contribs) update |
||
Line 29:
// Categories to check
var category = "[[Category:";
var categoryEnd = "]]"; // This might match both categories and links▼
var categoryA = category+"A ";
var categoryAn = category+"An ";
var categoryThe = category+"The ";
▲ var categoryEnd = "]]"; // This might match to both categories and links
var categoryEponymous = category+mw.config.get("wgTitle");
var stubTag = "-stub}}";
var someTemplateEnd = "}}";
// Get the text up to the start of the categories, and then all of the text with the categories.
Line 65 ⟶ 66:
textWithCategories = splitCategories.join("\n");
if (wpTextbox1_V.indexOf(defaultSort) < 0) {
textWithCategories = "\n"+textWithCategories;
} else {
textWithCategories = textWithCategories;
}
if (wpTextbox1_V.indexOf(stubTag) < 0) {
|