ढाँचा:Main talk category other
This is the {{main talk category other}} template.
It helps other templates detect what type of page they are on.
Basic usage
सम्पादन गर्नुहोस्This template usually takes four parameters, like this:
{{main talk category other|Article text|Talk text|Category text|Other text}}
If the template is on for instance any kind of talk page, it will return this:
- Talk text
If the template is on a page that is not an article (main space), talk page or category page, then it will return this:
- Other text
Some of the parameters can be left empty and the template will then not return anything if it is on that kind of page.
Advanced usage
सम्पादन गर्नुहोस्This template works like {{main talk other}}, see full documentation there. Note that it detects "Category talk:" pages as type talk, not as type category. The test parameter demospace for this template understands the values main, talk, category and other.
See also
सम्पादन गर्नुहोस्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.
- {{IP-user other}} – For detecting IP-user pages.
Technical stuff:
- Wikipedia:Namespace – Lists all the namespaces.
- mw:Help:Magic words – About
{{NAMESPACE}}
etc. - mw:Help:Extension:ParserFunctions – About
{{#ifeq:|||}}
etc.