Semanticmediawiki: Feature suggestion

Created on 8 Feb 2018  路  4Comments  路  Source: SemanticMediaWiki/SemanticMediaWiki

I would appreciate an 'include' feature.
(Unless there is a better method)
I have a fairly complex Mediawiki on my home server, and on many pages I have a "navigation" section at the bottom of the page to make it easy to navigate to other relevant pages in the topic. Not very unlike your "See Also" navigation.
The problem is that if I have ten sub-pages in a topic, I wind up copying the navigation lines on all ten of those pages. If I add a new sub-page, I have to go back and edit all ten of the existing pages' navigation lines.

An 'include' feature would be great so that I only have to edit the navigation lines once, then
'include nav.txt' where I want those lines inserted.

For example:
nav.txt file would contain:

==<p><font size="5" face="Georgia, Arial">[[Python MQTT|MQTT]]</font></p>==
;[[Python MQTT|MQTT]]
:[[mosquitto:installing|Installing Mosquitto]]
::[[mosquitto.conf|mosquitto.conf]]
::[[mosquito:persistence|persistence]]
::[[mosquitto:qos|QOS]]
:[[mqtt notes]]

question

All 4 comments

@SteveRMann Are you using Semantic MediaWiki? If yes, then have a look at the tree format. If you are "just" using MediaWiki put the wikitext into a template called e.g. "Navigation" and include it on the respective pages. Thus you only have to edit the template to get the updated version in on all pages using the template.

@SteveRMann you could also be interested in SubPageList extension.

I guess you got some ideas on how to approach your issue. Please reopen in case we misunderstood what you were trying to convey.

Yes, the tips were very much appreciated.

Was this page helpful?
0 / 5 - 0 ratings