Extension:BlueSpiceMultiUpload
Appearance
BlueSpiceMultiUpload Release status: stable |
|
---|---|
Implementation | other (invalid type) |
Description | Provides batch uploading of files |
Author(s) | |
Latest version | 4.2.0-alpha |
MediaWiki | 1.27+ |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | README |
|
|
Quarterly downloads | 2 (Ranked 132nd) |
Translate the BlueSpiceMultiUpload extension if it is available at translatewiki.net | |
The BlueSpiceMultiUpload extension provides batch uploading of files:
- Overrides toolbox link to Special:Upload
- Integrates into Extension:BlueSpiceExtendedFilelist
- Integrates into Extension:InsertFile
- Provides tags
<multiuploadbutton />
and<multiuploaddropzone />
Installation
[edit]- Download and move the extracted
BlueSpiceMultiUpload
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/BlueSpiceMultiUpload - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'BlueSpiceMultiUpload' );
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Tags
[edit]<multiuploadbutton />
: Displays a button that allows opening of the upload dialog within a wiki page.
<multiuploaddropzone />
: Displays a drop-zone that allows opening of the upload dialog within a wiki page.
Common attributes
[edit]Both tags share the same attributes:
defaultfilenameprefix
- A prefix that is added automatically to the uploaded file
defaultcategories
- A list of category names to be set as default. Can be changed by the user in the upload dialog. Separator is
|
. defaultdescription
- A default description text to be set as default. Can be changed by the user in the upload dialog.
defaultlicence
- A default selection for the licence to be set as default. Can be changed by the user in the upload dialog.
implicitfilenameprefix
- A prefix that is always added to the filename.
implicitcategories
- A list of categories that are always added.
implicitdescription
- A description text that is always added to the file page.
label
- The text on the button/dropzone
reloadpage
- If set to
true
, the page will be automatically be reloaded after upload. This comes in handy if you want to combine the button/dropzone with an automatic list class
- A CSS class to be added to the button/dropzone. This way the appearance can be easily changed e.g. in MediaWiki:Common.css
Example: Page file attachments
[edit]A simple "File attachments" section can be composed using Semantic MediaWiki , Extension:Variables and some MediaWiki templates
Template:Attachments
[edit]<noinclude> <nowiki>{{Attachments}}</nowiki> </noinclude><includeonly> {{#vardefine:prefix|{{#replace:{{NAMESPACE}}_{{PAGENAME}}_|/|_}}}} ==Attachments== <multiuploadbutton defaultFileNamePrefix={{#var:prefix}} reloadpage=true /> {{#ask:[[File:+]][[~{{#var:prefix}}*]] |format=template |template=Attachments/Row |link=none }} <multiuploaddropzone defaultFileNamePrefix={{#var:prefix}} reloadpage=true /> </includeonly>
Template:Attachments/Row
[edit]<includeonly>{{#vardefine:prefixedtitle|{{#replace:{{{1}}}| |_}}}} * [[Media:{{PAGENAME:{{{1}}}}}|{{#replace:{{#var:prefixedtitle}}|File:{{#var:prefix}}|}}]] ([[:{{{1}}}|Description]])</includeonly>
Concrete wiki page
[edit]Some page text ... {{Attachments}}