Difference between revisions of "Template:IP-talk"
Jump to navigation
Jump to search
imported>Fred Gandt (Slightly more accurate, but far from perfect.) |
imported>Fred Gandt (updated to invoke Module:IPAddress for the IP detection) |
||
| Line 1: | Line 1: | ||
| − | {{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}NAMESPACE}}|User talk|{{{{{|safesubst:}}}# | + | {{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}NAMESPACE}}|User talk|{{{{{|safesubst:}}}#if:{{{{{|safesubst:}}}#invoke:IPAddress|isIp|{{{{{|safesubst:}}}PAGENAME}}}}|{{{1|}}}|{{{2|}}}}}|{{{3|}}}}}<noinclude>{{documentation}}</noinclude> |
Latest revision as of 16:37, 9 March 2016
| This template uses Lua: |
| This template should always be substituted (i.e., use {{subst:IP-talk}}). |
Contents
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
- {{IsIPAddress}}
| The above documentation is transcluded from Template:IP-talk/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |