Difference between revisions of "Template:IP-talk"

From blackwiki
Jump to navigation Jump to search
imported>Fred Gandt
(Attempt to clean-up my errors. {{{1}}} → {{{1|}}} etc.)
imported>Fred Gandt
(Slightly more accurate, but far from perfect.)
Line 1: Line 1:
{{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}NAMESPACE}}|User talk|{{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}lc:{{{{{|safesubst:}}}PAGENAME}}}}|{{{{{|safesubst:}}}uc:{{{{{|safesubst:}}}PAGENAME}}}}|{{{1|}}}|{{{2|}}}}}|{{{3|}}}}}<noinclude>{{documentation}}</noinclude>
+
{{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}NAMESPACE}}|User talk|{{{{{|safesubst:}}}#iferror:{{{{{|safesubst:}}}#expr:{{{{{|safesubst:}}}PAGENAME}}*1}}|{{{2|}}}|{{{1|}}}}}|{{{3|}}}}}<noinclude>{{documentation}}</noinclude>

Revision as of 07:41, 2 December 2011

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