MediaWiki API ヘルプ
ãã®ãã¼ã¸ã¯èªåçæããã MediaWiki API ã®èª¬æææ¸ãã¼ã¸ã§ãã
èª¬æææ¸ã¨ä¾: https://www.mediawiki.org/wiki/API
action=expandtemplates
(main | expandtemplates)
- ãã®ã¢ã¸ã¥ã¼ã«ã¯èªã¿åãã®æ¨©éãå¿ è¦ã¨ãã¾ãã
- Source: MediaWiki
- License: GPL-2.0-or-later
ã¦ã£ãããã¹ãã«å«ã¾ãããã¹ã¦ã®ãã³ãã¬ã¼ããå±éãã¾ãã
ãã©ã¡ã¼ã¿ã¼:
- title
ãã¼ã¸ã®ååã§ãã
- text
夿ããã¦ã£ãããã¹ãã§ãã
- ãã®ãã©ã¡ã¼ã¿ã¼ã¯å¿ é ã§ãã
- revid
Revision ID, for
{{REVISIONID}}and similar variables.- 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
- 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
- å ¥åã®XMLæ§æè§£æããªã¼ã
- å¤ (|ãããã¯å¥ã®æååã§åºåã): wikitextãcategoriesãpropertiesãvolatileãttlãmodulesãjsconfigvarsãencodedjsconfigvarsãparsetree
- includecomments
HTMLã³ã¡ã³ããåºåã«å«ãããã©ããã
- Type: boolean (details)
- generatexml
- 廿¢äºå®ã§ãã
XMLã®æ§æè§£æããªã¼ãçæãã¾ã (replaced by prop=parsetree)
- Type: boolean (details)
ä¾:
- ã¦ã£ãããã¹ã {{Project:Sandbox}} ãå±éããã
- api.php?action=expandtemplates&text={{Project:Sandbox}} [ãµã³ãããã¯ã¹ã§éã]