User:MajavahBot/EFFP Helper Configuration

This is an old revision of this page, as edited by Taavi (talk | contribs) at 17:28, 18 November 2019 (edit). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

//

{
    // 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 systax things. Always use a JSON validator and parser to check your changes.
    // 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
    
    // page to search for
    "reports_page": "Wikipedia:Edit filter/False positives/Reports",

    // string seperating the reports
    "section_header": "==([^=]+)==[^\n=]*\n",
    
    // this will be used to construct the abuse log links
    "abuse_log_format": "//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 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": [
        "\\[\\[https:\\/\\/en.wikipedia.org\\/wiki\\/([^\\]]+)]] \\(<span class=\"plainlinks\">[^<]+<\\/span>\\)"
    ],

    // if these strings are found in a section, that section is considered closed
    "section_closed_strings": [
        "{{effp|f|", "{{effp|f}}", "{{effp|fixed",
        "{{effp|d|", "{{effp|d}}", "{{effp|done",
        "{{effp|t|", "{{effp|t}}", "{{effp|talk",
        "{{effp|a|", "{{effp|a}}", "{{effp|alreadydone",
        "{{effp|nd}}", "{{effp|notdone}}",
        "{{effp|v}}", "{{effp|denied}}",
        "{{effp|b|", "{{effp|b}}", "{{effp|blocked"    
    ]
}
//