Subpages

From iGeek
Originally, I used a property Subpages, that was nothing but a list of dependent pages.
Originally, I used a property Subpages, that was nothing but a list of dependent pages (pages with a category that added it to this list/tab). But why use a separate property and have to have all the conditional text to display it in every template? Just embed the list in the Summary, and keep the code it cleaner.
ℹ️ Info          
~ Aristotle Sabouni
Created: 2022-11-05 

I used this on Memes (and quotes) and a few other places... but a way that I could show Articles grid, and I could add a list of subpages beneath that -- was if Subpages property existed for one, the template would display the list.

Then I decided, just add it to the Summary, and if needed, hide it behind collapsible text.

This was added to many Memes pages (that had tabs).

{{#set: Subpages={{#ask:[[Category:Memes/Cinema]]
|?=
|format=plainlist
|template=StrStripPath
|userparam=Memes/
|sep=, 
}} }}

GeekPirate.small.png



🔗 More


Cookies help us deliver our services. By using our services, you agree to our use of cookies.