Template:Subpages/sandbox: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
(Create sandbox version of Template:Subpages)
 
No edit summary
 
(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}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 17:52, 18 January 2023

This is the template sandbox page for Template:Subpages (diff).

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


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