變更
convert this to use Module:Ns has subpages - this gets the subpage status directly from MediaWiki, avoiding the need to update the template when namespaces change
{{#switch: {{NAMESPACE: {{{1|{{FULLPAGENAME}}}}}:Foo }} |{{ns:0}}<!--article--includeonly> |{{ns:File}} |{{nssafesubst:MediaWiki}} |{{ns:Category}} = <!--nothing--/includeonly> #invoke:Ns has subpages|yesmain}}<noinclude>
{{documentation}}
<!-- Categories go on the /doc subpage and interwikis go on Wikidata. -->
</noinclude>