Template:Namespace and pagename-detecting templates: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Sardanaphalus m brackets |
meta>Sardanaphalus subgroup name, footnote |
||
Line 11: | Line 11: | ||
|groupstyle=font-weight:normal; | |groupstyle=font-weight:normal; | ||
|listclass=hlist | |listclass=hlist | ||
| group1 = "When on [ns] page"{{padlssup|1}} | |||
| group1 = "When on | |||
| list1 = | | list1 = | ||
* {{tlbare|When in article}} ({{tlbare|main other}}) | * {{tlbare|When in article}} ({{tlbare|main other}}) | ||
Line 39: | Line 38: | ||
| group3 = [[Wikipedia:Page name|Pagename]] | | group3 = [[Wikipedia:Page name|Pagename]] | ||
| list3 = | | 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|When pagename is}} | For pattern matching on the pagename. | |||
| {{tlbare|When on page}} | For pattern matching on the pagename with input reuse. | |||
| {{tlbare|pgn}} | Can take apart and put together pagenames in several ways. | |||
| {{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">{{ | | list5 = <div class="navbox-abovebelow hlist"> | ||
* {{sup|1}} Where "[ns]" is the name of a [[Wikipedia:Namespace|Wikipedia namespace]] ("user", "wikipedia", etc), i.e. templates that act according to whether they are on a page in a particular namespace or elsewhere ("other"). | |||
</div> | |||
| belowclass = hlist | | belowclass = hlist |
Revision as of 09:46, 9 December 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