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/ApiBlockRestrictions.md.
  • 中文
  • Interface: ApiBlockRestrictions

    Defined in: core/query/blocks.ts:11

    Restriction targets of a partial block, grouped by kind.

    Properties

    actions?

    optional actions?: string[]

    Defined in: core/query/blocks.ts:28

    Restricted actions; only on action-type entries. Before MediaWiki 1.45 these require $wgEnablePartialActionBlocks.


    namespaces?

    optional namespaces?: number[]

    Defined in: core/query/blocks.ts:25

    Restricted namespace ids.


    pages?

    optional pages?: object[]

    Defined in: core/query/blocks.ts:13

    Restricted pages.

    id

    id: number

    Page id.

    ns?

    optional ns?: number

    Namespace index of the restricted page.

    title?

    optional title?: string

    Full title of the restricted page.