Toggle search
Search
Toggle menu
10
1
578K
1.6M
Alternative Lifestyle Wiki
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Upload file
Notifications
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
user-interface-preferences
English
Personal tools
Talk
Contributions
Create account
Log in
Template
:
Namespace and pagename-detecting templates
Template page
More languages
Views
Read
Edit source
View history
associated-pages
Template
Discussion
More actions
Revision as of 14:59, 19 June 2024 by
Master-Brent
(
talk
|
contribs
)
(1 revision imported)
(
diff
)
← Older revision
| Latest revision (diff) | Newer revision → (diff)
v
t
e
Namespace and pagename-detecting templates
Namespace
Particular
Main other
Talk other
Category other
Draft other
File other
Is Commons
Help other
Module other
Portal other
Template other
User other
Project other
Single namespace
If talkspace of
If usertalk of
More generic
Namespace detect
Namespace detect showall
Main talk other
Main talk other flex
Talkspace detect
Pagename
When on basepage
Detects and acts according to whether it is on a basepage
or
on any subpage (that is, a
../..
subpage).
When pagename is
For pattern matching on the pagename.
Module:Page
Can take apart and put together pagenames in several ways.
IP-talk
Returns IP-user talkpage, registered-user talkpage or non-user talkpage.
IP-user other
For detecting IP-user pages.
Subpage other
Pagename has an after-slash part (not in mainspace)
Sandbox other
Page is subpage /sandbox (template space)
Testcases other
Page is subpage /testcases (template space)
Rootpage other
Page is rootpage (vs. /subpage) (template space)
Others
Stub other
Detects whether it is on a page with a stub template or not.
Redirect other
Detects whether it is on a redirect or not.
If preview
Detects whether page is viewed as a preview or not.
If IP
Displays different content to IP users and logged-in users.
If autoconfirmed
Displays different content to autoconfirmed and non-autoconfirmed users.
If extended confirmed
Displays different content to extended confirmed and non-extended confirmed users.
If administrator
Displays content only to admins.
If mobile
Displays different content to mobile users and desktop users.
Noscript
Detects whether page is viewed with a JavaScript-capable client or not.
Wikipedia:Namespace
Wikipedia:Page name
Magic words
ParserFunctions
Template documentation
[
create
] [
purge
]
Editors can experiment in this template's sandbox
(
create
|
mirror
)
and testcases
(
create
)
pages.
Add categories to the
/doc
subpage.
Subpages of this template
.