r80256 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80255‎ | r80256 | r80257 >
Date:12:29, 14 January 2011
Author:multichill
Status:deferred
Tags:
Comment:
Subst
Modified paths:
  • /trunk/tools/fancy-uploader/fancy-uploader.py (modified) (history)

Diff [purge]

Index: trunk/tools/fancy-uploader/fancy-uploader.py
@@ -50,7 +50,7 @@
5151
5252 def convert_dict_to_wikitext(self, template, dict):
5353 # 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()))
5555
5656 def upload(self, username, password, file, filename, wikitext):
5757 site = mwclient.Site('commons.wikimedia.org')

Status & tagging log