For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/zh/api/core/ApiUploadDialog.md.
  • 中文
  • Interface: ApiUploadDialog

    Defined in: core/query/siteinfo.ts:717

    Upload dialog configuration (siprop=uploaddialog), mirroring $wgUploadDialog verbatim.

    Properties

    comment?

    optional comment?: 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?

    optional foreign?: string

    Used when the target is a foreign repo.

    local?

    optional local?: string

    Used when the target is this wiki.


    fields?

    optional fields?: object

    Defined in: core/query/siteinfo.ts:719

    Which extra form fields are shown. Keys are absent when not applicable.

    categories?

    optional categories?: boolean

    The categories field.

    date?

    optional date?: boolean

    The date field.

    description?

    optional description?: boolean

    The free-form description field.


    format?

    optional format?: object

    Defined in: core/query/siteinfo.ts:754

    Templates/placeholder text used to build the file page.

    description?

    optional description?: string

    Template for one description, with $LANGUAGE and $TEXT substituted.

    filepage?

    optional filepage?: string

    File page wikitext, with $DESCRIPTION, $DATE, $SOURCE, $AUTHOR, $LICENSE and $CATEGORIES substituted.

    license?

    optional license?: string

    Wikitext for the chosen license.

    ownwork?

    optional ownwork?: string

    Source wikitext used when the uploader declares the work as their own.

    uncategorized?

    optional uncategorized?: string

    Wikitext used instead of category links when no categories are given.


    licensemessages?

    optional licensemessages?: object

    Defined in: core/query/siteinfo.ts:731

    Message keys for the license selectors, per upload target.

    foreign?

    optional foreign?: string

    Used when the target is a foreign repo.

    local?

    optional local?: string

    Used when the target is this wiki.