Extension:BlueSpiceMultiUpload
![]() Release status: stableCategory:Stable extensions |
|
---|---|
Implementation | other (invalid type)Category:Extensions with invalid or missing type |
Description | Provides batch uploading of files |
Author(s) | |
Latest version | 4.2.0-alpha |
MediaWiki | 1.27+Category:Extensions with manual MediaWiki version |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | Category:Extensions in Wikimedia version control README |
|
|
Quarterly downloads | 4 (Ranked 92nd) |
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
- 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
<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
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
A simple "File attachments" section can be composed using Semantic MediaWiki , Extension:Variables and some MediaWiki templates
Template:Attachments
<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
<includeonly>{{#vardefine:prefixedtitle|{{#replace:{{{1}}}| |_}}}}
* [[Media:{{PAGENAME:{{{1}}}}}|{{#replace:{{#var:prefixedtitle}}|File:{{#var:prefix}}|}}]] ([[:{{{1}}}|Description]])</includeonly>
Concrete wiki page
Some page text ...
{{Attachments}}
Category:BlueSpice#MultiUpload
Category:All extensions
Category:BeforePageDisplay extensions
Category:BlueSpice
Category:Extensions in Wikimedia version control
Category:Extensions with invalid or missing type
Category:Extensions with manual MediaWiki version
Category:Extensions without a compatibility policy
Category:Extensions without an image
Category:GPL licensed extensions
Category:Stable extensions