మూస:Namespace and pagename-detecting templates: కూర్పుల మధ్య తేడాలు

add links
Derived from {{[Namespace/Pagename] detect see-also}}
పంక్తి 1:
{{Navbox
Pagename-handling and detection templates:
| name = Namespace and pagename-detecting templates
| state = {{{state|{{{1|<noinclude>expanded</noinclude>}}}}}}
| title = Namespace and pagename-detecting templates
 
| group1 = [[Wikipedia:Namespace|Namespace]]
* {{tl|basepage subpage}} – For detecting if on a basepage, subpage or subsubpage.
| list1 =
* {{tl|pgn}} – Can take apart and put together pagenames in several ways.
{{Navbox |child |groupstyle=font-weight:normal;
* {{tl|if pagename}} – For pattern matching on the pagename.
| group1 = "''X'' other"{{thinsp}}{{smallsup|1}}
* {{tl|if pagename multi}} – For pattern matching on the pagename, has input reuse.
| list1 = {{startflatlist}}
* {{tl|IP-talk}} – Return: 1) IP user talk page 2) registered user talk page 3) not user talk page.
* {{tltlbare|IP-usermain other}} – For detecting IP-user pages.
* {{tlbare|talk other}}
* {{tlbare|book other}}
* {{tlbare|category other}}
* {{tlbare|draft other}}
* {{tlbare|file other}}
* {{tlbare|help other}}
* {{tlbare|module other}}
* {{tlbare|portal other}}
* {{tlbare|template other}}
* {{tlbare|user other}}
* {{tlbare|wikipedia other}}
{{endflatlist}}
| group2 = More generic
| list2 = {{startflatlist}}
* {{tltlbare|namespace detect}} – The very versatile one.
* {{tlbare|namespace detect showall}}
* {{tltlbare|main talk category other}} – Separates some namespaces.
* {{tlbare|main talk other}}
* {{tlbare|talkspace detect}}
}}
 
<!---group2 omitted to maintain alternating list backgrounds--->
Easy to use namespace-detection templates:
 
| group3 = [[Wikipedia:Page name|Pagename]]
* {{tl|main other}} – For article templates.
| list3 =
* {{tl|talk other}} – For talk page templates.
{{Aligned table
* {{tl|book other}} – For detecting book pages.
|style=text-align:left;line-height:1.3em;
* {{tl|category other}} – For category templates.
|col1style=padding-right:1.5em;
* {{tl|draft other}} – For detecting draft pages.
| {{tlbare|when on basepage}} | Detects and acts according to whether it is on a basepage, subpage, subsubpage or beyond.
* {{tl|file other}} – For file (image) templates.
* | {{tltlbare|pgn}} | Can take apart and put together pagenames in several ways.
* {{tl|help other}} – For help page templates.
* | {{tltlbare|moduleif otherpagename}} | For detectingpattern matching on modulethe pagespagename.
* | {{tltlbare|if pagename multi}} | For pattern matching on the pagename, has input reuse.
* {{tl|portal other}} – For portal templates.
| {{tlbare|IP-talk}} | Returns IP-user talkpage, registered-user talkpage or non-user talkpage.
* {{tl|template other}} – For detecting template pages.
* | {{tltlbare|IP-user other}} | For userdetecting pageIP-user templatespages.
}}
* {{tl|wikipedia other}} – For detecting "Wikipedia:" pages.
 
| list5 = <div class="navbox-abovebelow" style="font-size:90%;">{{smallsup|1}} Detect and act according to whether they are on a page in the namespace ''X'' or elsewhere.</div>
More complex namespace-detection templates:
 
| below = {{startflatlist}}
* {{tl|namespace detect}} – The very versatile one.
* [[Wikipedia:Namespace]]
* {{tl|namespace detect showall}} – The extremely versatile one, has input reuse.
* [[Wikipedia:Page name]]
* {{tl|main talk category other}} – Separates some namespaces.
* [[mw:Help:Magic words|Magic words]]
* {{tl|main talk other}} – Separates some namespaces.
* [[mw:Help:Extension:ParserFunctions|ParserFunctions]]
* {{tl|talkspace detect}} – For detecting talk pages on various namespaces.
{{endflatlist}}
 
}}<noinclude>
Technical stuff:
{{Documentation}}
| content =
{{Collapsible option |statename=optional}}
 
* [[WikipediaCategory:Namespace]] manipulation Liststemplates| all the namespaces.]]
[[Category:Documentation see also templates]]
* [[mw:Help:Magic words]] – About <code><nowiki>{{NAMESPACE}}</nowiki></code> etc.
[[Category:Template namespace templates]]
* [[mw:Help:Extension:ParserFunctions]] – About <code><nowiki>{{#ifeq:|||}}</nowiki></code> etc.<noinclude>
}}<!--(end Documentation)-->
{{Documentation}}
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
</noinclude>
"https://te.wikipedia.org/wiki/మూస:Namespace_and_pagename-detecting_templates" నుండి వెలికితీశారు