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

From blackwiki
Jump to navigation Jump to search
imported>Fred Gandt
(First simple draft of documentation)
 
imported>Sdkb
(needed hatnote for very similarly-named template)
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Categories and interwikis go at the bottom of this page. -->
+
{{For|the header for IP talk pages|Template:IPtalk}}
 +
{{template shortcut|ipt}}
 +
{{lua|Module:IPAddress}}
 +
{{Subst only}}
 +
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
  
===Usage===
+
== Usage ==
{{Substitution|}}
 
 
*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 namespace).
+
#If placed on an IP talk page (any talk page in an IP userspace).
#If placed on a talk page of a registered account user (any talk page in their namespace).
+
#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 talk page.
+
#If placed on a page that is not a user talk page.
  
===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}}</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:IP-talk|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>
  
===See also===
+
<code><nowiki>{{subst:IP-talk||Message for registered user|Statement on article page}}</nowiki></code>
  
<includeonly>
+
==Limitation==
<!-- Categories and interwikis go here: -->
+
*The template invokes [[Module:IPAddress]] to discern if the page it's on is that of an IP.
</includeonly>
+
 
 +
==See also==
 +
*{{tl|IsIPAddress}}
 +
{{Namespace and pagename-detecting templates}}
 +
 
 +
<includeonly>{{Sandbox other||
 +
<!--Categories below this line, please; interwikis at Wikidata-->
 +
[[Category:Namespace manipulation templates]]
 +
[[Category:Pagename manipulation templates]]
 +
[[Category:Talk namespace templates]]
 +
}}</includeonly>

Latest revision as of 21:16, 19 July 2020

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