Utente:BRacco (bot)/Codice/film

Da Wikiquote, aforismi e citazioni in libertà.

AutoWikiBrowser settings[modifica]

Per utilizzare questo codice in AWB:

  1. copiare il testo sottostante e salvarlo come settings.xml (utilizzando ad esempio Blocco note di Windows)
  2. avviare il programma AutoWikiBrowser
  3. importare il file creato tramite il comando: File / Open settings...
<?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="5.5.2.3">
  <Project>wikiquote</Project>
  <LanguageCode>it</LanguageCode>
  <CustomProject />
  <Protocol>http://</Protocol>
  <LoginDomain />
  <List>
    <ListSource>Film</ListSource>
    <SelectedProvider>CategoryRecursiveListProvider</SelectedProvider>
    <ArticleList />
  </List>
  <FindAndReplace>
    <Enabled>true</Enabled>
    <IgnoreSomeText>false</IgnoreSomeText>
    <IgnoreMoreText>false</IgnoreMoreText>
    <AppendSummary>true</AppendSummary>
    <Replacements />
    <AdvancedReps>
      <IRule xsi:type="Rule">
        <enabled_>false</enabled_>
        <Children />
        <Name>tabella film - parametro genere (separatore)</Name>
        <ruletype_>InsideTemplate</ruletype_>
        <replace_>\|\s*[Gg]enere\s*=\s*(.*)\s*[,;]\s*(.*)</replace_>
        <with_>|genere= $1/$2</with_>
        <ifContains_ />
        <ifNotContains_ />
        <regex_>true</regex_>
        <ifIsRegex_>false</ifIsRegex_>
        <numoftimes_>9</numoftimes_>
        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>
        <regexOptions_>IgnoreCase</regexOptions_>
      </IRule>
      <IRule xsi:type="Rule">
        <enabled_>true</enabled_>
        <Children />
        <Name>tabella film - parametro anno (link)</Name>
        <ruletype_>InsideTemplate</ruletype_>
        <replace_>\|\s*([Aa]nno|[Aa]nnouscita)\s*=\s*\[\[(\d+)\]\]</replace_>
        <with_>|anno= $2</with_>
        <ifContains_ />
        <ifNotContains_ />
        <regex_>true</regex_>
        <ifIsRegex_>false</ifIsRegex_>
        <numoftimes_>1</numoftimes_>
        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>
        <regexOptions_>IgnoreCase</regexOptions_>
      </IRule>
      <IRule xsi:type="Rule">
        <enabled_>true</enabled_>
        <Children />
        <Name>tabella film - anni (link)</Name>
        <ruletype_>InsideTemplate</ruletype_>
        <replace_>\[\[(\d+)\]\]</replace_>
        <with_>$1</with_>
        <ifContains_ />
        <ifNotContains_ />
        <regex_>true</regex_>
        <ifIsRegex_>false</ifIsRegex_>
        <numoftimes_>1</numoftimes_>
        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>
        <regexOptions_>IgnoreCase</regexOptions_>
      </IRule>
      <IRule xsi:type="Rule">
        <enabled_>true</enabled_>
        <Children />
        <Name>tabella film - parametro paesi multipli (null)</Name>
        <ruletype_>InsideTemplate</ruletype_>
        <replace_>\|\s*[Pp]aese\d\s*=\s*\n</replace_>
        <with_ />
        <ifContains_ />
        <ifNotContains_ />
        <regex_>true</regex_>
        <ifIsRegex_>false</ifIsRegex_>
        <numoftimes_>1</numoftimes_>
        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>
        <regexOptions_>IgnoreCase</regexOptions_>
      </IRule>
      <IRule xsi:type="Rule">
        <enabled_>true</enabled_>
        <Children />
        <Name>tabella film - parametro paesi multipli (link)</Name>
        <ruletype_>InsideTemplate</ruletype_>
        <replace_>\|\s*[Pp]aese(\d?)\s*=\s*(.*)\[\[(.*?)\]\]</replace_>
        <with_>|paese$1= $2$3</with_>
        <ifContains_ />
        <ifNotContains_ />
        <regex_>true</regex_>
        <ifIsRegex_>false</ifIsRegex_>
        <numoftimes_>9</numoftimes_>
        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>
        <regexOptions_>IgnoreCase</regexOptions_>
      </IRule>
      <IRule xsi:type="Rule">
        <enabled_>true</enabled_>
        <Children />
        <Name>tabella film - parametro paesi multipli (separatore)</Name>
        <ruletype_>InsideTemplate</ruletype_>
        <replace_>\|\s*[Pp]aese(\d?)\s*=\s*(.*)\s*[,;]\s*(.*)</replace_>
        <with_>|paese$1= $2/$3</with_>
        <ifContains_ />
        <ifNotContains_ />
        <regex_>true</regex_>
        <ifIsRegex_>false</ifIsRegex_>
        <numoftimes_>9</numoftimes_>
        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>
        <regexOptions_>IgnoreCase</regexOptions_>
      </IRule>
      <IRule xsi:type="Rule">
        <enabled_>true</enabled_>
        <Children />
        <Name>tabella film - parametro paesi multipli (unifica)</Name>
        <ruletype_>InsideTemplate</ruletype_>
        <replace_>\|\s*[Pp]aese\s*=\s*(.*)\s*\|\s*[Pp]aese\d\s*=\s*(.*)</replace_>
        <with_>|paese= $1/$2
</with_>
        <ifContains_ />
        <ifNotContains_ />
        <regex_>true</regex_>
        <ifIsRegex_>false</ifIsRegex_>
        <numoftimes_>9</numoftimes_>
        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>
        <regexOptions_>IgnoreCase</regexOptions_>
      </IRule>
      <IRule xsi:type="Rule">
        <enabled_>true</enabled_>
        <Children />
        <Name>tabella film - parametro immagine (alignment/format/page/upright/link/alt/class)</Name>
        <ruletype_>InsideTemplate</ruletype_>
        <replace_>\|\s*[Ii]mmagine\s*=\s*\[\[\s*([Ff]ile|[Ii]mmagine|[Ii]mage):(.*?)\|\s*(none|nessuno|center|centro|left|sinistra|right|destra|baseline|sub|super|top|text-top|middle|bottom|text-bottom|border|thumb|thumbnail|miniatura|frame|riquadrato|frameless|senzacornice|page\s*=\s*\d*|upright\s*=?\s*\d*\.?\d*|link\s*=\s*[^\|\]]*|alt\s*=\s*[^\|\]]*|class\s*=\s*[^\|\]]*)\s*(\|?)(.*?)\]\]</replace_>
        <with_>|immagine= [[$1:$2$4$5]]</with_>
        <ifContains_ />
        <ifNotContains_ />
        <regex_>true</regex_>
        <ifIsRegex_>false</ifIsRegex_>
        <numoftimes_>9</numoftimes_>
        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>
        <regexOptions_>IgnoreCase</regexOptions_>
      </IRule>
      <IRule xsi:type="Rule">
        <enabled_>true</enabled_>
        <Children />
        <Name>tabella film - parametro immagine (resize)</Name>
        <ruletype_>InsideTemplate</ruletype_>
        <replace_>\|\s*[Ii]mmagine\s*=\s*\[\[\s*([Ff]ile|[Ii]mmagine|[Ii]mage):(.*?)\|\s*(\d*x?\d*)\s*px\s*(\|?)(.*?)\]\]</replace_>
        <with_>|dimensioneimmagine= $3
|immagine= [[$1:$2$4$5]]</with_>
        <ifContains_ />
        <ifNotContains_ />
        <regex_>true</regex_>
        <ifIsRegex_>false</ifIsRegex_>
        <numoftimes_>1</numoftimes_>
        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>
        <regexOptions_>IgnoreCase</regexOptions_>
      </IRule>
      <IRule xsi:type="Rule">
        <enabled_>true</enabled_>
        <Children />
        <Name>tabella film - parametro immagine (didascalia)</Name>
        <ruletype_>InsideTemplate</ruletype_>
        <replace_>\|\s*[Ii]mmagine\s*=\s*\[\[\s*([Ff]ile|[Ii]mmagine|[Ii]mage):([^\|\]]*)\|?(.*?)\]\]</replace_>
        <with_>|immagine= $2
|didascalia= $3 </with_>
        <ifContains_ />
        <ifNotContains_ />
        <regex_>true</regex_>
        <ifIsRegex_>false</ifIsRegex_>
        <numoftimes_>1</numoftimes_>
        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>
        <regexOptions_>IgnoreCase</regexOptions_>
      </IRule>
      <IRule xsi:type="Rule">
        <enabled_>true</enabled_>
        <Children />
        <Name>tabella film - parametro didascalia (spazio)</Name>
        <ruletype_>InsideTemplate</ruletype_>
        <replace_>\|\s*[Dd]idascalia\s*=\s*\<\s*br\s*\/?\s*\>\s*(.*)</replace_>
        <with_>|didascalia= $1</with_>
        <ifContains_ />
        <ifNotContains_ />
        <regex_>true</regex_>
        <ifIsRegex_>false</ifIsRegex_>
        <numoftimes_>1</numoftimes_>
        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>
        <regexOptions_>IgnoreCase</regexOptions_>
      </IRule>
      <IRule xsi:type="Rule">
        <enabled_>true</enabled_>
        <Children />
        <Name>tabella film - parametro didascalia (small)</Name>
        <ruletype_>InsideTemplate</ruletype_>
        <replace_>\|\s*[Dd]idascalia\s*=\s*\<\s*small\s*\>\s*(.*)\s*\<\s*\/\s*small\s*\></replace_>
        <with_>|didascalia= $1</with_>
        <ifContains_ />
        <ifNotContains_ />
        <regex_>true</regex_>
        <ifIsRegex_>false</ifIsRegex_>
        <numoftimes_>1</numoftimes_>
        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>
        <regexOptions_>IgnoreCase</regexOptions_>
      </IRule>
      <IRule xsi:type="Rule">
        <enabled_>true</enabled_>
        <Children />
        <Name>tabella film - parametro titoloalfabetico da defaultsort</Name>
        <ruletype_>OnWholePage</ruletype_>
        <replace_>\{\{\s*[Ff]ilm((.|\n)*?)\}\}((.|\n)*)\{\{DEFAULTSORT:(.*)\}\}\n?</replace_>
        <with_>{{Film
|titoloalfabetico= $5$1}}$3</with_>
        <ifContains_>\{\{DEFAULTSORT:(.*)\}\}</ifContains_>
        <ifNotContains_>titolo\s?alfabetico</ifNotContains_>
        <regex_>true</regex_>
        <ifIsRegex_>true</ifIsRegex_>
        <numoftimes_>1</numoftimes_>
        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>
        <regexOptions_>IgnoreCase</regexOptions_>
      </IRule>
      <IRule xsi:type="Rule">
        <enabled_>true</enabled_>
        <Children />
        <Name>incipit film (spazio)</Name>
        <ruletype_>OnWholePage</ruletype_>
        <replace_>}}

'''''</replace_>
        <with_>}}
'''''</with_>
        <ifContains_ />
        <ifNotContains_ />
        <regex_>false</regex_>
        <ifIsRegex_>false</ifIsRegex_>
        <numoftimes_>1</numoftimes_>
        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>
        <regexOptions_>IgnoreCase</regexOptions_>
      </IRule>
      <IRule xsi:type="Rule">
        <enabled_>true</enabled_>
        <Children />
        <Name>incipit film (title)</Name>
        <ruletype_>OnWholePage</ruletype_>
        <replace_>\}\}\n\'\'\'\'\'(.*?)\'\'\'\'\' \(\'\'.*?\'\'\)</replace_>
        <with_>}}
'''''$1'''''</with_>
        <ifContains_ />
        <ifNotContains_ />
        <regex_>true</regex_>
        <ifIsRegex_>false</ifIsRegex_>
        <numoftimes_>1</numoftimes_>
        <ifRegexOptions_>IgnoreCase</ifRegexOptions_>
        <regexOptions_>IgnoreCase</regexOptions_>
      </IRule>
    </AdvancedReps>
    <SubstTemplates />
    <IncludeComments>false</IncludeComments>
    <ExpandRecursively>true</ExpandRecursively>
    <IgnoreUnformatted>false</IgnoreUnformatted>
  </FindAndReplace>
  <Editprefs>
    <GeneralFixes>false</GeneralFixes>
    <Tagger>false</Tagger>
    <Unicodify>false</Unicodify>
    <Recategorisation>0</Recategorisation>
    <NewCategory />
    <NewCategory2 />
    <ReImage>0</ReImage>
    <ImageFind />
    <Replace />
    <SkipIfNoCatChange>false</SkipIfNoCatChange>
    <RemoveSortKey>false</RemoveSortKey>
    <SkipIfNoImgChange>false</SkipIfNoImgChange>
    <AppendText>false</AppendText>
    <AppendTextMetaDataSort>false</AppendTextMetaDataSort>
    <Append>true</Append>
    <Text />
    <Newlines>2</Newlines>
    <AutoDelay>10</AutoDelay>
    <BotMaxEdits>0</BotMaxEdits>
    <SupressTag>false</SupressTag>
    <RegexTypoFix>false</RegexTypoFix>
  </Editprefs>
  <General>
    <AutoSaveEdit>
      <Enabled>false</Enabled>
      <SavePeriod>30</SavePeriod>
      <SaveFile />
    </AutoSaveEdit>
    <SelectedSummary>Bot - tabella film: sostituzione parametro immagine</SelectedSummary>
    <Summaries>
      <string>-</string>
      <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>
      <string>---</string>
      <string>Bot - tabella film: verifica parametri del template</string>
      <string>Bot - tabella film: verifica parametro anno/paese (no link)</string>
      <string>Bot - tabella film: verifica parametro paesi multipli</string>
      <string>Bot - tabella film: verifica parametro genere</string>
      <string>Bot - tabella film: sostituzione parametro immagine</string>
      <string>Bot - tabella film: inserimento parametro titoloalfabetico da defaultsort</string>
      <string>Bot - incipit film, eliminazione titolo originale</string>
      <string>Bot - incipit film, eliminazione spazio iniziale</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>true</ToolBarEnabled>
    <BypassRedirect>true</BypassRedirect>
    <AutoSaveSettings>false</AutoSaveSettings>
    <noSectionEditSummary>false</noSectionEditSummary>
    <restrictDefaultsortAddition>true</restrictDefaultsortAddition>
    <restrictOrphanTagging>true</restrictOrphanTagging>
    <noMOSComplianceFixes>false</noMOSComplianceFixes>
    <syntaxHighlightEditBox>false</syntaxHighlightEditBox>
    <highlightAllFind>false</highlightAllFind>
    <PreParseMode>false</PreParseMode>
    <NoAutoChanges>false</NoAutoChanges>
    <OnLoadAction>0</OnLoadAction>
    <DiffInBotMode>false</DiffInBotMode>
    <Minor>true</Minor>
    <AddToWatchlist>2</AddToWatchlist>
    <TimerEnabled>false</TimerEnabled>
    <SortListAlphabetically>true</SortListAlphabetically>
    <AddIgnoredToLog>false</AddIgnoredToLog>
    <EditToolbarEnabled>true</EditToolbarEnabled>
    <filterNonMainSpace>false</filterNonMainSpace>
    <AutoFilterDuplicates>true</AutoFilterDuplicates>
    <FocusAtEndOfEditBox>false</FocusAtEndOfEditBox>
    <scrollToUnbalancedBrackets>false</scrollToUnbalancedBrackets>
    <TextBoxSize>10</TextBoxSize>
    <TextBoxFont>Courier New</TextBoxFont>
    <LowThreadPriority>false</LowThreadPriority>
    <Beep>false</Beep>
    <Flash>false</Flash>
    <Minimize>false</Minimize>
    <LockSummary>false</LockSummary>
    <SaveArticleList>true</SaveArticleList>
    <SuppressUsingAWB>false</SuppressUsingAWB>
    <AddUsingAWBToActionSummaries>false</AddUsingAWBToActionSummaries>
    <IgnoreNoBots>false</IgnoreNoBots>
    <ClearPageListOnProjectChange>false</ClearPageListOnProjectChange>
    <SortInterWikiOrder>true</SortInterWikiOrder>
    <ReplaceReferenceTags>true</ReplaceReferenceTags>
    <LoggingEnabled>true</LoggingEnabled>
    <AlertPreferences>
      <int>1</int>
      <int>2</int>
      <int>3</int>
      <int>4</int>
      <int>5</int>
      <int>6</int>
      <int>7</int>
      <int>8</int>
      <int>9</int>
      <int>10</int>
      <int>11</int>
      <int>12</int>
      <int>13</int>
      <int>14</int>
      <int>15</int>
      <int>16</int>
      <int>17</int>
      <int>18</int>
      <int>19</int>
      <int>20</int>
      <int>21</int>
    </AlertPreferences>
  </General>
  <SkipOptions>
    <SkipNonexistent>true</SkipNonexistent>
    <Skipexistent>false</Skipexistent>
    <SkipWhenNoChanges>false</SkipWhenNoChanges>
    <SkipSpamFilterBlocked>false</SkipSpamFilterBlocked>
    <SkipInuse>false</SkipInuse>
    <SkipWhenOnlyWhitespaceChanged>false</SkipWhenOnlyWhitespaceChanged>
    <SkipOnlyGeneralFixChanges>true</SkipOnlyGeneralFixChanges>
    <SkipOnlyMinorGeneralFixChanges>false</SkipOnlyMinorGeneralFixChanges>
    <SkipOnlyCasingChanged>false</SkipOnlyCasingChanged>
    <SkipIfRedirect>false</SkipIfRedirect>
    <SkipIfNoAlerts>false</SkipIfNoAlerts>
    <SkipDoes>false</SkipDoes>
    <SkipDoesNot>false</SkipDoesNot>
    <SkipDoesText />
    <SkipDoesNotText />
    <Regex>false</Regex>
    <CaseSensitive>false</CaseSensitive>
    <AfterProcessing>false</AfterProcessing>
    <SkipNoFindAndReplace>true</SkipNoFindAndReplace>
    <SkipMinorFindAndReplace>false</SkipMinorFindAndReplace>
    <SkipNoRegexTypoFix>false</SkipNoRegexTypoFix>
    <SkipNoDisambiguation>false</SkipNoDisambiguation>
    <SkipNoLinksOnPage>false</SkipNoLinksOnPage>
    <GeneralSkipList />
  </SkipOptions>
  <Module>
    <Enabled>false</Enabled>
    <Language>C# 2.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>
  <ExternalProgram>
    <Enabled>false</Enabled>
    <Skip>false</Skip>
    <Program />
    <Parameters />
    <PassAsFile>true</PassAsFile>
    <OutputFile />
  </ExternalProgram>
  <Disambiguation>
    <Enabled>false</Enabled>
    <Link />
    <Variants />
    <ContextChars>20</ContextChars>
  </Disambiguation>
  <Special>
    <namespaceValues>
      <int>0</int>
    </namespaceValues>
    <remDupes>true</remDupes>
    <sortAZ>true</sortAZ>
    <filterTitlesThatContain>false</filterTitlesThatContain>
    <filterTitlesThatContainText />
    <filterTitlesThatDontContain>false</filterTitlesThatDontContain>
    <filterTitlesThatDontContainText />
    <areRegex>false</areRegex>
    <opType>0</opType>
    <remove />
  </Special>
  <Tool>
    <ListComparerUseCurrentArticleList>0</ListComparerUseCurrentArticleList>
    <ListSplitterUseCurrentArticleList>0</ListSplitterUseCurrentArticleList>
    <DatabaseScannerUseCurrentArticleList>0</DatabaseScannerUseCurrentArticleList>
  </Tool>
  <Plugin />
</AutoWikiBrowserPreferences>

[Versione del 11/02/2014]