Extension:BlueSpiceMultiUpload

MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
BlueSpiceMultiUpload
Release status: stable
Implementation other (invalid type)
Description Provides batch uploading of files
Author(s) (Osnardtalk)
Latest version 4.2.0-alpha
MediaWiki 1.27+
Database changes No
Composer bluespice/multiupload
License GNU General Public License 2.0 or later
Download
README
  • $wgMultiUploadIntegrateWithUploadLink
Quarterly downloads 1 (Ranked 167th)
Translate the BlueSpiceMultiUpload extension if it is available at translatewiki.net

The BlueSpiceMultiUpload extension provides batch uploading of files:

InstallationEdit

  • Download and place the file(s) in a directory called BlueSpiceMultiUpload in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php :
    wfLoadExtension( 'BlueSpiceMultiUpload' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

TagsEdit

<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 attributesEdit

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 attachmentsEdit

A simple "File attachments" section can be composed using Semantic MediaWiki , Extension:Variables and some MediaWiki templates

Template:AttachmentsEdit

<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/RowEdit

<includeonly>{{#vardefine:prefixedtitle|{{#replace:{{{1}}}| |_}}}}
* [[Media:{{PAGENAME:{{{1}}}}}|{{#replace:{{#var:prefixedtitle}}|File:{{#var:prefix}}|}}]] ([[:{{{1}}}|Description]])</includeonly>

Concrete wiki pageEdit

Some page text ...
{{Attachments}}