Editing
Template:Namespace and pagename-detecting templates
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Advanced
Special characters
Help
Heading
Level 2
Level 3
Level 4
Level 5
Format
Insert
Latin
Latin extended
IPA
Symbols
Greek
Greek extended
Cyrillic
Arabic
Arabic extended
Hebrew
Bangla
Tamil
Telugu
Sinhala
Devanagari
Gujarati
Thai
Lao
Khmer
Canadian Aboriginal
Runes
Á
á
À
à
Â
â
Ä
ä
Ã
ã
Ǎ
ǎ
Ā
ā
Ă
ă
Ą
ą
Å
å
Ć
ć
Ĉ
ĉ
Ç
ç
Č
č
Ċ
ċ
Đ
đ
Ď
ď
É
é
È
è
Ê
ê
Ë
ë
Ě
ě
Ē
ē
Ĕ
ĕ
Ė
ė
Ę
ę
Ĝ
ĝ
Ģ
ģ
Ğ
ğ
Ġ
ġ
Ĥ
ĥ
Ħ
ħ
Í
í
Ì
ì
Î
î
Ï
ï
Ĩ
ĩ
Ǐ
ǐ
Ī
ī
Ĭ
ĭ
İ
ı
Į
į
Ĵ
ĵ
Ķ
ķ
Ĺ
ĺ
Ļ
ļ
Ľ
ľ
Ł
ł
Ń
ń
Ñ
ñ
Ņ
ņ
Ň
ň
Ó
ó
Ò
ò
Ô
ô
Ö
ö
Õ
õ
Ǒ
ǒ
Ō
ō
Ŏ
ŏ
Ǫ
ǫ
Ő
ő
Ŕ
ŕ
Ŗ
ŗ
Ř
ř
Ś
ś
Ŝ
ŝ
Ş
ş
Š
š
Ș
ș
Ț
ț
Ť
ť
Ú
ú
Ù
ù
Û
û
Ü
ü
Ũ
ũ
Ů
ů
Ǔ
ǔ
Ū
ū
ǖ
ǘ
ǚ
ǜ
Ŭ
ŭ
Ų
ų
Ű
ű
Ŵ
ŵ
Ý
ý
Ŷ
ŷ
Ÿ
ÿ
Ȳ
ȳ
Ź
ź
Ž
ž
Ż
ż
Æ
æ
Ǣ
ǣ
Ø
ø
Œ
œ
ß
Ð
ð
Þ
þ
Ə
ə
Formatting
Links
Headings
Lists
Files
References
Discussion
Description
What you type
What you get
Italic
''Italic text''
Italic text
Bold
'''Bold text'''
Bold text
Bold & italic
'''''Bold & italic text'''''
Bold & italic text
{{Navbox | name = Namespace and pagename-detecting templates | state = {{{state|{{{1|<noinclude>expanded</noinclude>}}}}}} | bodyclass=hlist | title = Namespace and pagename-detecting templates | group1 = [[Chabadpedia:Namespace|Namespace]] | list1 = {{Navbox |child |groupstyle=font-weight:normal; | group1 = Particular | list1 = * {{tlbare|Main other}} * {{tlbare|Talk other}} * {{tlbare|Category other}} * {{tlbare|Draft other}} * {{tlbare|File other}} ** {{tlbare|Is Commons}} * {{tlbare|Help other}} * {{tlbare|Module other}} * {{tlbare|Portal other}} * {{tlbare|Template other}} * {{tlbare|User other}} * {{tlbare|Project other}} * {{tlbare|Single namespace}} * {{tlbare|If talkspace of}} | group2 = More generic | list2 = * {{tlbare|Namespace detect}} * {{tlbare|Namespace detect showall}} * {{tlbare|Main talk other}} ** {{tlbare|Main talk other flex}} * {{tlbare|Talkspace detect}} }} | group2 = [[Chabadpedia:Page name|Pagename]] | list2 = {{navbox|subgroup | groupstyle = line-height:1.2em; font-weight:normal; background:transparent; | liststyle = line-height:1.2em | group1 = {{tlbare|When on basepage}} | list1 = Detects and acts according to whether it is on a basepage ''or'' on any subpage (that is, a <code>../..</code> subpage). | group2 = {{tlbare|When pagename is}} | list2 = For pattern matching on the pagename. | group3 = [[Module:Page]] | list3 = Can take apart and put together pagenames in several ways. | group4 = {{tlbare|IP-talk}} | list4 = Returns IP-user talkpage, registered-user talkpage or non-user talkpage. | group5 = {{tlbare|IP-user other}} | list5 = For detecting IP-user pages. | group6 = {{tlbare|Subpage other}} | list6 = Pagename has an after-slash part (not in mainspace) | group7 = {{tlbare|Sandbox other}} | list7 = Page is subpage /sandbox (template space) | group8 = {{tlbare|Testcases other}} | list8 = Page is subpage /testcases (template space) | group9 = {{tlbare|Rootpage other}} | list9 = Page is rootpage (vs. /subpage) (template space) }} | group3 = Others | list3 = {{navbox|subgroup | groupstyle = line-height:1.2em; font-weight:normal; background:transparent; | liststyle = line-height:1.2em | group1 = {{tlbare|Stub other}} | list1 = Detects whether it is on a page with a stub template or not. | group2 = {{tlbare|Redirect other}} | list2 = Detects whether it is on a redirect or not. | group3 = {{tlbare|If preview}} | list3 = Detects whether page is viewed as a preview or not. | group4 = {{tlbare|If IP}} | list4 = Displays different content to IP users and logged-in users. | group5 = {{tlbare|If autoconfirmed}} | list5 = Displays different content to autoconfirmed and non-autoconfirmed users. | group6 = {{tlbare|If extended confirmed}} | list6 = Displays different content to extended confirmed and non-extended confirmed users. | group7 = {{tlbare|If administrator}} | list7 = Displays content only to admins. | group8 = {{tlbare|If mobile}} | list8 = Displays different content to mobile users and desktop users. | group9 = {{tlbare|If dark}} | list9 = Displays different content to dark mode users and light mode users. | group10 = {{tlbare|Noscript}} | list10 = Detects whether page is viewed with a JavaScript-capable client or not. }} | below = * [[Chabadpedia:Namespace]] * [[Chabadpedia:Page name]] * [[mw:Help:Magic words|Magic words]] * [[mw:Help:Extension:ParserFunctions|ParserFunctions]] }}<noinclude> {{documentation}} </noinclude>
Edit summary
(Briefly describe your changes)
Please note that all contributions to Chabadpedia are considered to be released under the GNU Free Documentation License 1.3 or later (see
Chabadpedia:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template:Documentation
(
edit
)
Template:Navbox
(
edit
)
Template:Str endswith
(
edit
)
Template:Template link bare
(
edit
)
Template:Tlbare
(
edit
)
Module:Arguments
(
edit
)
Module:Color contrast
(
edit
)
Module:Color contrast/colors
(
edit
)
Module:Documentation
(
edit
)
Module:Navbar
(
edit
)
Module:Navbar/configuration
(
edit
)
Module:Navbox
(
edit
)
Module:Navbox/configuration
(
edit
)
Module:String
(
edit
)
Module:TableTools
(
edit
)
Category:Pages with script errors
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Navigation
Main page
Recent changes
Random page
Tools
What links here
Related changes
Special pages
Page information