Difference between revisions of "Template:Namespace detect see also"
From Ava Zinn Wiki
[unchecked revision] | [unchecked revision] |
(Adding {{pgn}} to the "Pagename-handling and detection templates" section.) |
(Adding {{book other}} for the new "Book:" namespace.) |
||
Line 10: | Line 10: | ||
* {{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 23:26, 29 December 2009
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.
- {{book other}} – For detecting book pages.
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:
- {{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.
Technical stuff:
- Wikipedia:Namespace – Lists all the namespaces.
- mw:Help:Magic words – About
{{NAMESPACE}}
etc. - mw:Help:Extension:ParserFunctions – About
{{#ifeq:|||}}
etc.
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |