MediaWiki API ヘルプ
ãã®ãã¼ã¸ã¯èªåçæããã MediaWiki API ã®èª¬æææ¸ãã¼ã¸ã§ãã
èª¬æææ¸ã¨ä¾: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
prop=templates (tl)
- ãã®ã¢ã¸ã¥ã¼ã«ã¯èªã¿åãã®æ¨©éãå¿ è¦ã¨ãã¾ãã
- ãã®ã¢ã¸ã¥ã¼ã«ã¯ã¸ã§ãã¬ã¼ã¿ã¼ã¨ãã¦ä½¿ç¨ã§ãã¾ãã
- ã½ã¼ã¹: MediaWiki
- ã©ã¤ã»ã³ã¹: GPL-2.0-or-later
ä¸ãããããã¼ã¸ã§åç §èªã¿è¾¼ã¿ããã¦ãããã¹ã¦ã®ãã¼ã¸ãè¿ãã¾ãã
ãã©ã¡ã¼ã¿ã¼:
- tlnamespace
ãã®åå空éã®ãã³ãã¬ã¼ãã®ã¿è¡¨ç¤ºããã
- å¤ (|ãããã¯å¥ã®æååã§åºåã): -1ã-2ã0ã1ã2ã3ã4ã5ã6ã7ã8ã9ã10ã11ã12ã13ã14ã15
- ãã¹ã¦ã®å¤ãæå®ããã«ã¯ã*ãç¨ãã¦ãã ããã
- tllimit
è¿ããã³ãã¬ã¼ãã®æ°ã
- å: æ´æ°ã¾ã㯠max
- The value must be between 1 and 500.
- Default: 10
- tlcontinue
When more results are available, use this to continue.
- tltemplates
Only list these templates. Useful for checking whether a certain page uses a certain template.
- è¤æ°ã®å¤ã¯ | ãããã¯ä»£ããã®æåã§åºåã£ã¦ãã ããã
- å¤ã®æå¤§å¤ã¯ 50ï¼ç·©ãå¶éãé©ç¨ãããã¯ã©ã¤ã¢ã³ãã§ã¯500ï¼ã§ãã
- tldir
æé ã»éé ã®å¥ã
- å¤ (次ã®å¤ã®ãããã1ã¤): ascendingãdescending
- Default: ascending
ä¾:
- Main Page ã§ä½¿ç¨ããã¦ãããã³ãã¬ã¼ããåå¾ããã
- api.php?action=query&prop=templates&titles=Main%20Page [ãµã³ãããã¯ã¹ã§éã]
- Main Page ã§ä½¿ç¨ããã¦ãããã³ãã¬ã¼ãã«é¢ããæ å ±ãåå¾ããã
- api.php?action=query&generator=templates&titles=Main%20Page&prop=info [ãµã³ãããã¯ã¹ã§éã]
- Main Page ã§åç §èªã¿è¾¼ã¿ããã¦ãã å©ç¨è ããã³ ãã³ãã¬ã¼ã åå空éã®ãã¼ã¸ãåå¾ããã
- api.php?action=query&prop=templates&titles=Main%20Page&tlnamespace=2|10 [ãµã³ãããã¯ã¹ã§éã]