Index: trunk/tools/fancy-uploader/fancy-uploader.py |
— | — | @@ -50,7 +50,7 @@ |
51 | 51 | |
52 | 52 | def convert_dict_to_wikitext(self, template, dict): |
53 | 53 | # TODO curly brace escaping |
54 | | - return '{{%s|%s}}' % (template, '|'.join('%s=%s' for i in dict.iteritems())) |
| 54 | + return '{{subst:%s|%s|subst=subst:}}' % (template, '|'.join('%s=%s' for i in dict.iteritems())) |
55 | 55 | |
56 | 56 | def upload(self, username, password, file, filename, wikitext): |
57 | 57 | site = mwclient.Site('commons.wikimedia.org') |