Template:Namespace and pagename-detecting templates: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Funandtrvl add links |
meta>Sardanaphalus Derived from {{[Namespace/Pagename] detect see-also}} |
||
Line 1: | Line 1: | ||
{{Navbox | |||
| name = Namespace and pagename-detecting templates | |||
| state = {{{state|{{{1|<noinclude>expanded</noinclude>}}}}}} | |||
| title = Namespace and pagename-detecting templates | |||
* {{ | | group1 = [[Wikipedia:Namespace|Namespace]] | ||
* {{ | | list1 = | ||
* {{ | {{Navbox |child |groupstyle=font-weight:normal; | ||
* {{ | | group1 = "''X'' other"{{thinsp}}{{smallsup|1}} | ||
* {{ | | list1 = {{startflatlist}} | ||
* {{ | * {{tlbare|main other}} | ||
* {{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}} | |||
* {{tlbare|namespace detect}} | |||
* {{tlbare|namespace detect showall}} | |||
* {{tlbare|main talk category other}} | |||
* {{tlbare|main talk other}} | |||
* {{tlbare|talkspace detect}} | |||
}} | |||
<!---group2 omitted to maintain alternating list backgrounds---> | |||
| group3 = [[Wikipedia:Page name|Pagename]] | |||
| list3 = | |||
{{Aligned table | |||
|style=text-align:left;line-height:1.3em; | |||
|col1style=padding-right:1.5em; | |||
| {{tlbare|when on basepage}} | Detects and acts according to whether it is on a basepage, subpage, subsubpage or beyond. | |||
| {{tlbare|pgn}} | Can take apart and put together pagenames in several ways. | |||
| {{tlbare|if pagename}} | For pattern matching on the pagename. | |||
| {{tlbare|if pagename multi}} | For pattern matching on the pagename, has input reuse. | |||
| {{tlbare|IP-talk}} | Returns IP-user talkpage, registered-user talkpage or non-user talkpage. | |||
| {{tlbare|IP-user other}} | For detecting IP-user 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> | |||
| below = {{startflatlist}} | |||
* | * [[Wikipedia:Namespace]] | ||
* | * [[Wikipedia:Page name]] | ||
* | * [[mw:Help:Magic words|Magic words]] | ||
* [[mw:Help:Extension:ParserFunctions|ParserFunctions]] | |||
{{endflatlist}} | |||
}}<noinclude> | |||
{{Documentation | |||
| content = | |||
{{Collapsible option |statename=optional}} | |||
[[Category:Namespace manipulation templates| ]] | |||
[[Category:Documentation see also templates]] | |||
[[Category:Template namespace templates]] | |||
}}<!--(end Documentation)--> | |||
<!-- | |||
</noinclude> | </noinclude> |
Revision as of 10:54, 30 September 2014
Template documentation
Initial visibility: currently defaults to autocollapse
To set this template's initial visibility, the |state=
parameter may be used:
|state=collapsed
–{{Namespace and pagename-detecting templates|state=collapsed}}
to show the template collapsed, i.e., hidden, save for its title bar.|state=expanded
–{{Namespace and pagename-detecting templates|state=expanded}}
to show the template expanded, that is, fully visible.|state=autocollapse
–{{Namespace and pagename-detecting templates|state=autocollapse}}</nowiki>
If the |state=
parameter in the template on this page is not set, the template's initial visibility is taken from the |default=
parameter in the {{Collapsible option}}
template.
- For the template on this page, that currently evaluates to
autocollapse
.
- For the template on this page, that currently evaluates to