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

From blackwiki
Jump to navigation Jump to search
imported>Fred Gandt
(→‎See also: Adding {{pagename detect see also}} and Category:Namespace manipulation templates)
imported>Funandtrvl
(updte)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Categories and interwikis go at the bottom of this page. -->
+
{{Subst only}}
 +
{{template shortcut|ipt}}
 +
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
  
===Usage===
+
== Usage ==
{{Substitution|'''always'''}}
 
 
*Returns one of three strings dependent on where placed.
 
*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 an IP talk page (any talk page in an IP userspace).
Line 9: Line 10:
 
#If placed on a page that is not a user talk page.
 
#If placed on a page that is not a user talk page.
  
*This template has a shorthand <code><nowiki>{{Ipt}}</nowiki></code>.
+
==Examples==
 
 
===Examples===
 
 
I have been placed on <code><nowiki>{{subst:IP-talk|an IP user's|a registered user's|a page that is not a user}}</nowiki></code> talk page.
 
I have been placed on <code><nowiki>{{subst:IP-talk|an IP user's|a registered user's|a page that is not a user}}</nowiki></code> talk page.
  
<code><nowiki>{{subst:Ipt|Create an account! Is kewl!|Now you've registered you can...}}</nowiki></code>
+
<code><nowiki>{{subst:IP-talk|Create an account! Is kewl!|Now you've registered you can...}}</nowiki></code>
  
<code><nowiki>{{subst:Ipt||Message for registered user|Statement on article page}}</nowiki></code>
+
<code><nowiki>{{subst:IP-talk||Message for registered user|Statement on article page}}</nowiki></code>
  
===Limitation===
+
==Limitation==
 
*The template will consider any username made entirely of numerals and/or punctuation to be an IP.
 
*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.
 
*This may be revised later to be more accurate.
  
===See also===
+
==See also==
 
{{pagename detect see also}}
 
{{pagename detect see also}}
<includeonly>
+
 
<!-- Categories and interwikis go here: -->
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 +
<!--Categories below this line, please; interwikis at Wikidata-->
 
[[Category:Namespace manipulation templates]]
 
[[Category:Namespace manipulation templates]]
</includeonly>
+
}}</includeonly>

Revision as of 15:48, 2 September 2014

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 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

Template:Pagename detect see also