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

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

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

action=discussiontoolsedit

(main | discussiontoolsedit)
  • این پودمان نیازمند اختیارات خواندن است.
  • این پودمان نیازمند اختیارات خواندن است.
  • این پودمان تنها درخواست‌های POST را می‌پذیرد.
  • منبع: Discussion tools
  • مجوز: MIT

فرستادن یک نظر در یک صفحهٔ بحث.

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

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

addcomment
افزودن یک نظر تازه به‌عنوان پاسخی به یک نظر از پیش موجود.
addtopic
افزودن یک بخش گفتگوی تازه و نخستین نظر در آن.
این پارامتر الزامی است.
یکی از مقدارهای زیر: addcomment، addtopic
autosubscribe

کاربر به صورت خودکار در موضوع صفحه بحث مشترک شود؟

یکی از مقدارهای زیر: default، no، yes
پیش‌فرض: default
page

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

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

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

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

An optional unique ID generated in the client to prevent double-posting.

Cannot be longer than ۱۶ characters.
commentname

نام پیام برای پاسخ دادن. تنها در صورت paction روی addcomment تنظیم شده باشد استفاده می‌شود.

commentid

شناسه نظر برای پاسخ دادن. تنها در صورتی که paction روی addcomment تنظیم شده باشد استفاده می‌شود. commentname را نادیده می‌گیرد.

wikitext

محتوا برای ارسال، در قالب ویکی‌متن. همزمان همراه با html قابل استفاده نیست.

html

محتوا برای ارسال، در قالب اچ‌تی‌ام‌ال. همزمان همراه با wikitext قابل استفاده نیست.

summary

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

sectiontitle

عنوان برای بخش جدید. تنها در صورتی که paction روی addtopic تنظیم شده باشد استفاده می‌شود.

allownosectiontitle

Allow posting a new section without a title.

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

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

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

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

captchaid

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

captchaword

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

nocontent

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

tags

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

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

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

Return parse output in a format suitable for mobile devices.

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