MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

action=parse

(main | parse)
  • This module requires read rights.
  • Source: MediaWiki
  • License: GPL-2.0+

Parses content and returns parser output.

See the various prop-modules of action=query to get information from the current version of a page.

There are several ways to specify the text to parse:

  1. Specify a page or revision, using page, pageid, or oldid.
  2. Specify content explicitly, using text, title, and contentmodel.
  3. Specify only a summary to parse. prop should be given an empty value.
Parameters:
title

عنوان الصفحة التي ينتمي النص إليها.إذا تم حذفها، contentmodel يجب أن تكون محددة، وAPI سيتم استخدامه كعنوان.

text

نص للتحليل. استخدم title أو contentmodel للتحكم في نموذج المحتوى.

summary

ملخص للتحليل.

page

تحليل محتوى هذه الصفحة. لا يمكن أن تُستخدَم بجانب text and title.

pageid

حلل محتوى هذه الصفحة. تجاوز page.

Type: integer
redirects

لو page أو pageid is تم تعيينها للتحويل، حلها.

Type: boolean (details)
oldid

تحليل مضمون هذا التعديل. تجاوز page وpageid.

Type: integer
prop

أي قطعة من المعلومات تريد الحصول عليها:

text
Gives the parsed text of the wikitext.
langlinks
يعطي وصلات اللغات في تحليل نصوص الويكي.
categories
يعطي التصنيفات في تحليل نصوص الويكي.
categorieshtml
يعطي إصدار HTML للتصنيفات.
links
يعطي الوصلات الداخلية في تحليل نصوص الويكي.
templates
يعطي القوالب في تحليل نصوص الويكي.
images
يعطي الصور في تحليل نصوص الويكي.
externallinks
يعطي الوصلات الخارجية في تحليل نصوص الويكي.
sections
يعطي الأقسام في تحليل نصوص الويكي.
revid
Adds the revision ID of the parsed page.
displaytitle
يضيف العنوان في تحليل نصوص الويكي.
headitems
Deprecated. يعطي عناصر لوضعها في <head> الصفحة.
headhtml
يعطي تحليل <head> الصفحة.
modules
Gives the ResourceLoader modules used on the page. To load, use mw.loader.using(). Either jsconfigvars or encodedjsconfigvars must be requested jointly with modules.
jsconfigvars
يعطي متغيرات تكوين جافا سكريبت الخاصة بهذه الصفحة. للتطبيق; استخدم mw.config.set().
encodedjsconfigvars
يعطي متغيرات تكوين جافا سكريبت الخاصة بهذه الصفحة كسلسلة JSON.
indicators
يعطي HTML مؤشرات حالة الصفحة المستخدمة في الصفحة.
iwlinks
يعطي وصلات اللغات في تحليل نصوص الويكي.
wikitext
يعطي نصوص الويكي الأصلية التي تم تحليلها.
properties
يعطي الخصائص المختلفة المحددة في تحليل نصوص الويكي.
limitreportdata
يعطي تقرير الحد بطريقة منظمة. لا يعطي أية بيانات، عندما يتم تعيين disablelimitreport.
limitreporthtml
يعطي إصدار HTML لتقرير الحد. لا يعطي أية بيانات، عندما يتم تعيينdisablelimitreport.
parsetree
شجرة تحليل XML لمحتويات المراجعة (يتطلب نموذج محتوى wikitext)
parsewarnings
Gives the warnings that occurred while parsing content.
Values (separate with | or alternative): text، langlinks، categories، categorieshtml، links، templates، images، externallinks، sections، revid، displaytitle، headitems، headhtml، modules، jsconfigvars، encodedjsconfigvars، indicators، iwlinks، wikitext، properties، limitreportdata، limitreporthtml، parsetree، parsewarnings
Default: text|langlinks|categories|links|templates|images|externallinks|sections|revid|displaytitle|iwlinks|properties|parsewarnings
pst

قم بتحويل قبل الحفظ على المدخلات قبل تحليل ذلك. صالح فقط عند استخدامه مع النص.

Type: boolean (details)
onlypst

Do a pre-save transform (PST) on the input, but don't parse it. Returns the same wikitext, after a PST has been applied. Only valid when used with text.

Type: boolean (details)
effectivelanglinks

يشمل وصلات لغة المقدمة بواسطة ملحقات (للاستخدام مع prop=langlinks).

Type: boolean (details)
section

Only parse the content of this section number.

When new, parse text and sectiontitle as if adding a new section to the page.

new is allowed only when specifying text.

sectiontitle

New section title when section is new.

Unlike page editing, this does not fall back to summary when omitted or empty.

disablepp
Deprecated.

استخدم disablelimitreport بدلا من ذلك.

Type: boolean (details)
disablelimitreport

تجاهل تقرير الحد ("NewPP limit report") من مخرجات المحلل.

Type: boolean (details)
disableeditsection

تجاهل روابط تحرير الأقسام من مخرجات المحلل.

Type: boolean (details)
disabletidy

لا تشغل تنظيف HTML (على سبيل المثال مرتبة) على مخرجات المحلل.

Type: boolean (details)
generatexml
Deprecated.

توليد شجرة تحليل XML (يتطلب نموذج المحتوى wikitext; حل محلها prop=parsetree).

Type: boolean (details)
preview

تحليل في وضع المعاينة.

Type: boolean (details)
sectionpreview

تحليل في وضع معاينة القسم (يمكن وضع المعاينة أيضا).

Type: boolean (details)
disabletoc

تجاهل جدول المحتويات في المخرجات.

Type: boolean (details)
contentformat

نموذج المحتوى المسلسل يُستخدَم للنص المدخل. صالح فقط عند استخدامه مع text.

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

Content model of the input text. If omitted, title must be specified, and default will be the model of the specified title. Only valid when used with text.

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