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

From Zoophilia Wiki
Jump to navigationJump to search
meta>Funandtrvl
organize
meta>Funandtrvl
add links
Line 14: Line 14:
* {{tl|book other}} – For detecting book pages.
* {{tl|book other}} – For detecting book pages.
* {{tl|category other}} – For category templates.
* {{tl|category other}} – For category templates.
* {{tl|draft other}} – For detecting draft pages.
* {{tl|file other}} – For file (image) templates.
* {{tl|file other}} – For file (image) templates.
* {{tl|help other}} – For help page templates.
* {{tl|help other}} – For help page templates.
* {{tl|module other}} – For detecting module pages.
* {{tl|portal other}} – For portal templates.
* {{tl|portal other}} – For portal templates.
* {{tl|template other}} – For detecting template pages.
* {{tl|template other}} – For detecting template pages.

Revision as of 15:25, 2 September 2014

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-talk}} – Return: 1) IP user talk page 2) registered user talk page 3) not user talk page.
  • {{IP-user other}} – For detecting IP-user pages.

Easy to use namespace-detection templates:

More complex namespace-detection templates:

Technical stuff: