Content deleted Content added
m fix |
add {{aiv|warn which I'm seeing a bit in WP:EFFPR Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
(40 intermediate revisions by 14 users not shown) | |||
Line 1:
▲// {{pp-semi-indef}} <syntaxhighlight lang="json">
{
// WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
// This JSON file contains VERY advanced regex magic. If you break MajavahBot, you are responsible for fixing it.
// Some characters have to be double escaped due to JSON
// Comments with two slashes are supported. The bot will automatically read the changes, so please do not experiment here.
// WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
Line 17 ⟶ 15:
"page_to_write_reports": "",
// string
"section_header": "==([^=]+)==[^\n=]*\n",
// this will be used to construct the abuse log links
"abuse_log_format": "https://en.wikipedia.org/wiki/Special:AbuseLog?title=Special:AbuseLog&wpSearchTitle=%s",
// regex used to parse page title from the article
"page_title_regex": ";Page (you|they) were editing\n: ([^\n]*)\n",
// regexes to find "wrong formats", such as pasting the article link directly. these will be automatically fixed
"page_title_wrong_formats": [
// direct link to article
"\\[\\[https:\\/\\/en.wikipedia.org\\/wiki\\/([^\\]]+)]] \\(<span class=\"plainlinks\">[^<]+<\\/span>\\)", // wikilink when unnecessary, [[phab:T249503]]
"\\[\\[\\[\\[([^\\]]+)]]]] \\(<span class=\"plainlinks\">[^<]+<\\/span>\\)"
],
Line 35 ⟶ 36:
"{{effp|f|", "{{effp|f}}", "{{effp|fixed",
"{{effp|d|", "{{effp|d}}", "{{effp|done",
"{{effp|t|", "{{effp|t}}", "{{effp|talk", "{{effp|tl|", "{{effp|tl}}", "{{effp|talklink",
"{{effp|a|", "{{effp|a}}", "{{effp|ad|","{{effp|ad}}", "{{effp|alreadydone",
"{{effp|nd|", "{{effp|nd}}", "{{effp|notdone
"{{effp|
"{{effp|
"{{effp|
"{{effp|ar}}", "{{effp|archive}}", "{{effp|nft}}", "{{effp|nofilterstriggered}}"
],
Line 46 ⟶ 48:
"rolling_archive_max_sections": 25,
// when string is found, the section will be
"archive_delays": {
// archive now:
"{{effp|ar":
// vandalism:
"{{effp|v}}":
"{{effp|
"{{effp|b
"{{effp|
"{{
"{{
"{{effp|
"{{effp|
//
"{{effp|
"{{effp|
"{{effp|
//
"{{effp|
"{{effp|
"{{effp|
"{{effp|r}}": 21600,
"{{effp|r|": 21600,
"{{effp|redlink": 21600,
"{{nd}}": 21600,
"{{notdone}}": 21600,
"{{not done}}": 21600,
// moot: 6h
"{{effp|moot": 21600,
"{{effp|m|": 21600,
"{{effp|m}}": 21600,
// request on talk page: 12h
"{{effp|t|": 43200,
"{{effp|t}}": 43200,
"{{effp|talk": 43200,
"{{effp|tl|": 43200,
"{{effp|tl}}": 43200,
"{{effp|talklink": 43200,
// already done: 12h
"{{effp|a|": 43200,
"{{effp|a}}": 43200,
"{{effp|ad|": 43200,
"{{effp|ad}}": 43200,
"{{effp|alreadydone": 43200,
// nofilterhits: 6h
"{{effp|nft}}": 21600,
"{{effp|nofilterstriggered}}": 21600
},
// if any of these are found on a report, that report will not be archived.
"archive_blockers": [
"{{effp|noarchive", "{{effp|pin"
],
// archive all threads with no matches from archive_delays in
"no_resolution_archive_time":
}
// </syntaxhighlight>
|