User:YuviPanda/UploadWizard campaigns docs

Concept
The UploadWizard can be configured to behave in a number of ways using various settings. Often one wants the UW on a single wiki to behave differently for different tasks, in which case more than one set of configuration is needed. The UW allows defining such sets of configuration, also called campaigns, which can then be put into affect by specifying a single argument in the url via which the UW is accessed.

Using a campaign
When navigating to Special:UploadWizard, no campaign will be used, so you will get the default configuration. To get the configuration for a campaign, add ?campaign=name to the url, where "name" is the name of the campaign.

Campaign administration
Campaign configuration is stored as JSON in the Campaign namespace. You can create a new campaign by simply creating a new page in that namespace, and placing the appropriate fields in it.

enabled
This is a boolean variable that specifies if the campaign is enabled or not. This is a required field, and must always be present.

display
This field lets you control what banners to display in UploadWizard

headerLabel
Specifies wikitext to be parsed and displayed above the UploadWizard interface.

thanksLabel
Specifies wikitext to be parsed and displayed when the user has finished uploading.

tutorial
This field lets you control the tutorial that is shown before the first step of Uploading.

skip
A boolean field specifying if the tutorial should be skipped or not. Set this to true if you do not want to show a tutorial. It is false by default.

template
The name of the tutorial file on the local wiki or on commons. Language can be specified via $1.

width
Width of the tutorial image.

defaults
Lets you control the default information to be added for the media uploaded. Note that the user can modify them at will before uploading.

It has the following fields:
 * - List of categories
 * - Default description
 * - Default latitude
 * - Default longitude

autoAdd
Specifies wikitext and categories to be added automatically, without user intervention. The user cannot remove or modify these.

It has the following fields:
 * - List of categories
 * - Wikitext to be added by default