From bc05340c84213b2771c012ff42ed2ff5d00974af Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sun, 31 Aug 2014 12:55:51 +0200 Subject: =?UTF-8?q?Fix=20#11:=20Add=20=E2=80=98other=20templates=E2=80=99?= =?UTF-8?q?=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mediawiki.lrdevplugin/MediaWikiInterface.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mediawiki.lrdevplugin/MediaWikiInterface.lua') diff --git a/mediawiki.lrdevplugin/MediaWikiInterface.lua b/mediawiki.lrdevplugin/MediaWikiInterface.lua index 5201b2d..715243c 100755 --- a/mediawiki.lrdevplugin/MediaWikiInterface.lua +++ b/mediawiki.lrdevplugin/MediaWikiInterface.lua @@ -37,6 +37,7 @@ local MediaWikiInterface = { |other_versions= |other_fields=%s }} +%s == {{int:license-header}} == %s %s[[Category:Uploaded with LrMediaWiki]]]=], @@ -121,7 +122,7 @@ MediaWikiInterface.uploadFile = function(filePath, description, fileName) end end -MediaWikiInterface.buildFileDescription = function(description, source, timestamp, author, license, other, categories, additionalCategories) +MediaWikiInterface.buildFileDescription = function(description, source, timestamp, author, license, templates, other, categories, additionalCategories) local categoriesString = '' for category in string.gmatch(categories, '[^;]+') do if category then @@ -133,7 +134,7 @@ MediaWikiInterface.buildFileDescription = function(description, source, timestam categoriesString = categoriesString .. string.format('[[Category:%s]]\n', category) end end - return string.format(MediaWikiInterface.fileDescriptionPattern, description, source, timestamp, author, other, license, categoriesString) + return string.format(MediaWikiInterface.fileDescriptionPattern, description, source, timestamp, author, other, templates, license, categoriesString) end return MediaWikiInterface \ No newline at end of file -- cgit v1.2.1