Utente:Sirbot/Script: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Riga 141:
print e # Print the error and skip
continue
newTalkText = re.sub('\|\n? *?[Ii]mmagini ?= *?\n', '|immagini=d\n', talkText)
if talkText != newTalkText:
wikipedia.showDiff(talkText, newTalkText)
Riga 164:
print e # Print the error and skip
continue
newTalkText = re.sub('\|\n? *?[Ii]mmagini ?= ?d\n', '|immagini= \n', talkText)
if talkText != newTalkText:
wikipedia.showDiff(talkText, newTalkText)
Riga 188:
print e # Print the error and skip
continue
newTalkText = re.sub('\|\n? *?[Ff]onti ?= *?\n', '|fonti=d\n', talkText)
if talkText != newTalkText:
wikipedia.showDiff(talkText, newTalkText)
Riga 211:
print e # Print the error and skip
continue
newTalkText = re.sub('\|\n? *?[Ff]onti ?= ?d\n', '|fonti= \n', talkText)
if talkText != newTalkText:
wikipedia.showDiff(talkText, newTalkText)
Riga 235:
print e # Print the error and skip
continue
newTalkText = re.sub('\|\n? *?[Aa]ccuratezza ?= *?\n', '|accuratezza=a\n', talkText)
if talkText != newTalkText:
wikipedia.showDiff(talkText, newTalkText)
Riga 248:
try:
page.put(newTalkText, u'[[WP:BOT|Bot]]: Voce in vetrina: completezza "a"')
except wikipedia.Error, e:
print e # Print the error and skip
continue
match = re.search('(\{\{[Ss]\|)', pageText, re.IGNORECASE)
if match is not None:
wikipedia.output(">>>>> %s <<<<<" % associatedPage.title())
try:
talkText = page.get()
except wikipedia.Error, e:
print e # Print the error and skip
continue
newTalkText = re.sub('\|\n? *?[Aa]ccuratezza=.*?\n', '|accuratezza=c\n', talkText)
if talkText != newTalkText:
wikipedia.showDiff(talkText, newTalkText)
if not always:
choice = wikipedia.inputChoice(u"Apply the changes?", ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N')
else:
choice = 'y'
if choice in ['A', 'a']:
always = True
choice = 'y'
if choice in ['Y', 'y']:
try:
page.put(newTalkText, u'[[WP:BOT|Bot]]: Stub: completezza "c"')
except wikipedia.Error, e:
print e # Print the error and skip
continue
if match == None:
match = re.search('(\{\{[Ss]\|)', pageText, re.IGNORECASE)
wikipedia.output(">>>>> %s <<<<<" % associatedPage.title())
if match is not tryNone:
wikipedia.output(">>>>> %s <<<<<" % talkText = pageassociatedPage.gettitle())
except wikipedia.Error, etry:
printtalkText e= # Print the error and skippage.get()
except wikipedia.Error, continuee:
print e # Print the error and skip
newTalkText = re.sub('\|\n? *?[Aa]ccuratezza= ?c\n', '|accuratezza= \n', talkText)
if talkText != newTalkText: continue
newTalkText = re.sub('\|\n? *?[Aa]ccuratezza ?=.*?\n', '|accuratezza=c\n', talkText)
wikipedia.showDiff(talkText, newTalkText)
if talkText != if not alwaysnewTalkText:
choice = wikipedia.inputChoiceshowDiff(u"Apply the changes?", ['Yes', 'No', 'All'], ['y', 'N', 'a']talkText, 'N'newTalkText)
elseif not always:
choice = wikipedia.inputChoice(u"Apply the changes?", ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N')
if choice in ['A', 'a']else:
alwayschoice = True'y'
if choice =in ['A', 'ya']:
if choice in ['Y', 'y']:always = True
try:choice = 'y'
if choice in page.put(newTalkText['Y', u'[[WP:BOT|Bot]y']: Non stub: rimuovo completezza "c"')
except wikipedia.Error, etry:
printpage.put(newTalkText, eu'[[WP:BOT|Bot]]: #Stub: Printcompletezza the error and skip"c"')
except wikipedia.Error, continuee:
print e # Print the error and skip
match = re.search('(\{\{[Aa]\|)', pageText, re.IGNORECASE)
if match is not None: continue
if match is not== None:
wikipedia.output(">>>>> %s <<<<<" % associatedPage.title())
match = re.search('(\{\{[SsAa]\|)', pageText, re.IGNORECASE)
try:
if match is not talkText = page.get()None:
except wikipedia.Error,output(">>>>> e:%s <<<<<" % associatedPage.title())
print e # Print the error and skiptry:
continuetalkText = page.get()
except wikipedia.Error, e:
newTalkText = re.sub('\|\n? *?[Aa]ccuratezza= *?\n', '|accuratezza=d\n', talkText)
if talkText != newTalkText: print e # Print the error and skip
wikipedia.showDiff(talkText, newTalkText)continue
newTalkText = re.sub('\|\n? *?[Aa]ccuratezza ?= *?c\n', '|accuratezza= d\n', talkText)
if not always:
if talkText != newTalkText:
choice = wikipedia.inputChoice(u"Apply the changes?", ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N')
else:wikipedia.showDiff(talkText, newTalkText)
if not choice = 'y'always:
if choice in= wikipedia.inputChoice(u"Apply the changes?", ['AYes', 'No', 'All'], ['y', 'N', 'a']:, 'N')
always = Trueelse:
choice = 'y'
if choice in ['YA', 'ya']:
try:always = True
choice = page.put(newTalkText, u'[[WP:BOT|Bot]]: Voce da aiutare: completezza "d"y')
if choice in except wikipedia.Error['Y', e'y']:
print e # Print the error and skiptry:
continuepage.put(newTalkText, u'[[WP:BOT|Bot]]: Voce da aiutare: completezza "d"')
if match == None except wikipedia.Error, e:
print e # Print the error and skip
wikipedia.output(">>>>> %s <<<<<" % associatedPage.title())
try: continue
if match talkText == page.get()None:
except wikipedia.Error,output(">>>>> e:%s <<<<<" % associatedPage.title())
print e # Print the error and skiptry:
continuetalkText = page.get()
except wikipedia.showDiff(talkTextError, newTalkText)e:
newTalkText = re.sub('\|\n? *?[Aa]ccuratezza= ?d\n', '|accuratezza= \n', talkText)
if talkText != newTalkText: print e # Print the error and skip
wikipedia.showDiff(talkText, newTalkText)continue
newTalkText = re.sub('\|\n? *?[Aa]ccuratezza ?= *?[cd]\n', '|accuratezza=d \n', talkText)
if not always:
if talkText != page.get()newTalkText:
choice = wikipedia.inputChoice(u"Apply the changes?", ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N')
else:wikipedia.showDiff(talkText, newTalkText)
if not choice = 'y'always:
if choice in= wikipedia.inputChoice(u"Apply the changes?", ['AYes', 'No', 'All'], ['y', 'N', 'a']:, 'N')
always = True else:
choice = 'y'
if choice in ['YA', 'ya']:
try:always = True
choice = page.put(newTalkText, u'[[WP:BOT|Bot]]: Voce non da aiutare: rimuovo completezza "d"y')
if choice in except wikipedia.Error['Y', e'y']:
print e # Print the error and skiptry:
continuepage.put(newTalkText, u'[[WP:BOT|Bot]]: Voce non da aiutare o stub: rimuovo completezza')
except wikipedia.Error, e:
print e # Print the error and skip
continue
match = re.search('(\{\{[Dd]a correggere)', pageText, re.IGNORECASE)
if match is not None:
Line 353 ⟶ 332:
print e # Print the error and skip
continue
newTalkText = re.sub('\|\n? *?[Ss]crittura ?= *?\n', '|scrittura=d\n', talkText)
if talkText != newTalkText:
wikipedia.showDiff(talkText, newTalkText)