Template:Namespace and pagename-detecting templates: Difference between revisions
Jump to navigation
Jump to search
(add {{noscript}}) |
imported>Paine Ellsworth m (Redirect bypass from Template:Wikipedia other to Template:Project other using popups) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 23: | Line 23: | ||
* {{tlbare|Template other}} | * {{tlbare|Template other}} | ||
* {{tlbare|User other}} | * {{tlbare|User other}} | ||
* {{tlbare| | * {{tlbare|Project other}} | ||
* {{tlbare|Single namespace}} | * {{tlbare|Single namespace}} | ||
* {{tlbare|If talkspace of}} | * {{tlbare|If talkspace of}} | ||
Line 67: | Line 67: | ||
| group1 = {{tlbare|Stub other}} | | group1 = {{tlbare|Stub other}} | ||
| list1 = Detects whether it is on a page with a stub template or not. | | list1 = Detects whether it is on a page with a stub template or not. | ||
| group2 = {{tlbare| | | group2 = {{tlbare|Redirect other}} | ||
| list2 = Detects whether | | list2 = Detects whether it is on a redirect or not. | ||
| group3 = {{tlbare|If | | group3 = {{tlbare|If preview}} | ||
| list3 = | | list3 = Detects whether page is viewed as a preview or not. | ||
| group4 = {{tlbare|If | | group4 = {{tlbare|If IP}} | ||
| list4 = Displays different content to | | list4 = Displays different content to IP users and logged-in users. | ||
| group5 = {{tlbare|If | | group5 = {{tlbare|If autoconfirmed}} | ||
| list5 = Displays different content to | | list5 = Displays different content to autoconfirmed and non-autoconfirmed users. | ||
| group6 = {{tlbare|If | | group6 = {{tlbare|If extended confirmed}} | ||
| list6 = Displays different content to | | list6 = Displays different content to extended confirmed and non-extended confirmed users. | ||
| group7 = {{tlbare|If | | group7 = {{tlbare|If administrator}} | ||
| list7 = Displays | | list7 = Displays content only to admins. | ||
| group8 = {{tlbare|If | | group8 = {{tlbare|If mobile}} | ||
| list8 = Displays different content to | | list8 = Displays different content to mobile users and desktop users. | ||
| group9 = {{tlbare|Noscript}} | | group9 = {{tlbare|Noscript}} | ||
| list9 = Detects whether page is viewed with a JavaScript-capable client or not. | | list9 = Detects whether page is viewed with a JavaScript-capable client or not. |
Latest revision as of 23:28, 4 January 2023
Initial visibility: currently defaults to expanded
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}}
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 expanded
.