MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

action=edit

(main | edit)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: MediaWiki
  • License: GPL-2.0+

إنشاء وتعديل الصفحات.

Parameters:
title

عنوان الصفحة للحذف. لا يمكن أن يُستخدَم جنبا إلى جنب مع pageid</var

pageid

معرف الصفحة لتحريرها. لا يمكن أن يُستخدَم جنبا إلى جنب مع pageid</var

Type: integer
section

رقم القسم. 0 للقسم العلوي، new لقسم جديد.

sectiontitle

عنوان لقسم جديد.

text

محتوى الصفحة

summary

ملخص التعديل. أيضا عنوان القسم عند عدم تعيين section=new and sectiontitle.

tags

عدل الوسوم لتطبيق المراجعة.

Values (separate with | or alternative):
minor

تعديل طفيف

Type: boolean (details)
notminor

تعديل غير طفيف.

Type: boolean (details)
bot

علم على هذا التعديل كتعديل بوت.

Type: boolean (details)
basetimestamp

الطابع الزمني للمراجعة الأساسية، ويُستخدَم للكشف عن الحروب التحريرية، ويمكن الحصول عليها من خلال action=query&prop=revisions&rvprop=timestamp.

Type: timestamp (allowed formats)
starttimestamp

الطابع الزمني عند بدء عملية التحرير، ويُستخدَم للكشف عن الحروب التحريرية، ويمكن الحصول عليها من خلال curtimestamp when beginning the edit process (e.g. when loading the page content to edit).

Type: timestamp (allowed formats)
recreate

تجاوز أية أخطاء حول الصفحة التي تم حذفها في هذه الأثناء.

Type: boolean (details)
createonly

لا تحرر الصفحة إذا كان موجودا بالفعل.

Type: boolean (details)
nocreate

يحدث خطأ إذا كانت الصفحة غير موجودة.

Type: boolean (details)
watch
Deprecated.

أضف الصفحة إلى لائحة مراقبة المستعمل الحالي

Type: boolean (details)
unwatch
Deprecated.

إزالة الصفحة من قائمة المراقبة للمستخدم الحالي.

Type: boolean (details)
watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.

One of the following values: watch، unwatch، preferences، nochange
Default: preferences
md5

The MD5 hash of the text parameter, or the prependtext and appendtext parameters concatenated. If set, the edit won't be done unless the hash is correct.

prependtext

إضافة هذا النص إلى بداية الصفحة. تجاوز text.

appendtext

إضافة هذا النص إلى بداية الصفحة. تجاوز text.

استخدم section=جديد لحاق القسم الجديد، بدلا من هذا الوسيط.

undo

التراجع عن هذه المراجعة. تجاوز text, prependtext وappendtext.

Type: integer
undoafter

التراجع عن جميع المراجعات من undo لهذه. إذا لم يتم التغيير، تراجع عن تعديل واحد فقط.

Type: integer
redirect

حل التحويلات تلقائيا.

Type: boolean (details)
contentformat

Content serialization format used for the input text.

One of the following values: text/x-wiki، text/javascript، application/json، text/css، text/plain
contentmodel

نموذج المحتوى للمحتوى الجديد.

One of the following values: wikitext، javascript، json، css، text
token

A "csrf" token retrieved from action=query&meta=tokens

ينبغي دائما أن يُرسَل الرمز كوسيط أخير، أو على الأقل بعد الوسيط text.

This parameter is required.