List only direct child pages

Hi all,
I want to list all direct child pages of a page. I tried to do this by using the “Subpages” template but as far as I see there are no paramters for “adjusting” the displayed subpage levels.

Is there any way to achieve this?

Kind regards,
Jonathan

Hello Jonathan,
the extension DynamicPageList3 can help generating such a list:

{{#dpl:namespace=Namespace_of_the_page
 |titlematch={{PAGENAMEE}}/%
 |nottitlematch={{PAGENAMEE}}/%/%
}}

If your page lies in the default namespace, then please use namespace=
For tutorial of this extension please visit https://help.fandom.com/wiki/Extension:DPL3/Manual

Greetings,
Hua

You could also use the {{#subpages}} parser function. It allows the parameter “kidsonly”. It’s not included as a content droplet, so it needs to go in a template or in the source of the page.

If you automatically want to display the subpages on all pages in a namespace, you can place the function in the header or footer area of the page content (functionality is provided by bundled extension HeaderFooter):

Okey, I don’t exactly understand the implementation.
I already use the

{{Subpages|parentnamespace=Hardware|parentpage=Kameras|cols=no|bullets=no}}

Now according to your hint I added the kidsonly=yes.

But I don’t understand what else there is to do :slight_smile:

Kind regards

Hi Otti,
You are still using the template {{Subpages}} which is inserted by the content droplet for Subpages. There, the parameter kidsonly won’t apply.

Simply exchange it in the source of the page with the function {{#subpages:|kidsonly=yes}}. It’s a different mechanism, provided by a different extension.

Greetings,
Margit

Ahh, got it.
Is there any possibility to remove the bullets in this way?

You can remove the bullets by adding this to your page MediaWiki:Common.css

.hf-subpages .subpagelist ul {list-style-type:none}
1 Like