Template:Namespace and pagename-detecting templates/doc

From Encyc

This template's initial visibility currently defaults to Template:Param value, meaning that it is fully visible.

To change this template's initial visibility, the |state= parameter may be used:

  • <syntaxhighlight lang="wikitext" inline="1">{{Namespace and pagename-detecting templates|state=collapsed}}</syntaxhighlight> will show the template collapsed, i.e. hidden apart from its title bar.
  • <syntaxhighlight lang="wikitext" inline="1">{{Namespace and pagename-detecting templates|state=autocollapse}}</syntaxhighlight> will show the template autocollapsed, i.e. if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar, but if not, it is fully visible.

__EXPECTUNUSEDTEMPLATE__