Topic on Project:Support desk

How to auto-populate a navbox?

7
Rob Kam (talkcontribs)

I have a wiki page of short unordered wikilink lists, each under a === heading ===. At the foot of the page and on each of the linked pages is a navbox with almost identical content. Updating the page headings or lists requires keeping the navbox template in sync. Headings are groups and bullets are the lists. The page and navbox can be seen at https://sdiy.info/wiki/Elementary_electronics

Semantic-mediawiki is not permitted, however extension Cargo is, if that's useful.

Instead of keeping it manually up-to-date, how can I get the navbox to auto-update itself whenever the content of the page is changed please?

Thanks.

Bawolff (talkcontribs)

You could probably define the list using cargo, and then have both the page content and the infobox be generated via cargo.

Rob Kam (talkcontribs)

That might confuse casual users who want to add the odd new wikilink.

Jonathan3 (talkcontribs)

The Page Forms extension would make it simple enough for the casual user. Maybe even easier. Probably each list of links could be defined in Cargo as List (,) of String or List (,) of Page. There are various input types you could use in Page Forms, eg tokens, which could autocomplete on names of existing pages or whatever you like.

Rob Kam (talkcontribs)

Thanks I'll try Page Forms. Oddly both extensions Page Forms and Cargo have multiple pages and don't use either to implement their Navboxes.

AhmadF.Cheema (talkcontribs)

Those two extensions aren't installed on this site, so they can't be used here by the extension authors.

Rob Kam (talkcontribs)

I can't see an obvious way to do it with Page Forms, Cargo and styling. I'll try see how easy it is with DPL3 (DynamicPageList3) extension instead.

Reply to "How to auto-populate a navbox?"