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 the documented templates out of the hlist tracking category -->
| 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"{{thinsp}}{{smallsup|1}}
  |groupstyle=font-weight:normal;
   | list1 = {{startflatlist}}
  |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}}
{{endflatlist}}
   | group2 = More generic
   | group2 = More generic
   | list2 = {{startflatlist}}
   | 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}} | Detects and acts according to whether it is on a basepage, subpage, subsubpage or beyond.
   | {{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|when pagename is}} | For pattern matching on the pagename.
   | {{tlbare|if pagename}}       | For pattern matching on the pagename.
   | {{tlbare|when on page}}     | For pattern matching on the pagename with input reuse.
   | {{tlbare|if pagename multi}} | For pattern matching on the pagename, has 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-talk}}         | Returns IP-user talkpage, registered-user talkpage or non-user talkpage.
   | {{tlbare|IP-user other}}     | For detecting IP-user pages.
   | {{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>
| 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 = {{startflatlist}}
| 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]]
{{endflatlist}}


}}<noinclude>
}}<noinclude>

Revision as of 12:13, 7 November 2014