diff options
author | Robin Krahl <me@robin-krahl.de> | 2014-08-31 12:55:51 +0200 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2014-08-31 12:55:51 +0200 |
commit | bc05340c84213b2771c012ff42ed2ff5d00974af (patch) | |
tree | 518b4a8efebbca7e0f1fdfb80eefd33d50c6c12f /mediawiki.lrdevplugin/MediaWikiInterface.lua | |
parent | 66e62f684ae128955ae2d6fb109bae48006b483b (diff) | |
download | LrMediaWiki-bc05340c84213b2771c012ff42ed2ff5d00974af.tar.gz LrMediaWiki-bc05340c84213b2771c012ff42ed2ff5d00974af.tar.bz2 |
Fix #11: Add ‘other templates’ field
Diffstat (limited to 'mediawiki.lrdevplugin/MediaWikiInterface.lua')
-rwxr-xr-x | mediawiki.lrdevplugin/MediaWikiInterface.lua | 5 |
1 files changed, 3 insertions, 2 deletions
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 |