From 6f251c2526004faa55e4bcb9935aad38bfed7a48 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sat, 1 Nov 2014 16:02:31 +0100 Subject: Move file description template into a separate file Move the file description template from the constant `MediaWikiInterface.fileDescriptionPattern` to the file `description.txt` in the main directory of the plug-in. This allows better customization of the file description. - add `MediaWikiInterface.loadFileDescriptionTemplate` that tries to read the file description template from the `description.txt` file - call `MediaWikiInterface.loadFileDescriptionTemplate` before the description preview and before the export Fix https://github.com/ireas/LrMediaWiki/issues/29 --- mediawiki.lrdevplugin/description.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 mediawiki.lrdevplugin/description.txt (limited to 'mediawiki.lrdevplugin/description.txt') diff --git a/mediawiki.lrdevplugin/description.txt b/mediawiki.lrdevplugin/description.txt new file mode 100644 index 0000000..69818f0 --- /dev/null +++ b/mediawiki.lrdevplugin/description.txt @@ -0,0 +1,14 @@ +== {{int:filedesc}} == +{{Information +|Description=${description} +|Source=${source} +|Date=${timestamp} +|Author=${author} +|Permission= +|other_versions= +|other_fields=${other_fields} +}} +${templates} +== {{int:license-header}} == +${license} +${categories}[[Category:Uploaded with LrMediaWiki]] \ No newline at end of file -- cgit v1.2.1