Difference between revisions of "Template:Editnotice subpages"

From blackwiki
Jump to navigation Jump to search
imported>Bencherlite
(8 subpages)
imported>Bencherlite
m (Reverted edits by Bencherlite (talk) to last version by WOSlinker)
Line 1: Line 1:
 
<!--
 
<!--
 
    
 
    
Example: ns:Foo/s1/s2/s3/s4/s5/s6/s7/s8
+
Example: ns:Foo/s1/s2/s3/s4/s5/s6
  
 
-->{{#if:
 
-->{{#if:
     {{#ifeq:{{lc:{{{on base|y}}}}}|no||{{#ifeq: {{#titleparts:{{FULLPAGENAME}}|  0 | 2 }} | {{{1}}} | y }} <!--test s1/s2/s3/s4/s5/s6/s7/s8; only if {{{on base}}}!=no-->
+
     {{#ifeq:{{lc:{{{on base|y}}}}}|no||{{#ifeq: {{#titleparts:{{FULLPAGENAME}}|  0 | 2 }} | {{{1}}} | y }} <!--test s1/s2/s3/s4/s5/s6; only if {{{on base}}}!=no-->
   }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -1 | 2 }} | {{{1}}} | y <!--test s1/s2/s3/s4/s5/s6/s7/s8-->
+
   }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -1 | 2 }} | {{{1}}} | y <!--test s1/s2/s3/s4/s5-->
   }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -2 | 2 }} | {{{1}}} | y <!--test s1/s2/s3/s4/s5/s6/s7-->
+
   }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -2 | 2 }} | {{{1}}} | y <!--test s1/s2/s3/s4-->
   }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -3 | 2 }} | {{{1}}} | y <!--test s1/s2/s3/s4/s5/s6-->
+
   }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -3 | 2 }} | {{{1}}} | y <!--test s1/s2/s3-->
   }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -4 | 2 }} | {{{1}}} | y <!--test s1/s2/s3/s4/s5-->
+
   }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -4 | 2 }} | {{{1}}} | y <!--test s1/s2-->
   }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -5 | 2 }} | {{{1}}} | y <!--test s1/s2/s3/s4-->
+
   }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -5 | 2 }} | {{{1}}} | y <!--test s1-->
  }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -6 | 2 }} | {{{1}}} | y <!--test s1/s2/s3-->
 
  }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -7 | 2 }} | {{{1}}} | y <!--test s1/s2-->
 
  }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -8 | 2 }} | {{{1}}} | y <!--test s1-->
 
 
   }}
 
   }}
 
   | {{Template:Editnotices/Group/{{FULLROOTPAGENAME}}/{{{1}}}}}
 
   | {{Template:Editnotices/Group/{{FULLROOTPAGENAME}}/{{{1}}}}}

Revision as of 12:14, 26 July 2011

Template documentation[view] [edit] [history] [purge]

Template loads the group editnotice for one of its existing subpages, specified in {{{1}}}, the first unnamed parameter.

Example: {{Editnotices/Group/Wikipedia:In the news}} is the group editnotice for Wikipedia:In the news. It makes a call to {{Editnotice subpages}} with |1=Candidates, which loads {{Editnotices/Group/Wikipedia:In the news/Candidates}} for its subpages.

Usage

  • {{Editnotice subpages|subpage}}

or

  • {{Editnotice subpages|subpage/subpage2}}

etc.

Parameters

  • |1= supports loading subpage group editnotices with a maximum depth of 6.
  • If |on base=no, the subpage group editnotice is shown only on subpages of {{FULLROOTPAGENAME}}/{{{1}}}, not on that page itself.