(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Namespace and pagename-detecting templates |
---|
Namespace | Particular |
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
|
---|
More generic |
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
- [[Template:{{{2}}}|{{{2}}}]]
|
---|
|
---|
Pagename | [[Template:{{{2}}}|{{{2}}}]] | Detects and acts according to whether it is on a basepage or on any subpage (that is, a ../.. subpage). |
---|
[[Template:{{{2}}}|{{{2}}}]] | For pattern matching on the pagename. |
---|
Module:Page | Can take apart and put together pagenames in several ways. |
---|
[[Template:{{{2}}}|{{{2}}}]] | Returns IP-user talkpage, registered-user talkpage or non-user talkpage. |
---|
[[Template:{{{2}}}|{{{2}}}]] | For detecting IP-user pages. |
---|
[[Template:{{{2}}}|{{{2}}}]] | Pagename has an after-slash part (not in mainspace) |
---|
[[Template:{{{2}}}|{{{2}}}]] | Page is subpage /sandbox (template space) |
---|
[[Template:{{{2}}}|{{{2}}}]] | Page is subpage /testcases (template space) |
---|
[[Template:{{{2}}}|{{{2}}}]] | Page is rootpage (vs. /subpage) (template space) |
---|
|
---|
Others | [[Template:{{{2}}}|{{{2}}}]] | Detects whether it is on a page with a stub template or not. |
---|
[[Template:{{{2}}}|{{{2}}}]] | Detects whether page is viewed as a preview or not. |
---|
[[Template:{{{2}}}|{{{2}}}]] | Displays different content to IP users and logged-in users. |
---|
[[Template:{{{2}}}|{{{2}}}]] | Displays different content to autoconfirmed and non-autoconfirmed users. |
---|
[[Template:{{{2}}}|{{{2}}}]] | Displays different content to extended confirmed and non-extended confirmed users. |
---|
[[Template:{{{2}}}|{{{2}}}]] | Displays different content to admins and non-admins. |
---|
[[Template:{{{2}}}|{{{2}}}]] | Displays different content to mobile users and desktop users. |
---|
[[Template:{{{2}}}|{{{2}}}]] | Displays different content to checkusers and non-checkusers. |
---|
[[Template:{{{2}}}|{{{2}}}]] | Detects whether page is viewed with a JavaScript-capable client or not. |
---|
|
---|
|
Initial visibility: currently defaults to autocollapse
To set this template's initial visibility, the |state=
parameter may be used:
|state=collapsed
: {{Namespace and pagename-detecting templates|state=collapsed}}
to show the template collapsed, i.e., hidden apart from its title bar
|state=expanded
: {{Namespace and pagename-detecting templates|state=expanded}}
to show the template expanded, i.e., fully visible
|state=autocollapse
: {{Namespace and pagename-detecting templates|state=autocollapse}}
- shows the template collapsed to the title bar if there is a
{{navbar}}
, a {{sidebar}}
, or some other table on the page with the collapsible attribute
- shows the template in its expanded state if there are no other collapsible items on the page
If the |state=
parameter in the template on this page is not set, the template's initial visibility is taken from the |default=
parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse
.