Interface: ApiUploadDialog
Defined in: core/query/siteinfo.ts:717
Upload dialog configuration (siprop=uploaddialog), mirroring
$wgUploadDialog verbatim.
Properties
comment?
optionalcomment?:string| {foreign?:string;local?:string; }
Defined in: core/query/siteinfo.ts:743
Default edit summaries, per upload target (local/foreign), or a single
string on wikis that configure one. $PAGENAME and $HOST are substituted.
Union Members
string
Type Literal
{ foreign?: string; local?: string; }
foreign?
optionalforeign?:string
Used when the target is a foreign repo.
local?
optionallocal?:string
Used when the target is this wiki.
fields?
optionalfields?:object
Defined in: core/query/siteinfo.ts:719
Which extra form fields are shown. Keys are absent when not applicable.
categories?
optionalcategories?:boolean
The categories field.
date?
optionaldate?:boolean
The date field.
description?
optionaldescription?:boolean
The free-form description field.
format?
optionalformat?:object
Defined in: core/query/siteinfo.ts:754
Templates/placeholder text used to build the file page.
description?
optionaldescription?:string
Template for one description, with $LANGUAGE and $TEXT substituted.
filepage?
optionalfilepage?:string
File page wikitext, with $DESCRIPTION, $DATE, $SOURCE, $AUTHOR, $LICENSE and $CATEGORIES substituted.
license?
optionallicense?:string
Wikitext for the chosen license.
ownwork?
optionalownwork?:string
Source wikitext used when the uploader declares the work as their own.
uncategorized?
optionaluncategorized?:string
Wikitext used instead of category links when no categories are given.
licensemessages?
optionallicensemessages?:object
Defined in: core/query/siteinfo.ts:731
Message keys for the license selectors, per upload target.
foreign?
optionalforeign?:string
Used when the target is a foreign repo.
local?
optionallocal?:string
Used when the target is this wiki.