Difference between revisions of "Template:Editnotice subpages"
Jump to navigation
Jump to search
imported>WOSlinker (remove {{pp-template}}) |
imported>Bencherlite (8 subpages) |
||
Line 1: | Line 1: | ||
<!-- | <!-- | ||
− | Example: ns:Foo/s1/s2/s3/s4/s5/s6 | + | Example: ns:Foo/s1/s2/s3/s4/s5/s6/s7/s8 |
-->{{#if: | -->{{#if: | ||
− | {{#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:{{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: {{#titleparts:{{FULLPAGENAME}}| -1 | 2 }} | {{{1}}} | y <!--test s1/s2/s3/s4/s5--> | + | }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -1 | 2 }} | {{{1}}} | y <!--test s1/s2/s3/s4/s5/s6/s7/s8--> |
− | }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -2 | 2 }} | {{{1}}} | y <!--test s1/s2/s3/s4--> | + | }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -2 | 2 }} | {{{1}}} | y <!--test s1/s2/s3/s4/s5/s6/s7--> |
− | }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -3 | 2 }} | {{{1}}} | y <!--test s1/s2/s3--> | + | }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -3 | 2 }} | {{{1}}} | y <!--test s1/s2/s3/s4/s5/s6--> |
− | }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -4 | 2 }} | {{{1}}} | y <!--test s1/s2--> | + | }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -4 | 2 }} | {{{1}}} | y <!--test s1/s2/s3/s4/s5--> |
− | }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -5 | 2 }} | {{{1}}} | y <!--test s1--> | + | }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -5 | 2 }} | {{{1}}} | y <!--test s1/s2/s3/s4--> |
+ | }}{{#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:12, 26 July 2011
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.
The above documentation is transcluded from Template:Editnotice subpages/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |