Template:Namespace and pagename-detecting templates: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>NSH002 keep the documented templates from cluttering up the hlist tracking category |
meta>Sardanaphalus padlssup, template name updates, list5 formatting, class/listclass/belowclass |
||
Line 2: | Line 2: | ||
| name = Namespace and pagename-detecting templates | | name = Namespace and pagename-detecting templates | ||
| state = {{{state|{{{1|<noinclude>expanded</noinclude>}}}}}} | | state = {{{state|{{{1|<noinclude>expanded</noinclude>}}}}}} | ||
| class = plainlist | |||
| title = Namespace and pagename-detecting templates | | title = Namespace and pagename-detecting templates | ||
| tracking = no <!-- keep | | tracking = no <!--(to keep documented templates out of hlist tracking category)--> | ||
| group1 = [[Wikipedia:Namespace|Namespace]] | | group1 = [[Wikipedia:Namespace|Namespace]] | ||
| list1 = | | list1 = | ||
{{Navbox |child |groupstyle=font-weight:normal; | {{Navbox |child | ||
| group1 = "''X'' other"{{ | |groupstyle=font-weight:normal; | ||
| list1 = | |listclass=hlist | ||
| group1 = "''X'' other"{{padlssup|1}} | |||
| list1 = | |||
* {{tlbare|main other}} | * {{tlbare|main other}} | ||
* {{tlbare|talk other}} | * {{tlbare|talk other}} | ||
Line 22: | Line 25: | ||
* {{tlbare|user other}} | * {{tlbare|user other}} | ||
* {{tlbare|wikipedia other}} | * {{tlbare|wikipedia other}} | ||
| group2 = More generic | | group2 = More generic | ||
| list2 = | | list2 = | ||
* {{tlbare|namespace detect}} | * {{tlbare|namespace detect}} | ||
* {{tlbare|namespace detect showall}} | * {{tlbare|namespace detect showall}} | ||
Line 39: | Line 41: | ||
|style=text-align:left;line-height:1.3em; | |style=text-align:left;line-height:1.3em; | ||
|col1style=padding-right:1.5em; | |col1style=padding-right:1.5em; | ||
| {{tlbare|when on basepage}} | | {{tlbare|when on basepage}} | Detects and acts according to whether it is on a basepage, subpage, subsubpage or beyond. | ||
| {{tlbare| | | {{tlbare|when pagename is}} | For pattern matching on the pagename. | ||
| {{tlbare| | | {{tlbare|when on page}} | For pattern matching on the pagename with input reuse. | ||
| {{tlbare| | | {{tlbare|pgn}} | Can take apart and put together pagenames in several ways. | ||
| {{tlbare|IP-talk}} | | {{tlbare|IP-talk}} | Returns IP-user talkpage, registered-user talkpage or non-user talkpage. | ||
| {{tlbare|IP-user other}} | | {{tlbare|IP-user other}} | For detecting IP-user pages. | ||
}} | }} | ||
| list5 = <div class="navbox-abovebelow | | list5 = <div class="navbox-abovebelow">{{smallsup|1}} Detect and act according to whether they are on a page in the namespace ''X'' or elsewhere.</div> | ||
| below = | | belowclass = hlist | ||
| below = | |||
* [[Wikipedia:Namespace]] | * [[Wikipedia:Namespace]] | ||
* [[Wikipedia:Page name]] | * [[Wikipedia:Page name]] | ||
* [[mw:Help:Magic words|Magic words]] | * [[mw:Help:Magic words|Magic words]] | ||
* [[mw:Help:Extension:ParserFunctions|ParserFunctions]] | * [[mw:Help:Extension:ParserFunctions|ParserFunctions]] | ||
}}<noinclude> | }}<noinclude> |
Revision as of 12:13, 7 November 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