راهنمای واسط برنامه‌نویسی کاربردی مدیاویکی

این یک صفحهٔ مستندات برای واسط برنامه‌نویسی کاربردی مدیاویکی است که به‌طور خودکار ایجاد شده است.

مستندات و نمونه‌ها: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

command=createentry

(main | readinglists | createentry)
  • This module is internal or unstable, and you should not use it. Its operation may change without notice.
  • این پودمان نیازمند اختیارات خواندن است.
  • این پودمان نیازمند اختیارات خواندن است.
  • این پودمان تنها درخواست‌های POST را می‌پذیرد.
  • منبع: ReadingLists
  • مجوز: GPL-2.0-or-later

Add a new page to a list belonging to the current user.

List entries must be unique. Pages are not limited to the wiki where the API is accessed. The user must have fewer than 5000 (non-deleted) entries in the list.

پارامترها:
Other general parameters are available.
list

شناسه فهرست.

این پارامتر الزامی است.
نوع: عدد صحیح
project

Project name of the wiki hosting the page. (Typically this is the domain name of the wiki.) Required unless doing batch creation.

نباید بیشتر از ۲۵۵ بایت باشد.
title

Page title (including the localized namespace name). Required unless doing batch creation. Human-readable format (spaces not underscores) is recommended. The API treats titles as raw strings; normalization (such as title casing) is left to the clients.

نباید بیشتر از ۳۸۳ بایت باشد.
batch

Batch data for creating multiple list entries (in the same list) in a single request, in the form of a JSON array with one or more objects with project and title fields.