Difference between revisions of "Template:IP-talk/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(template)
imported>Fred Gandt
(updated to reflect adoption of Module:IPAddress for IP the detection)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
{{template shortcut|ipt}}
 +
{{lua|Module:IPAddress}}
 
{{Subst only}}
 
{{Subst only}}
{{template shortcut|ipt}}
 
 
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
 
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
  
Line 18: Line 19:
  
 
==Limitation==
 
==Limitation==
*The template will consider any username made entirely of numerals and/or punctuation to be an IP.
+
*The template invokes [[Module:IPAddress]] to discern if the page it's on is that of an IP.
*This may be revised later to be more accurate.
 
  
 
==See also==
 
==See also==
 +
*{{tl|IsIPAddress}}
 
{{Namespace and pagename-detecting templates}}
 
{{Namespace and pagename-detecting templates}}
  

Revision as of 16:37, 9 March 2016

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