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 | Download extension Git [?]: README |
|
Parameters
|
|
|
Hooks used
|
|
| Quarterly downloads | 5 (Ranked 165th) |
| 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 place the file(s) in a directory called
BlueSpiceMultiUploadin yourextensions/folder. - 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}}
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.