Template:Basepage subpage: Difference between revisions

Jump to navigation Jump to search
m
typo
(Based on en WP:Template:Basepage subpage. This template is used by Template:Category handler)
 
m (typo)
 
Line 63: Line 63:


== Alternatives ==
== Alternatives ==
A subpage can be detected without using a template using the parser functions #if: and #titlepage: like below:
A subpage can be detected without using a template using the parser functions #if: and #titleparts: like below:
  <nowiki>{{#ifeq: {{#titleparts:{{PAGENAME}}|1|1}} | {{PAGENAME}}  
  <nowiki>{{#ifeq: {{#titleparts:{{PAGENAME}}|1|1}} | {{PAGENAME}}  
| ...then on base page...
| ...then on base page...

Navigation menu