 | This template uses Lua:
|
Usage
- Returns one of three strings dependent on where placed.
- If placed on an IP talk page (any talk page in an IP userspace).
- If placed on a talk page of a registered user (any talk page in their userspace).
- If placed on a page that is not a user talk page.
Examples
I have been placed on {{subst:IP-talk|an IP user's|a registered user's|a page that is not a user}} talk page.
{{subst:IP-talk|Create an account! Is kewl!|Now you've registered you can...}}
{{subst:IP-talk||Message for registered user|Statement on article page}}
Limitation
- The template invokes Module:IPAddress to discern if the page it's on is that of an IP.
See also
Namespace and pagename-detecting templates |
|---|
| Namespace | |
|---|
| 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) |
|---|
|
|---|
| Others | | Stub other | Detects whether it is on a page with a stub template or not. |
|---|
| Preview other | Detects whether page is viewed as a preview or not. |
|---|
|
|---|
|