Template:Subpages: Difference between revisions
Jump to navigation
Jump to search
>Illviljan mNo edit summary |
>Illviljan mNo edit summary |
||
| Line 2: | Line 2: | ||
{{#cargo_query: | {{#cargo_query: | ||
|tables = _pageData | |tables = _pageData | ||
|fields = {{#if: {{{count}}} | _pageData._pageName | | |fields = {{#if: {{{count|}}} |COUNT(DISTINCT _pageData._pageName) |_pageData._pageName}} | ||
|where = _pageData._pageName LIKE "{{{page|{{FULLPAGENAME}}}}}/%" | |where = _pageData._pageName LIKE "{{{page|{{FULLPAGENAME}}}}}/%" | ||
|format = ul | |format = ul | ||
Revision as of 12:49, 29 June 2019
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.