Template:Namespace and pagename-detecting templates: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Davidgothberg
Moving {{basepage subpage}} above {{pgn}}, since {{basepage subpage}} is much easier to understand and more widely used. Thus it is better if people see that one first.
meta>Fred Gandt
Adding {{IP-talk}}/{{Ipt}}
Line 6: Line 6:
* {{tl|if pagename multi}} – For pattern matching on the pagename, has input reuse.
* {{tl|if pagename multi}} – For pattern matching on the pagename, has input reuse.
* {{tl|IP-user other}} – For detecting IP-user pages.
* {{tl|IP-user other}} – For detecting IP-user pages.
* {{tl|IP-talk}} - Return: 1) IP user talk page 2) registered user talk page 3) not user talk page.


Easy to use namespace-detection templates:
Easy to use namespace-detection templates:

Revision as of 19:14, 28 November 2011

Pagename-handling and detection templates:

  • {{basepage subpage}} – For detecting if on a basepage, subpage or subsubpage.
  • {{pgn}} – Can take apart and put together pagenames in several ways.
  • {{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.
  • {{IP-talk}} - Return: 1) IP user talk page 2) registered user talk page 3) not user talk page.

Easy to use namespace-detection templates:

More complex namespace-detection templates:

Technical stuff: