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

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

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

action=visualeditoredit

(main | visualeditoredit)
  • This module is internal or unstable. Its operation may change without notice.
  • این پودمان نیازمند اختیارات خواندن است.
  • این پودمان نیازمند اختیارات خواندن است.
  • این پودمان تنها درخواست‌های POST را می‌پذیرد.
  • منبع: VisualEditor
  • مجوز: MIT

ذخیره صفحه HTML5 به مدیاویکی (تبدیل به متن ویکی با سرویس پارسوید)

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

عمل برای انجام‌دادن.

این پارامتر الزامی است.
یکی از مقدارهای زیر: diff، save، serialize، serializeforcache
page

صفحه برای انجام‌دادن عمل‌ها بر روی آن.

این پارامتر الزامی است.
token

یک بلیط «csrf» واکشی‌شده از action=query&meta=tokens

این پارامتر الزامی است.
wikitext

برای کار با ویکی‌متن.

section

بخشی که برای انجام‌دادن است.

sectiontitle

عنوان برای بخش جدید.

basetimestamp

در زمان ذخیره کردن، این را برای زمان نسخهٔ ویرایش تنظیم کنید. برای تشخیص تعارض ویرایش کاربرد دارد.

نوع: برچسب زمان (قالب‌های مجاز)
starttimestamp

در زمان ذخیره کردن، این را برای زمان بارگیری نسخه تنظیم کنید. برای تشخیص تعارض ویرایش کاربرد دارد.

نوع: برچسب زمان (قالب‌های مجاز)
oldid

شماره نسخه استفاده شود. پيش فرض بر آخرين نسخه است. صفحات تازه ٠ است

نوع: عدد صحیح
minor

علامت به‌عنوان ویرایش جزئی.

watchlist

افزودن یا حذف بدون قید و شرط صفحه از فهرست پیگیری‌های کاربر کنونی، پیروی از ترجیحات (برای کاربران ربات نادیده گرفته می‌شود) یا عدم تغییر وضعیت پیگیری.

html

HTML برای ارسال به پارسوید برای تبدیل به متن ویکی.

etag

ای‌تگ برای ارسال.

summary

خلاصهٔ ویرایش.

captchaid

ID تصویر امنیتی (زمان ذخیره با پاسخ یک تصویر امنیتی)

captchaword

پاسخ به تصویر امنیتی (زمان ذخیره با یک پاسخ تصویر امنیتی)

cachekey

از نتیجه درخواست تفاوت پیشین به کمک این کلید استفاده کنید. بازنویسی html.

nocontent

Omit the HTML content of the new revision in the response.

نوع: بولی (جزئیات)
returnto

Page title. If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to the given page, instead of the page that was edited.

نوع: عنوان صفحه
صفحه‌های ناموجود را می‌پذیرد
returntoquery

URL query parameters (with leading ?). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given query parameters.

پیش‌فرض: (خالی)
returntoanchor

URL fragment (with leading #). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given fragment.

پیش‌فرض: (خالی)
useskin

Apply the selected skin to the parser output. May affect the following properties: text, langlinks, headitems, modules, jsconfigvars, indicators.

یکی از مقدارهای زیر: apioutput، fallback، minerva، monobook، timeless، vector، vector-2022
tags

برچسب‌های تغییر برای افزودن به ویرایش.

Separate values with | or alternative.
حداکثر تعداد مقدارها ۵۰ است (۵۰۰ برای متقضایانی که مجوز محدودیت‌های بالاتر را دارند).
plugins

Plugins associated with the API request.

Separate values with | or alternative.
حداکثر تعداد مقدارها ۵۰ است (۵۰۰ برای متقضایانی که مجوز محدودیت‌های بالاتر را دارند).
data-{plugin}

Arbitrary data sent by a plugin with the API request.

این یک پارامتر قالب‌بندی‌شده است. هنگام درخواست، {plugin} در نام پارامتر باید با مقدارهای plugins جایگزین شود.
mobileformat

Return parse output in a format suitable for mobile devices.

نوع: بولی (جزئیات)