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

From Zoophilia Wiki
Jump to navigationJump to search
meta>Fred Gandt
Adding {{IP-talk}}/{{Ipt}}
meta>Set theorist
adding matching entries from {{namespace detect see also}}
Line 26: Line 26:
* {{tl|namespace detect showall}} – The extremely versatile one, has input reuse.
* {{tl|namespace detect showall}} – The extremely versatile one, has input reuse.
* {{tl|talkspace detect}} - For detecting talk pages on various namespaces.
* {{tl|talkspace detect}} - For detecting talk pages on various namespaces.
* {{tl|main talk other}} – Separates some namespaces.
* {{tl|main talk category other}} – Separates some namespaces.


Technical stuff:
Technical stuff:


* [[Wikipedia:Namespace]] – Lists all the namespaces.
* [[mw:Help:Magic words]] – About <code><nowiki>{{NAMESPACE}}</nowiki></code> etc.
* [[mw:Help:Magic words]] – About <code><nowiki>{{NAMESPACE}}</nowiki></code> etc.
* [[mw:Help:Extension:ParserFunctions]] – About <code><nowiki>{{#ifeq:|||}}</nowiki></code> etc.<noinclude>
* [[mw:Help:Extension:ParserFunctions]] – About <code><nowiki>{{#ifeq:|||}}</nowiki></code> etc.<noinclude>

Revision as of 21:14, 17 April 2012

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: