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 will consider any username made entirely of numerals and/or punctuation to be an IP.
- This may be revised later to be more accurate.
See also
Namespace and pagename-detecting templates |
|---|
| | Namespace | |
|---|
| | Pagename | | when on basepage | Detects and acts according to whether it is on a basepage, subpage, subsubpage or beyond.
| | pgn | Can take apart and put together pagenames in several ways.
| | if pagename | For pattern matching on the pagename.
| | if pagename multi | For pattern matching on the pagename, has input reuse.
| | IP-talk | Returns IP-user talkpage, registered-user talkpage or non-user talkpage.
| | IP-user other | For detecting IP-user pages.
|
|
|---|
| 1 Detect and act according to whether they are on a page in the namespace X or elsewhere. | | |
|