Template:UploadWizardPrefill/doc
Usage
editIt is possible to provide to the Upload Wizard query parameters in the URL to set default values for some of the upload fields
{{UploadWizardPrefill/CreateUploadButton
|captionlang=
|caption=
|descriptionlang=
|description=
|category1=
|category2=
|category3=
|category4=
|category5=
|category6=
|category7=
|category8=
|category9=
|category10=
|lat=
|lon=
|alt=
|campaign=
|field1=
|field2=
|field3=
|id=
}}
Parameters
editThe fields that can be passed to the Upload Wizard are:
- caption
- The caption to be used for the image (caption is a term of Structured Data)
- captionlang
- To use a different caption language than the default one; uses a 2 or 3 letters language code, e.g.
en
for English orfur
for Friulian. - description
- The description to be used for the image
- descriptionlang
- See captionlang above
- category[n]
- List of categories, separated with pipes «
category1|category2
» - lat
- Latitude of the image (interpreted as camera location, not object location). For object location, see Template:Campaign object location/wrapper using "fields"
- lon
- Longitude of the image (interpreted as camera location, not object location). For object location, see Template:Campaign object location/wrapper using "fields"
- alt
- Altitude of the image
- campaign
- The name of the Upload Campaign
- fields[n]
- Passing parameters to the upload campaign
- id
- Deprecated id field. This is for upload campaigns where it is possible to pass an id
Fields prefilling wizard
editClick this button to set the fields to be prefilled and start the UploadWizard:
Examples of URLs
edit- //commons.wikimedia.org/w/index.php?title=Special:UploadWizard&descriptionlang=en&description=A+beautiful+sunset&categories=Sunsets+of+France|Red+sunsets&lat=3.14&lon=2.718&alt=42.42
- //commons.wikimedia.org/w/index.php?title=Special:UploadWizard&campaign=wlm-fr&id=PA00107583&descriptionlang=fr&description=Enseigne+en+pierre+sculpt%C3%A9e+repr%C3%A9sentant+un+catoire+ou+ruche+d%27or%2C+207+rue+de+Paris+%28Inscrit%2C+1944%29&lat=50.63101458&lon=3.0683934
See also
edit- {{UploadWizardLink}}, to build such a link
- Commons:Wiki Loves Monuments 2012/Upload campaign link — makes use of this feature