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

From Zoophilia Wiki
Jump to navigationJump to search
meta>Davidgothberg
Adding {{pgn}}.
meta>Davidgothberg
Adding {{book other}}.
Line 17: Line 17:
* {{tl|category other}} – For category templates.
* {{tl|category other}} – For category templates.
* {{tl|portal other}} – For portal templates.
* {{tl|portal other}} – For portal templates.
* {{tl|book other}} – For detecting book pages.


More complex namespace-detection templates:
More complex namespace-detection templates:

Revision as of 03:36, 30 December 2009

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.

Easy to use namespace-detection templates:

More complex namespace-detection templates:

Technical stuff: