MediaWiki API ヘルプ
ãã®ãã¼ã¸ã¯èªåçæããã MediaWiki API ã®èª¬æææ¸ãã¼ã¸ã§ãã
èª¬æææ¸ã¨ä¾: https://www.mediawiki.org/wiki/API
prop=templates (tl)
- ãã®ã¢ã¸ã¥ã¼ã«ã¯èªã¿åãã®æ¨©éãå¿ è¦ã¨ãã¾ãã
- ãã®ã¢ã¸ã¥ã¼ã«ã¯ã¸ã§ãã¬ã¼ã¿ã¼ã¨ãã¦ä½¿ç¨ã§ãã¾ãã
- Source: MediaWiki
- License: GPL-2.0-or-later
ä¸ãããããã¼ã¸ã§ãã©ã³ã¹ã¯ã«ã¼ãããã¦ãããã¹ã¦ã®ãã¼ã¸ãè¿ãã¾ãã
ãã©ã¡ã¼ã¿ã¼:
- tlnamespace
ãã®åå空éã®ãã³ãã¬ã¼ãã®ã¿è¡¨ç¤ºããã
- å¤ (|ãããã¯å¥ã®æååã§åºåã): -2ã-1ã0ã1ã2ã3ã4ã5ã6ã7ã8ã9ã10ã11ã12ã13ã14ã15
- To specify all values, use *.
- tllimit
è¿ããã³ãã¬ã¼ãã®æ°ã
- No more than 500 (5,000 for bots) allowed.
- Type: integer or max
- æ¢å®å¤: 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
The direction in which to list.
- å¤ (次ã®å¤ã®ãããã1ã¤): ascendingãdescending
- æ¢å®å¤: 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 [ãµã³ãããã¯ã¹ã§éã]