Difference between revisions of "Template:IP-talk"

From blackwiki
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:}}}#iferror:{{{{{|safesubst:}}}#expr:{{{{{|safesubst:}}}PAGENAME}}*1}}|{{{2|}}}|{{{1|}}}}}|{{{3|}}}}}<noinclude>{{documentation}}</noinclude>
+
{{{{{|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

Template documentation[view] [edit] [history] [purge]

Usage

  • Returns one of three strings dependent on where placed.
  1. If placed on an IP talk page (any talk page in an IP userspace).
  2. If placed on a talk page of a registered user (any talk page in their userspace).
  3. 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