|
|
| page_namespace == 0 & (
| | /* 無資格利用者による投稿 */ |
| ( length(summary) == 0 | summary rlike "^/\*.*\*/\s$" ) & ( | | |
| removed_lines irlike "<ref.*?>" &
| | tp_head := "\{\{(:?template:|:?テンプレート:)?"; |
| !(added_lines irlike "<ref.*?>")
| | tp_tail := "(\||\}\})"; |
| | |
| | ( /* 削除依頼 */ |
| | action === "edit" |
| | & page_prefixedtitle rlike "^Wikipedia:削除依頼\/.+" |
| | & |
| | ( |
| | ("user" in user_groups & user_editcount < 50) |
| | | |
| | !"user" in user_groups |
| | ) |
| | & |
| | ( |
| | votes := rmwhitespace("( |
| | (だみーダミーdummy) |
| | |全?削除 |
| | |(即時|全即時)?削除 |
| | |中立 |
| | |一部(削除|存続)? |
| | |特定版(削除)? |
| | |版指定(削除)? |
| | |即時版指定(削除)? |
| | |緊急 |
| | |緊急版指定(削除)? |
| | |緊急即時(削除)? |
| | |全?存続 |
| | |全?即時存続 |
| | |履歴統合 |
| | |(他プロジェクトへ)?移動 |
| | |保留 |
| | )"); |
| | afd := tp_head + "([Aa]FD|[Aa]fd)\|(1=)?" + votes + tp_tail; |
| | keep := tp_head + "存続" + tp_tail; |
| | kakko := "(" + votes + ")"; |
| | |
| | (rmwhitespace(added_lines) rlike afd & !rmwhitespace(removed_lines) rlike afd) |
| | | |
| | (rmwhitespace(added_lines) rlike keep & !rmwhitespace(removed_lines) rlike keep) |
| | | |
| | (rmwhitespace(added_lines) rlike kakko & !rmwhitespace(removed_lines) rlike kakko) |
| | ) |
| | ) |
| | | |
| | ( /* 投稿ブロック依頼 */ |
| | action === "edit" |
| | & page_prefixedtitle rlike "^Wikipedia:投稿ブロック依頼\/.+" |
| | & !("user" in user_groups & user_editcount >= 50) |
| | & |
| | ( |
| | ( /* 作成不許可 */ |
| | page_age === 0 |
| | ) |
| | | |
| | ( /* 編集不許可 */ |
| | wikitext := rmwhitespace(str_replace(old_wikitext, "_", "")); |
| | page_age !== 0 |
| | & |
| | ( /* 被依頼者でないことを担保するために、{{User}}などで言及されている場合は除外 */ |
| | if ("user" in user_groups) then ( |
| | user_template := tp_head + "[Uu]ser[2345R]?\|(1=)?" + rmwhitespace(rescape(user_name)) + tp_tail; |
| | !wikitext rlike user_template |
| | ) else ( |
| | ip_type := user_name contains ":" ? "IPv6" : "IPv4"; |
| | ip_range := ip_type === "IPv6" ? get_matches("^[\dA-F]+:[\dA-F]+:", user_name)[0] : get_matches("^\d+\.\d+\.", user_name)[0]; |
| | ip_range := "(?i:" + rescape(ip_range) + ")"; |
| | user_template := tp_head + "[Uu]ser[2345R]?\|(1=)?" + ip_range + "[^\|\}]+" + tp_tail; |
| | ip_template := tp_head + "[Ii][Pp]([Uu]ser)?2?\|(1=)?" + ip_range + "[^\|\}]+" + tp_tail; |
| | !wikitext rlike user_template & !wikitext rlike ip_template |
| | ) end |
| | ) |
| ) | | ) |
| ) | | ) |
| | & /* 除外利用者名 */ |
| | !equals_to_any(user_name, |
| | "だみーダミーdummy" |
| | ) |
| | ) |