Template:APIQuery categorymembers: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>PrimeHunter
use magic words to make it portable, use urlencode on whole category name, also encoding CATPAGE if it's used
Ookami (talk | contribs)
m 6 revisions imported
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{SERVER}}{{SCRIPTPATH}}/api.php?action=query&list=categorymembers&cmtitle={{urlencode:{{ns:14}}:{{{CATPAGE|{{PAGENAME}}}}}}}&cmprop={{{cmprop|title}}}&cmlimit=500&cmnamespace={{{cmnamespace|}}}&format={{{format|xml}}}{{#if: {{{cmsort|}}}|&cmsort={{{cmsort}}}}}{{#if: {{{cmdir|}}}|&cmdir={{{cmdir}}}}}<noinclude>
{{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>
{{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>

Latest revision as of 15:24, 3 September 2020

https://zoophilia.wiki/api.php?action=query&list=categorymembers&cmtitle=Category:APIQuery_categorymembers&cmprop=title&cmlimit=500&cmnamespace=&format=xml