aboutsummaryrefslogtreecommitdiff
path: root/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua')
-rwxr-xr-xmediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua b/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua
index f2745e4..3ea7f48 100755
--- a/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua
+++ b/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua
@@ -92,6 +92,10 @@ MediaWikiExportServiceProvider.processRenderedPhotos = function(functionContext,
local author = exportSettings.info_author
local license = exportSettings.info_license
local templates = exportSettings.info_templates
+ local additionalTemplates = photo:getPropertyForPlugin(Info.LrToolkitIdentifier, 'templates') or ''
+ if not MediaWikiUtils.isStringEmpty(additionalTemplates) then
+ templates = templates .. '\n' .. additionalTemplates
+ end
local other = exportSettings.info_other
local categories = exportSettings.info_categories
local additionalCategories = photo:getPropertyForPlugin(Info.LrToolkitIdentifier, 'categories') or ''
@@ -292,4 +296,4 @@ MediaWikiExportServiceProvider.exportPresetFields = {
{ key = 'info_categories', default = '' },
}
-return MediaWikiExportServiceProvider \ No newline at end of file
+return MediaWikiExportServiceProvider