User:Rich Farmbrough/AWB/birthage

From Wikipedia, the free encyclopedia
<?xml version="1.0"?>
<AutoWikiBrowserPreferences xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:space="preserve" Version="4.1.1.0">
  <Project>wikipedia</Project>
  <LanguageCode>en</LanguageCode>
  <CustomProject />
  <List>
    <ListSource>Living people</ListSource>
    <Source>TextFile</Source>
    <ArticleList />
  </List>
  <FindAndReplace>
    <Enabled>true</Enabled>
    <IgnoreSomeText>true</IgnoreSomeText>
    <IgnoreMoreText>false</IgnoreMoreText>
    <AppendSummary>false</AppendSummary>
    <AfterOtherFixes>false</AfterOtherFixes>
    <Replacements>
      <Replacement>
        <Find>((?:(?:B|b)orn|(?:B|b)irth(?:_|-| |)date|(?:d|D)ate(?:_|-| |)(?:O|o)f(?:_|-| |)(?:B|b)irth)\s*=\s*)\[\[(\w+)\s*(\d+)\]\],*\s*\[\[(\d+)\]\]</Find>
        <Replace>$1{{birth date|$4|zzzxxx$2zzzxxx|zzzxxx$3zzzxxx|mf=y}}</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>None</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>((?:(?:B|b)orn|(?:B|b)irth(?:_|-| |)date|(?:d|D)ate(?:_|-| |)(?:O|o)f(?:_|-| |)(?:B|b)irth)\s*=\s*)\[\[(\d+)\s*(\w+)\]\],*\s*\[\[(\d+)\]\]</Find>
        <Replace>$1{{birth date|$4|zzzxxx$3zzzxxx|zzzxxx$2zzzxxx|df=y}}</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>None</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>((?:(?:d|D)ied|(?:d|D)eath(?:_|-| |)date|(?:d|D)ate(?:_|-| |)of(?:_|-| |)death)\s*=\s*)\[\[(\w+)\s*(\d+)\]\],*\s*\[\[(\d+)\]\]</Find>
        <Replace>$1{{death date|$4|zzzxxx$2zzzxxx|zzzxxx$3zzzxxx|mf=y}}</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>None</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>((?:(?:d|D)ied|(?:d|D)eath(?:_|-| |)date|(?:d|D)ate(?:_|-| |)of(?:_|-| |)death)\s*=\s*)\[\[(\d+)\s*(\w+)\]\],*\s*\[\[(\d+)\]\]</Find>
        <Replace>$1{{death date|$4|zzzxxx$3zzzxxx|zzzxxx$2zzzxxx|df=y}}</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>None</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>zzzxxx0(\d)zzzxxx</Find>
        <Replace>$1</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>zzzxxx(Jan|January|jan\.)zzzxxx</Find>
        <Replace>1</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>zzzxxx(Feb|Febr*u*a*r*e*y|feb\.)zzzxxx</Find>
        <Replace>2</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>zzzxxx(Mar|March|Mar\.)zzzxxx</Find>
        <Replace>3</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>zzzxxx(Apr|April|Apr\.)zzzxxx</Find>
        <Replace>4</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>zzzxxx(May|May\.)zzzxxx</Find>
        <Replace>5</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>zzzxxx(Jun|June|Jun\.)zzzxxx</Find>
        <Replace>6</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>zzzxxx(Jul|July|jul\.)zzzxxx</Find>
        <Replace>7</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>zzzxxx(Aug|August|Aug\.)zzzxxx</Find>
        <Replace>8</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>zzzxxx(Sept*|september|Sept*\.)zzzxxx</Find>
        <Replace>9</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>zzzxxx(Oct|October|oct\.)zzzxxx</Find>
        <Replace>10</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>zzzxxx(Nov|November|Nov\.)zzzxxx</Find>
        <Replace>11</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>zzzxxx(Dec|December|Dec\.)zzzxxx</Find>
        <Replace>12</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>zzzxxx(\d+)zzzxxx</Find>
        <Replace>$1</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>\[\[USA]]\.</Find>
        <Replace>[[United States]].</Replace>
        <IsRegex>false</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>((?:(?:B|b)orn|(?:B|b)irth(?:_|-| |)date|(?:d|D)ate(?:_|-| |)of(?:_|-| |)birth|(?:d|D)ate(?:_|-| |)of(?:_|-| |)death)\s*=\s*{{birth date)(\|\d+\|\d+\|\d+(?:\|\s*mf\s*=\s*y\s*)*}})\s*\(*\s*aged*\s*\d+\)*</Find>
        <Replace>$1 and age$2</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>false</Enabled>
        <RegularExpressinonOptions>None</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>\[\[USA]]</Find>
        <Replace>[[United States|U.S.]]</Replace>
        <IsRegex>false</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>((?:(?:B|b)orn|(?:B|b)irth(?:_|-| |)date|(?:d|D)ate(?:_|-| |)of(?:_|-| |)birth)\s*=\s*{{birth date\|(\d+)\|(\d+)\|(\d+)(?:\|\s*(?:m|d)f\s*=\s*y(?:es)*\s*|)}}\s*.*\|*\s*\r*\n*(?:.*\r*\n*|)(?:.*\r*\n*|)(?:.*\r*\n*|)\s*\|*\s*(?:(?:D|d)ied|(?:D|d)eath(?:_|-| |)date|(?:d|D)ate(?:_|-| |)of(?:_|-| |)death)\s*=\s*{{death date)(\|\d+\|\d+\|\d+)(\|\s*(?:m|d)f\s*=\s*y(?:es)*\s*)*}}</Find>
        <Replace>$1 and age$5|$2|$3|$4$6}}</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>Multiline</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>\[\[United\ States\|USA]]</Find>
        <Replace>[[United States|U.S.]]</Replace>
        <IsRegex>false</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>({{death date and age\|\d+\|\d+\|\d+\|\d+\|\d+\|\d+(?:\|\s*(?:m|d)f\s*=\s*y(?:es)*|)\s*}})\s*\,*\s*\(*\s*aged*\s*\,*\s*\d+ *(?:yrs*|years*|) *\)*\.*</Find>
        <Replace>$1</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>{{\s*birth\s+date\s*\|</Find>
        <Replace>{{Birth date and age|</Replace>
        <IsRegex>true</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>\[\[USA\|</Find>
        <Replace>[[United States|</Replace>
        <IsRegex>false</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
      <Replacement>
        <Find>\[\[U\.S\.\|</Find>
        <Replace>[[United States|</Replace>
        <IsRegex>false</IsRegex>
        <Enabled>true</Enabled>
        <RegularExpressinonOptions>IgnoreCase</RegularExpressinonOptions>
      </Replacement>
    </Replacements>
    <AdvancedReps />
    <SubstTemplates />
  </FindAndReplace>
  <Editprefs>
    <GeneralFixes>true</GeneralFixes>
    <Tagger>true</Tagger>
    <Unicodify>true</Unicodify>
    <Recategorisation>0</Recategorisation>
    <NewCategory />
    <NewCategory2 />
    <ReImage>0</ReImage>
    <ImageFind />
    <Replace />
    <SkipIfNoCatChange>false</SkipIfNoCatChange>
    <SkipIfNoImgChange>false</SkipIfNoImgChange>
    <AppendText>false</AppendText>
    <Append>true</Append>
    <Text />
    <AutoDelay>1</AutoDelay>
    <QuickSave>true</QuickSave>
    <SuppressTag>true</SuppressTag>
    <OverrideWatchlist>false</OverrideWatchlist>
    <RegexTypoFix>false</RegexTypoFix>
  </Editprefs>
  <General>
    <AutoSaveEdit>
      <Enabled>false</Enabled>
      <SavePeriod>60</SavePeriod>
      <SaveFile>Edit Box.txt</SaveFile>
    </AutoSaveEdit>
    <SelectedSummary>Set up birth date/death date template and/or general fixes</SelectedSummary>
    <Summaries>
      <string>clean up</string>
      <string>re-categorisation per [[WP:CFD|CFD]]</string>
      <string>clean up and  re-categorisation per [[WP:CFD|CFD]]</string>
      <string>removing category per [[WP:CFD|CFD]]</string>
      <string>[[Wikipedia:Template substitution|subst:'ing]]</string>
      <string>[[Wikipedia:WikiProject Stub sorting|stub sorting]]</string>
      <string>[[WP:AWB/T|Typo fixing]]</string>
      <string>bad link repair</string>
      <string>Fixing [[Wikipedia:Disambiguation pages with links|links to disambiguation pages]]</string>
      <string>Unicodifying</string>
    </Summaries>
    <PasteMore>
      <string />
      <string />
      <string />
      <string />
      <string />
      <string />
      <string />
      <string />
      <string />
      <string />
    </PasteMore>
    <FindText />
    <FindRegex>false</FindRegex>
    <FindCaseSensitive>false</FindCaseSensitive>
    <WordWrap>true</WordWrap>
    <ToolBarEnabled>false</ToolBarEnabled>
    <BypassRedirect>true</BypassRedirect>
    <NoAutoChanges>false</NoAutoChanges>
    <OnLoadAction>0</OnLoadAction>
    <Minor>false</Minor>
    <Watch>false</Watch>
    <TimerEnabled>false</TimerEnabled>
    <SortInterwikiOrder>false</SortInterwikiOrder>
    <AddIgnoredToLog>false</AddIgnoredToLog>
    <TextBoxSize>10</TextBoxSize>
    <TextBoxFont>Courier New</TextBoxFont>
    <LowThreadPriority>false</LowThreadPriority>
    <Beep>false</Beep>
    <Flash>false</Flash>
    <Minimize>false</Minimize>
    <LockSummary>true</LockSummary>
    <SaveArticleList>false</SaveArticleList>
    <TimeOutLimit>30</TimeOutLimit>
    <IgnoreNoBots>false</IgnoreNoBots>
    <CustomWikis />
  </General>
  <SkipOptions>
    <SkipNonexistent>true</SkipNonexistent>
    <Skipexistent>false</Skipexistent>
    <SkipWhenNoChanges>false</SkipWhenNoChanges>
    <SkipSpamFilterBlocked>false</SkipSpamFilterBlocked>
    <SkipInuse>false</SkipInuse>
    <SkipDoes>true</SkipDoes>
    <SkipDoesNot>true</SkipDoesNot>
    <SkipDoesText>({{\s*death date|age in years and days)</SkipDoesText>
    <SkipDoesNotText>Category\s*:\s*Living\s*people</SkipDoesNotText>
    <Regex>true</Regex>
    <CaseSensitive>false</CaseSensitive>
    <SkipNoFindAndReplace>true</SkipNoFindAndReplace>
    <SkipNoRegexTypoFix>false</SkipNoRegexTypoFix>
    <SkipNoDisambiguation>false</SkipNoDisambiguation>
    <GeneralSkip>0</GeneralSkip>
  </SkipOptions>
  <Module>
    <Enabled>false</Enabled>
    <Language>0</Language>
    <Code>        public string ProcessArticle(string ArticleText, string ArticleTitle, int wikiNamespace, out string Summary, out bool Skip)
        {
            Skip = false;
            Summary = "test";

            ArticleText = "test \r\n\r\n" + ArticleText;

            return ArticleText;
        }</Code>
  </Module>
  <Disambiguation>
    <Enabled>false</Enabled>
    <Link />
    <Variants />
    <ContextChars>20</ContextChars>
  </Disambiguation>
  <Logging>
    <LogVerbose>false</LogVerbose>
    <LogWiki>false</LogWiki>
    <LogXHTML>false</LogXHTML>
    <UploadYN>false</UploadYN>
    <UploadAddToWatchlist>false</UploadAddToWatchlist>
    <UploadOpenInBrowser>false</UploadOpenInBrowser>
    <UploadToWikiProjects>false</UploadToWikiProjects>
    <DebugUploading>false</DebugUploading>
    <UploadMaxLines>1000</UploadMaxLines>
    <LogFolder />
    <UploadJobName />
    <UploadLocation />
    <LogCategoryName />
  </Logging>
  <Plugin>
    <PluginPrefs>
      <Name>CFD-Plugin</Name>
    </PluginPrefs>
  </Plugin>
</AutoWikiBrowserPreferences>