Jump to content

Template:Subpages: Difference between revisions

From dissonant.dev wiki
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 11: Line 11:
"type": "wiki-page-name",
"type": "wiki-page-name",
"default": "Current page name.",
"default": "Current page name.",
"autovalue": "{{FULLPAGENAME}}"
"autovalue": "{{FULLPAGENAME}}/"
},
"stripprefix": {
"label": "Strip prefix",
"description": "Whether or not to show the category prefix.",
"example": "yes",
"type": "boolean",
"default": "No",
"autovalue": "no"
}
}
},
},
"description": "List subpages of the page.",
"description": "List subpages of the page.",
"format": "block"
"format": "inline"
}
}
</templatedata>
</templatedata>
</noinclude><includeonly>{{Special:PrefixIndex/{{{page|{{{1|{{FULLPAGENAME}}}}}}}}|stripprefix=1|hideredirects=yes}}</includeonly>
</noinclude><includeonly>{{Special:PrefixIndex/{{{page|{{{1|{{FULLPAGENAME}}/}}}}}}|hideredirects=yes|stripprefix={{#if:{{{stripprefix|}}}|yes|}}}}</includeonly>

Latest revision as of 17:05, 20 January 2025

List subpages of the page.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page1 page

Page to show subpages for; defaults to current page.

Default
Current page name.
Auto value
{{FULLPAGENAME}}/
Page nameoptional
Strip prefixstripprefix

Whether or not to show the category prefix.

Default
No
Example
yes
Auto value
no
Booleanoptional