Difference between revisions of "Template:Namespace detect see also"
(Adding {{IP-talk}}/{{Ipt}}) |
RealRecipes (talk | contribs) m (1 revision: 7) |
||
| Line 1: | Line 1: | ||
Easy to use namespace-detection templates: | Easy to use namespace-detection templates: | ||
| − | * {{tl|main other}} – For | + | * {{tl|main other}} – For book page templates. |
* {{tl|talk other}} – For talk page templates. | * {{tl|talk other}} – For talk page templates. | ||
* {{tl|user other}} – For user page templates. | * {{tl|user other}} – For user page templates. | ||
| − | * {{tl| | + | * {{tl|wikibooks other}} – For project page templates. |
| + | * {{tl|subject other}} - For subject page templates. | ||
* {{tl|file other}} – For file (image) templates. | * {{tl|file other}} – For file (image) templates. | ||
* {{tl|template other}} – For detecting template pages. | * {{tl|template other}} – For detecting template pages. | ||
* {{tl|help other}} – For help page templates. | * {{tl|help other}} – For help page templates. | ||
* {{tl|category other}} – For category templates. | * {{tl|category other}} – For category templates. | ||
| − | * {{tl| | + | * {{tl|wikijunior other}} – For Wikijunior templates. |
| − | * {{tl| | + | * {{tl|cookbook other}} – For Cookbook templates. |
More complex namespace-detection templates: | More complex namespace-detection templates: | ||
* {{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. | ||
* {{tl|main talk other}} – Separates some namespaces. | * {{tl|main talk other}} – Separates some namespaces. | ||
| Line 21: | Line 22: | ||
Pagename-handling and detection templates: | Pagename-handling and detection templates: | ||
| − | * {{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|IP-user other}} – For detecting IP-user pages.<noinclude> | |
| − | * {{tl|IP-user other}} – For detecting IP-user pages | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
{{documentation}} | {{documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> | ||
Revision as of 16:50, 22 March 2012
Easy to use namespace-detection templates:
- {{main other}} – For book page templates.
- {{talk other}} – For talk page templates.
- {{user other}} – For user page templates.
- {{wikibooks other}} – For project page templates.
- {{subject other}} - For subject page templates.
- {{file other}} – For file (image) templates.
- {{template other}} – For detecting template pages.
- {{help other}} – For help page templates.
- {{category other}} – For category templates.
- {{wikijunior other}} – For Wikijunior templates.
- {{cookbook other}} – For Cookbook 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.
- {{main talk other}} – Separates some namespaces.
Pagename-handling and detection templates:
- {{basepage subpage}} – For detecting if on a basepage, subpage, or subsubpage.
- {{if pagename}} – For pattern matching on the pagename.
- {{IP-user other}} – For detecting IP-user pages.
[create]
Template documentation
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |