Skip to content

Commit

Permalink
fix all namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kanasimi committed Sep 1, 2024
1 parent c283b04 commit b228dc0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions routine/20240821.Clean_up_misspelling_links.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ async function main_process() {
CeL.log_temporary(`取得所有嵌入${CeL.wiki.title_link_of(wiki.latest_task_configuration.general.misspelling_redirect_template_title)}的頁面並篩選...`);
const misspelling_pages = [];
await wiki.for_each_page(
await wiki.embeddedin(wiki.latest_task_configuration.general.misspelling_redirect_template_title, { namespace: 'main|Template' }),
await wiki.embeddedin(wiki.latest_task_configuration.general.misspelling_redirect_template_title, {
//namespace: 'main|Template' || '*',
}),
page_data => {
const timestamp = Date.parse(CeL.wiki.content_of.revision(page_data).timestamp);
// {{tl|錯誤拼寫重定向}}超過 delay(一週)的頁面才處理。這間隔應當足夠編者檢核了。
Expand Down Expand Up @@ -88,7 +90,7 @@ async function main_process() {
,
}, {
[move_from_link]: {
namespace: 'main|Template',
//namespace: 'main|Template',
move_to_link,
page_list_filter(page_data, index, page_list) {
if (wiki.latest_task_configuration.general.max_backlinks && !('parcess_this_template' in page_list)) {
Expand Down

0 comments on commit b228dc0

Please sign in to comment.