Progetto:Bot/Programmi in Python per i bot/ListeTestiSAL.py: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
IPork (discussione | contributi)
mNessun oggetto della modifica
IPork (discussione | contributi)
mNessun oggetto della modifica
Riga 1 032:
wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), self.table_msg) % (totale1, totale2, totale3, totale4, totale5, totaleTotale))
 
listString = "{|{{prettytable|width=|align=|text-align=}}\n| colspan=\"6\"|'''<big>Statistiche</big>'''<br/><div style=\"float:right; margin-top:-19px;\"><small>[[Aiuto:Elenchi generati da bot|aggiornate il {{Data ultima revisione|" + self.listPage.title() + "}}]]</small></div>\n|-\n| width=\"100\" align=\"center\" style=\"background:#efefef;\" | [[Immagine:25%%.svg|12px]] '''SAL 25%%'''\n| width=\"100\" align=\"center\" style=\"background:#efefef;\" | [[Immagine:50%%.svg|12px]] '''SAL 50%%'''\n| width=\"100\" align=\"center\" style=\"background:#efefef;\" | [[Immagine:75%%.svg|12px]] '''SAL 75%%'''\n| width=\"100\" align=\"center\" style=\"background:#efefef;\" | [[Immagine:100%%.svg|12px]] '''SAL 100%%''' \n| width=\"100\" align=\"center\" style=\"background:#efefef;\" | [[Immagine:101%%.png|12px]] '''Ed. WS'''\n| width=\"100\" align=\"center\" style=\"background:#efefef;\" | '''Totale'''\n|- style=\"text-align: center;\"\n| %d || %d || %d || %d || %d || %d \n|}<noinclude>[[Categoria:Tabelle statistiche dei testi per SAL| ]]</noinclude>" % (totale1, totale2, totale3, totale4, totale5, totaleTotale)
if self.listPage.exists() and not self.overwrite:
wikipedia.output(u'Page %s already exists, aborting.' % self.listPage.title())