Changes
Template:Namespace and pagename-detecting templates (view source)
Revision as of 22:28, 4 January 2023
, 22:28, 4 January 2023Redirect bypass from Template:Wikipedia other to Template:Project other using popups
{{Navbox
| name = Namespace and pagename-detecting templates
| state = {{{state|{{{1|<noinclude>expanded</noinclude>}}}}}}
| bodyclass=hlist
| title = Namespace and pagename-detecting templates
| group1 = [[Wikipedia: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}}
* {{tlbare|If usertalk 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 = [[Wikipedia: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|Noscript}}
| list9 = Detects whether page is viewed with a JavaScript-capable client or not.
}}
| below =
* [[Wikipedia:Namespace]]
* [[Wikipedia:Page name]]
* [[mw:Help:Magic words|Magic words]]
* [[mw:Help:Extension:ParserFunctions|ParserFunctions]]
}}<noinclude>
{{documentation}}
</noinclude>
| name = Namespace and pagename-detecting templates
| state = {{{state|{{{1|<noinclude>expanded</noinclude>}}}}}}
| bodyclass=hlist
| title = Namespace and pagename-detecting templates
| group1 = [[Wikipedia: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}}
* {{tlbare|If usertalk 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 = [[Wikipedia: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|Noscript}}
| list9 = Detects whether page is viewed with a JavaScript-capable client or not.
}}
| below =
* [[Wikipedia:Namespace]]
* [[Wikipedia:Page name]]
* [[mw:Help:Magic words|Magic words]]
* [[mw:Help:Extension:ParserFunctions|ParserFunctions]]
}}<noinclude>
{{documentation}}
</noinclude>