ଛାଞ୍ଚ:IP-talk/doc
ଦେଖଣା
This is a documentation subpage for ଛାଞ୍ଚ:IP-talk. It may contain usage information, categories and other content that is not part of the original ଛାଞ୍ଚ page. |
Usage
[ସମ୍ପାଦନା]This template should always be substituted. |
- 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 a talk page of a registered user (any talk page in their userspace).
- If placed on a page that is not a user talk page.
- This template has a shorthand
{{Ipt}}
.
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:Ipt|Create an account! Is kewl!|Now you've registered you can...}}
{{subst:Ipt||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
[ସମ୍ପାଦନା]Pagename-handling and detection templates:
- {{pgn}} – Can take apart and put together pagenames in several ways.
- {{basepage subpage}} – For detecting if on a basepage, subpage or subsubpage.
- {{if pagename}} – For pattern matching on the pagename.
- {{if pagename multi}} – For pattern matching on the pagename, has input reuse.
- {{IP-user other}} – For detecting IP-user pages.
Easy to use namespace-detection templates:
- {{main other}} – For article templates.
- {{talk other}} – For talk page templates.
- {{user other}} – For user page templates.
- {{wikipedia other}} – For detecting "Wikipedia:" pages.
- {{file other}} – For file (image) templates.
- {{template other}} – For detecting template pages.
- {{help other}} – For help page templates.
- {{category other}} – For category templates.
- {{portal other}} – For portal templates.
- {{book other}} – For detecting book pages.
More complex namespace-detection templates:
- {{namespace detect}} – The very versatile one.
- {{namespace detect showall}} – The extremely versatile one, has input reuse.
- {{talkspace detect}} - For detecting talk pages on various namespaces.
Technical stuff:
- mw:Help:Magic words – About
{{NAMESPACE}}
etc. - mw:Help:Extension:ParserFunctions – About
{{#ifeq:|||}}
etc.