Помош со Извршникот на МедијаВики
Ова е самосоздадена документациска страница за извршникот на МедијаВики.
Документација и примери: https://www.mediawiki.org/wiki/API
action=expandtemplates
(main | expandtemplates)
- За овој модул се потребни права на читање.
- Извор: MediaWiki
- Лиценца: GPL-2.0-or-later
Ги проширува сите предлошки во викитекст.
Параметри:
- title
Наслов на страница.
- text
Викитекст за претворање.
- Овој параметар е задолжителен.
- revid
Назнака на преработката, за
{{REVISIONID}}
и слични променливи.- Вид: цел број
- prop
Кои информации треба да ги добиете:
Имајте на ум дека ако не изберете никаква вредност, исходот ќе го содржи викитекстот, но изводот ќе биде во застарен формат.
- wikitext
- Проширениот викитекст.
- categories
- Any categories present in the input that are not represented in the wikitext output.
- properties
- Page properties defined by expanded magic words in the wikitext.
- volatile
- Whether the output is volatile and should not be reused elsewhere within the page.
- 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
- Gives the JavaScript configuration variables specific to the page.
- encodedjsconfigvars
- Gives the JavaScript configuration variables specific to the page as a JSON string.
- parsetree
- The XML parse tree of the input.
- Вредности (одделете ги со | или алтернатива): categories, encodedjsconfigvars, jsconfigvars, modules, parsetree, properties, ttl, volatile, wikitext
- includecomments
Дали во изводот да се вклучени HTML-коментари.
- Type: boolean (details)
- showstrategykeys
Whether to include internal merge strategy information in jsconfigvars.
- Type: boolean (details)
- generatexml
- Застарен.
Создај XML-дрво на расчленување (заменето со prop=parsetree).
- Type: boolean (details)
Пример:
- Прошири го викитекстот {{Project:Sandbox}}.
- api.php?action=expandtemplates&text={{Project:Sandbox}} [open in sandbox]