http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9414
Revision: 9414 Author: multichill Date: 2011-07-17 13:28:25 +0000 (Sun, 17 Jul 2011) Log Message: ----------- Add lb Wikipedia for MGA73
Modified Paths: -------------- trunk/pywikipedia/imagecopy_self.py
Modified: trunk/pywikipedia/imagecopy_self.py =================================================================== --- trunk/pywikipedia/imagecopy_self.py 2011-07-17 12:29:50 UTC (rev 9413) +++ trunk/pywikipedia/imagecopy_self.py 2011-07-17 13:28:25 UTC (rev 9414) @@ -71,14 +71,16 @@ NL=''
nowCommonsTemplate = { - 'de': u'{{NowCommons|%s}}', - 'en': u'{{NowCommons|1=File:%s|date=~~~~~|reviewer={{subst:REVISIONUSER}}}}', - 'nds-nl': u'{{NoenCommons|1=File:%s}}', + 'de' : u'{{NowCommons|%s}}', + 'en' : u'{{NowCommons|1=File:%s|date=~~~~~|reviewer={{subst:REVISIONUSER}}}}', + 'lb' : u'{{Elo op Commons|%s}}', + 'nds-nl' : u'{{NoenCommons|1=File:%s}}', }
moveToCommonsTemplate = { 'de' : [u'NowCommons', u'NC', u'NCT', u'Nowcommons'], 'en' : [u'Commons ok', u'Copy to Wikimedia Commons', u'Move to commons', u'Movetocommons', u'To commons', u'Copy to Wikimedia Commons by BotMultichill'], + 'lb' : [u'Move to commons'], 'nds-nl' : [u'Noar Commons', u'VNC'], }
@@ -125,12 +127,14 @@ u'PD-user', # Only the self templates are supported for now. u'Ticket Scan', ], - 'nds-nl': [u'Allinnig Wikipedie', - u'Bepark', - u'Gienidee', - u'NoenCommons', - u'NowCommons', - ], + 'lb' : [u'Läschen', + ], + 'nds-nl' : [u'Allinnig Wikipedie', + u'Bepark', + u'Gienidee', + u'NoenCommons', + u'NowCommons', + ], }
@@ -151,8 +155,10 @@ (u'{{Multilicense replacing placeholder(|[^}|=]+=[^}|]+)*(?P<migration>|[^}|=]+=[^}|]+)(|[^}|=]+=[^}|]+)*}}', u'{{Self|GFDL|Cc-by-sa-2.5,2.0,1.0\g<migration>|author=[[:%(lang)s:User:%(author)s|%(author)s]] at [http://%(lang)s.%(family)s.org %(lang)s.%(family)s]}}'), (u'{{Multilicense replacing placeholder new(|class=[^}]+)?}}', u'{{Self|GFDL|Cc-by-sa-3.0,2.5,2.0,1.0|author=[[:%(lang)s:User:%(author)s|%(author)s]] at [http://%(lang)s.%(family)s.org %(lang)s.%(family)s]}}'), ], - 'nds-nl': [(u'{{PD-eigenwark}}', u'{{PD-user-w|%(lang)s|%(family)s|%(author)s}}'), - ], + 'lb' : [(u'{{(self|self2)|([^}]+)}}', u'{{Self|\2|author=[[:%(lang)s:User:%(author)s|%(author)s]] at [http://%(lang)s.%(family)s.org %(lang)s.%(family)s]}}'), + ], + 'nds-nl' : [(u'{{PD-eigenwark}}', u'{{PD-user-w|%(lang)s|%(family)s|%(author)s}}'), + ], }
sourceGarbage = { @@ -165,7 +171,10 @@ u'==\s*Licensing:?\s*==', u'{{(Copy to Wikimedia Commons|Move to Commons|Move to commons|Move to Wikimedia Commons|Copy to commons|Mtc|MtC|MTC|CWC|CtWC|CTWC|Ctwc|Tocommons|Copy to Commons|To Commons|Movetocommons|Move to Wikimedia commons|Move-to-commons|Commons ok|ToCommons|To commons|MoveToCommons|Copy to wikimedia commons|Upload to commons|CopyToCommons|Copytocommons|MITC|MovetoCommons|Do move to Commons)}}' ], - 'nds-nl': [ + 'lb' : [u'==\s*Résumé\s*==', + u'==\s*Lizenz:\s*==', + ], + 'nds-nl' : [ u'==\s*Licentie\s*==', u'{{DEFAULTSORT:{{PAGENAME}}}}', ],
pywikipedia-svn@lists.wikimedia.org