Template:Subpages: Difference between revisions
Jump to navigation
Jump to search
>Illviljan mNo edit summary |
m (8 revisions imported) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
|tables = _pageData | |tables = _pageData | ||
|fields = {{#if: {{{count|}}} |COUNT(DISTINCT _pageData._pageName) |_pageData._pageName}} | |fields = {{#if: {{{count|}}} |COUNT(DISTINCT _pageData._pageName) |_pageData._pageName}} | ||
|where = _pageData._pageName LIKE "{{{page|{{FULLPAGENAME}}}}}/%" | |where = _pageData._pageName LIKE "{{{page|{{#ifeq:{{lc:{{SUBPAGENAME}}}}|doc|{{SUBJECTSPACE}}:{{BASEPAGENAME}}|{{FULLPAGENAME}}}}}}}/%" {{yesno|{{{show_redirects|yes}}}|yes=|no=AND NOT _pageData._isRedirect}} | ||
|format = ul | |format = ul | ||
}} | }} | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
{{ | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 19:03, 25 September 2024
Links subpages.
Parameters
Parameter | Required | Description |
---|---|---|
page | Page to check for subpages. Defaults to {{FULLPAGENAME}} .
| |
count | Count the number of subpages. | |
show_redirects | Whether to list redirect pages. Default: yes | |
columns | Number of columns in the list. Defaults to 4. |
Examples
{{Subpages|page=Template:Cargo}}
yields
The above documentation is transcluded from Template:Subpages/doc.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.