diff options
author | Robin Krahl <me@robin-krahl.de> | 2014-11-01 16:02:31 +0100 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2014-11-01 16:02:31 +0100 |
commit | 6f251c2526004faa55e4bcb9935aad38bfed7a48 (patch) | |
tree | 9e774fe95a9ba02aa85af595e199203249bcf1e9 /mediawiki.lrdevplugin/description.txt | |
parent | 0d2d08472aa09dd001b532698e04b0f02e0a44c6 (diff) | |
download | LrMediaWiki-6f251c2526004faa55e4bcb9935aad38bfed7a48.tar.gz LrMediaWiki-6f251c2526004faa55e4bcb9935aad38bfed7a48.tar.bz2 |
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
Diffstat (limited to 'mediawiki.lrdevplugin/description.txt')
-rw-r--r-- | mediawiki.lrdevplugin/description.txt | 14 |
1 files changed, 14 insertions, 0 deletions
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 |