Template:In category: Difference between revisions

maybe allow spaces?
mNo edit summary
(maybe allow spaces?)
Line 1: Line 1:
<includeonly>{{#cargo_query:table=_pageData|fields=_pageName=Page|where=_categories HOLDS '{{{1|{{BASEPAGENAME}}}}}' AND _pageName <> '{{PAGENAME}}' AND _pageNamespace = '0'|format=ul}}</includeonly><noinclude>Automated cargo query that  
<includeonly>{{#cargo_query:table=_pageData|fields=_pageName=Page|where=_categories HOLDS '{{#replace:{{{1|{{BASEPAGENAME}}}}}|{{Space}}|_}}' AND _pageName <> '{{PAGENAME}}' AND _pageNamespace = '0'|format=ul}}</includeonly><noinclude>Automated cargo query that  
returns all pages with the specified category.  
returns all pages with the specified category.  


Line 5: Line 5:


<syntaxhighlight lang="sql">
<syntaxhighlight lang="sql">
{{in category|Mechanimists}}
{{in category|Narrative Entities}}
</syntaxhighlight>
</syntaxhighlight>


returns
returns


{{in category|Mechanimists}}
{{in category|Narrative Entities}}
[[Category:Query Templates]] </noinclude>
[[Category:Query Templates]] </noinclude>