MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=expandtemplates
(main | expandtemplates)
- This module requires read rights.
- Source: MediaWiki
- License: GPL-2.0+
يوسع كافة القوالب ضمن نصوص الويكي.
Parameters:
- title
عنوان الصفحة.
- Default: API
- text
نص ويكي للتحويل.
- This parameter is required.
- revid
معرف المراجعة، ل{{REVISIONID}} والمتغيرات مماثلة.
- Type: integer
- prop
Which pieces of information to get.
Note that if no values are selected, the result will contain the wikitext, but the output will be in a deprecated format.
- wikitext
- نص الويكي الموسع
- categories
- Any categories present in the input that are not represented in the wikitext output.
- properties
- خصائص الصفحة التي تحددها الكلمات السحرية الموسعة في نص الويكي.
- volatile
- إذا كان الإخراج سريع التأثر، ينبغي عدم استخدامه في أي مكان آخر داخل الصفحة.
- ttl
- The maximum time after which caches of the result should be invalidated.
- modules
- Any ResourceLoader modules that parser functions have requested be added to the output. Either jsconfigvars or encodedjsconfigvars must be requested jointly with modules.
- jsconfigvars
- يعطي متغيرات تكوين جافا سكريبت الخاصة بهذه الصفحة.
- encodedjsconfigvars
- يعطي متغيرات تكوين جافا سكريبت الخاصة بهذه الصفحة كسلسلة JSON.
- parsetree
- شجرة تحليل XML للمدخلات.
- Values (separate with | or alternative): wikitext، categories، properties، volatile، ttl، modules، jsconfigvars، encodedjsconfigvars، parsetree
- includecomments
إدراج أو عدم إدراج تعليقات HTML في الإخراج.
- Type: boolean (details)
- generatexml
- Deprecated.
ولد شجرة تحليل XML (حل محلها prop=parsetree).
- Type: boolean (details)
Examples:
- توسيع نص الويكي {{Project:Sandbox}}.
- api.php?action=expandtemplates&text={{Project:Sandbox}} [open in sandbox]