Difference between revisions of "Template:Editnotice subpages"
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 | + | 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 | + | {{#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 | + | }}{{#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 | + | }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -2 | 2 }} | {{{1}}} | y <!--test s1/s2/s3/s4--> |
− | }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -3 | 2 }} | {{{1}}} | y <!--test s1/s2/s3 | + | }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -3 | 2 }} | {{{1}}} | y <!--test s1/s2/s3--> |
− | }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -4 | 2 }} | {{{1}}} | y <!--test s1/s2 | + | }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -4 | 2 }} | {{{1}}} | y <!--test s1/s2--> |
− | }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -5 | + | }}{{#ifeq: {{#titleparts:{{FULLPAGENAME}}| -5 | 2 }} | {{{1}}} | y <!--test s1--> |
− | |||
− | |||
− | |||
}} | }} | ||
| {{Template:Editnotices/Group/{{FULLROOTPAGENAME}}/{{{1}}}}} | | {{Template:Editnotices/Group/{{FULLROOTPAGENAME}}/{{{1}}}}} |
Revision as of 12:14, 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. |