Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startdepth and enddepth option #54

Open
LeoShivas opened this issue Jun 30, 2020 · 2 comments
Open

Startdepth and enddepth option #54

LeoShivas opened this issue Jun 30, 2020 · 2 comments

Comments

@LeoShivas
Copy link

Setup

  • MediaWiki version: 1.32.0
  • PHP version: 7.3.4
  • Database and version (MySQL etc.): MySQL 5.7.30
  • SubPageList version: 1.6.1

Improvement

It would nicer if we have the possibility to choose the starting depth and the ending depth.

For example, I have this :
image

I don't want to see all the things under the "716" section.
Also, I don't want to see the "Camping-car" and the "Chausson" section.
I just want to see the "716" (and the others who will be added, 718, 712 etc...)

@JeroenDeDauw
Copy link
Member

Have a look at the kidsonly parameter https://github.com/JeroenDeDauw/SubPageList/blob/master/doc/USAGE.md#only-direct-subpages

@LeoShivas
Copy link
Author

Have a look at the kidsonly parameter https://github.com/JeroenDeDauw/SubPageList/blob/master/doc/USAGE.md#only-direct-subpages

Thank you for your answer @JeroenDeDauw , but this parameter doesn't work as I described.

kisonly only applies to the first supbage. Exemple, for my MediaWiki page located at https://my.wonderfulwiki.com/Automobile/Camping-car/Chausson, with the following code :

== Liste des pages ==
{{#subpages:page=Automobile/Camping-car/Chausson|kidsonly=yes}}

or :

== Liste des pages ==
{{#subpages:kidsonly=yes}}

This procudes that :
image

That's why I proposed this request, which is slightly different. What I want is this :
image

With, for example, this configuration :

== Liste des pages ==
{{#subpages:mindepth=3|maxdepth=3}}

This logic is similar to the find command on Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants