Template:Namespace and pagename-detecting templates: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Frietjes
No edit summary
Ookami (talk | contribs)
m 41 revisions imported
 
(15 intermediate revisions by 6 users not shown)
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
| bodyclass=hlist
| title = Namespace and pagename-detecting templates
| title = Namespace and pagename-detecting templates
| tracking = no <!--(to keep documented templates out of hlist tracking category)-->


| group1 = [[Wikipedia:Namespace|Namespace]]
| group1 = [[Wikipedia:Namespace|Namespace]]
Line 10: Line 9:
  {{Navbox |child
  {{Navbox |child
   |groupstyle=font-weight:normal;
   |groupstyle=font-weight:normal;
  |listclass=hlist
 
   | group1 = Particular
   | group1 = Particular
   | list1 =
   | list1 =
* {{tlbare|Main other}}&nbsp;({{tlbare|When in article}})
* {{tlbare|Main other}}
* {{tlbare|Talk other}}&nbsp;({{tlbare|When on talk page}})
* {{tlbare|Talk other}}
* {{tlbare|Book other}}
* {{tlbare|Book other}}
* {{tlbare|Category other}}
* {{tlbare|Category other}}
* {{tlbare|Draft other}}
* {{tlbare|Draft other}}
* {{tlbare|File other}}&nbsp;({{tlbare|Is Commons}})
* {{tlbare|File other}}
** {{tlbare|Is Commons}}
* {{tlbare|Help other}}
* {{tlbare|Help other}}
* {{tlbare|Module other}}
* {{tlbare|Module other}}
* {{tlbare|Portal other}}
* {{tlbare|Portal other}}
* {{tlbare|Template other}}&nbsp;({{tlbare|When on template page}})
* {{tlbare|Template other}}
* {{tlbare|User other}}&nbsp;({{tlbare|When on user page}})
* {{tlbare|User other}}
* {{tlbare|Wikipedia other}}
* {{tlbare|Wikipedia other}}
* {{tlbare|Single namespace}}
* {{tlbare|Single namespace}}
Line 30: Line 30:
   | group2 = More generic
   | group2 = More generic
   | list2 =
   | list2 =
* {{tlbare|Namespace detect}}&nbsp;({{tlbare|When in namespace}})
* {{tlbare|Namespace detect}}
* {{tlbare|Namespace detect showall}}
* {{tlbare|Namespace detect showall}}
* {{tlbare|Main talk other}}
* {{tlbare|Main talk other}}
** {{tlbare|Main talk other flex}}
* {{tlbare|Talkspace detect}}
* {{tlbare|Talkspace detect}}
  }}
  }}


<!---group2 omitted to maintain alternating list backgrounds--->
| group2 = [[Wikipedia:Page name|Pagename]]
| list2 = {{navbox|subgroup
  | groupstyle = line-height:1.2em; font-weight:normal; background:transparent;
  | liststyle = line-height:1.2em
  | group1 = {{tlbare|When on basepage}}
  | list1 = Detects and acts according to whether it is on a basepage ''or'' on any subpage (that is, a <code>../..</code> subpage).
  | group2 = {{tlbare|When pagename is}}
  | list2  = For pattern matching on the pagename.
  | group3 = [[Module:Page]]
  | list3  = Can take apart and put together pagenames in several ways.
  | group4 = {{tlbare|IP-talk}}
  | list4  = Returns IP-user talkpage, registered-user talkpage or non-user talkpage.
  | group5 = {{tlbare|IP-user other}}
  | list5  = For detecting IP-user pages.
  | group6 = {{tlbare|Subpage other}}
  | list6  = Pagename has an after-slash part (not in mainspace)
  | group7 = {{tlbare|Sandbox other}}
  | list7  = Page is subpage /sandbox (template space)
  | group8 = {{tlbare|Testcases other}}
  | list8  = Page is subpage /testcases (template space)
}}


| group3 = [[Wikipedia:Page name|Pagename]]
| group3 = Others
| list3 =
| list3 = {{navbox|subgroup
  {{Aligned table
  | groupstyle = line-height:1.2em; font-weight:normal; background:transparent;
  |style=text-align:left;line-height:1.3em;
  | liststyle = line-height:1.2em
  |col1style=padding-right:1.5em;
   | group1 = {{tlbare|Stub other}}
   | {{tlbare|When on basepage}}&nbsp;({{tlbare|Basepage subpage}}) | Detects and acts according to whether it is on a basepage, subpage, subsubpage or beyond.
  | list1 = Detects whether it is on a page with a stub template or not.  
   | {{tlbare|When pagename is}}&nbsp;({{tlbare|If pagename}}) | For pattern matching on the pagename.
   | group2 = {{tlbare|Preview other}}
  | {{tlbare|pgn}}             | Can take apart and put together pagenames in several ways.
   | list2 = Detects whether page is viewed as a preview or not.  
   | {{tlbare|IP-talk}}          | Returns IP-user talkpage, registered-user talkpage or non-user talkpage.
}}
  | {{tlbare|IP-user other}}    | For detecting IP-user pages.
  }}


| belowclass = hlist
| below =
| below =
* [[Wikipedia:Namespace]]
* [[Wikipedia:Namespace]]
Line 58: Line 76:


}}<noinclude>
}}<noinclude>
{{Documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 04:48, 3 September 2020