Template:APIQuery categorymembers: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Davidwr This template can be used at the top of maintenance categories to create a link to //en.wikipedia.org/w/api.php?action=query&list=categorymembers to provide lists in XML, JSON, or other formats. Can be sorted and filtered by namespace |
m 6 revisions imported |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{SERVER}}{{SCRIPTPATH}}/api.php?action=query&list=categorymembers&cmtitle={{urlencode:{{ns:14}}:{{{CATPAGE|{{PAGENAME}}}}}|WIKI}}&cmprop={{{cmprop|title}}}&cmlimit=500&cmnamespace={{{cmnamespace|}}}&format={{{format|xml}}}{{#if: {{{cmsort|}}}|&cmsort={{{cmsort}}}}}{{#if: {{{cmdir|}}}|&cmdir={{{cmdir}}}}}<noinclude> | ||
<noinclude> | |||
{{documentation}}<!-- Add categories to the /doc subpage; interwikis go to Wikidata, thank you! --> | {{documentation}}<!-- Add categories to the /doc subpage; interwikis go to Wikidata, thank you! --> | ||
</noinclude> | </noinclude> |