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

From Zoophilia Wiki
Jump to navigationJump to search
meta>Sardanaphalus
m brackets
Ookami (talk | contribs)
m 41 revisions imported
 
(23 intermediate revisions by 9 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
 
  | group1style = line-height:1.25em;
   | group1 = Particular
   | group1 = "When on ''ns'' page"<br/>{{nobold|("''ns'' other"{{padlssup|1}})}}
   | list1 =
   | list1 =
* {{tlbare|When in article}}&nbsp;({{tlbare|main other}})
* {{tlbare|Main other}}
* {{tlbare|When on talk page}}&nbsp;({{tlbare|talk other}})
* {{tlbare|Talk other}}
* {{tlbare|book other}}
* {{tlbare|Book other}}
* {{tlbare|category other}}
* {{tlbare|Category other}}
* {{tlbare|draft other}}
* {{tlbare|Draft other}}
* {{tlbare|file other}}
* {{tlbare|File other}}
* {{tlbare|help other}}
** {{tlbare|Is Commons}}
* {{tlbare|module other}}
* {{tlbare|Help other}}
* {{tlbare|portal other}}
* {{tlbare|Module other}}
* {{tlbare|When on template page}}&nbsp;({{tlbare|template other}})
* {{tlbare|Portal other}}
* {{tlbare|When on user page}}&nbsp;({{tlbare|user other}})
* {{tlbare|Template other}}
* {{tlbare|wikipedia other}}
* {{tlbare|User other}}
* {{tlbare|Wikipedia other}}
* {{tlbare|Single namespace}}
* {{tlbare|If talkspace of}}
* {{tlbare|If usertalk of}}
   | group2 = More generic
   | group2 = More generic
   | list2 =
   | list2 =
* {{tlbare|When in namespace}}&nbsp;({{tlbare|namespace detect}})
* {{tlbare|Namespace detect}}
* {{tlbare|namespace detect showall}}
* {{tlbare|Namespace detect showall}}
* {{tlbare|main talk category other}}
* {{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}} | 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}} | For pattern matching on the pagename.
  | group2 = {{tlbare|Preview other}}
  | {{tlbare|When on page}}    | For pattern matching on the pagename with input reuse.
   | list2 = Detects whether page is viewed as a preview or not.  
  | {{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">{{smallsup|1}} Detect and act according to whether they are on a page in the namespace ''ns'' or elsewhere.</div>
| belowclass = hlist
| below =
| below =
* [[Wikipedia:Namespace]]
* [[Wikipedia:Namespace]]
Line 60: Line 76:


}}<noinclude>
}}<noinclude>
{{Documentation
{{documentation}}
| content =
{{Collapsible option |statename=optional}}
 
[[Category:Namespace manipulation templates| ]]
[[Category:Documentation see also templates]]
[[Category:Template namespace templates]]
}}<!--(end Documentation)-->
</noinclude>
</noinclude>

Latest revision as of 04:48, 3 September 2020