Template:Namespace and pagename-detecting templates: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Davidgothberg This template will be used in the see also section of the pagename-detection templates. |
meta>Davidgothberg Change of wording. |
||
Line 3: | Line 3: | ||
* {{tl|basepage subpage}} – For detecting if on a basepage, subpage or subsubpage. | * {{tl|basepage subpage}} – For detecting if on a basepage, subpage or subsubpage. | ||
* {{tl|if pagename}} – For pattern matching on the pagename. | * {{tl|if pagename}} – For pattern matching on the pagename. | ||
* {{tl|if pagename multi}} – For pattern matching on the pagename, | * {{tl|if pagename multi}} – For pattern matching on the pagename, has input reuse. | ||
Easy to use namespace-detection templates: | Easy to use namespace-detection templates: | ||
Line 20: | Line 20: | ||
* {{tl|namespace detect}} – The very versatile one. | * {{tl|namespace detect}} – The very versatile one. | ||
* {{tl|namespace detect showall}} – The extremely versatile one, | * {{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. | ||
Revision as of 00:41, 14 November 2009
Pagename-detection templates:
- {{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:
- {{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.
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.