User:Theleekycauldron/Scripts/PSHAW/dependencies/Nomination.js: Difference between revisions
Content deleted Content added
tests Tag: Reverted |
Undid revision 1236148161 by Theleekycauldron (talk) apparently not! |
||
Line 28:
page = await get_pages(title,"user|content",null,"older");
await page;
nom = new Nomination(title,page)
nom.loadHooks();
Line 75 ⟶ 74:
}
dykn = res[0].revisions[0].slots.main.content.split("\n");▼
i = 0▼
▲ dykn = res[0].revisions[0].slots.main.content.split("\n");
for (let line of dykn){▼
▲ i = 0
if (line.includes("===Articles created/expanded on")){▼
▲ for (let line of dykn){
dykn.splice(dykn.index(line)+2,0,`{{${this.title}}}`)
▲ if (line.includes("===Articles created/expanded on")){
dykn
title: "Template talk:Did you know",▼
summary: `Retranscluding [[${this.title}]]`,▼
▲ title: "Template talk:Did you know",
text: dykn,
▲ summary: `Retranscluding [[${this.title}]]`,
return api.postWithToken( 'csrf', params );▼
}
▲ return api.postWithToken( 'csrf', params );
}
})
}
|