DynamicPageList Demo: Difference between revisions

From KBwiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
The QNET-CFD is powered by [http://www.mediawiki.org/wiki/MediaWiki MediaWiki].
The KB Wiki is powered by [http://www.mediawiki.org/wiki/MediaWiki MediaWiki].
It has been extended with [http://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party) DynamicPageList].
It has been extended with [http://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party) DynamicPageList].
This is used to dynamically extend the navigation tree.
This is used to dynamically extend the navigation tree.
Line 24: Line 24:


==Example==
==Example==
Here is the QNET dynamic menu for the Wiki re-written to include a search query that displays articles belonging to each category.
Here is the KB Wiki dynamic menu for the Wiki re-written to include a search query that displays articles belonging to each category.
{{#menu:
{{#menu:
*[[Main_Page|Home]]
*[[Main_Page|Home]]
*About
*About
**[[QNET-CFD|QNET CFD]]
**[[KB-Wiki| KB-Wiki]]
**[[About-url#Introduction_to_the_QNET_Knowledge_Base|Structure of the Knowledge Base]]
**[[About-url#Introduction_to_the_KB_Wiki|Structure of the Knowledge Base]]
**[[How_to_Contribute_Articles_and_Provide_Feedback|How to Contribute]]
**[[How_to_Contribute_Articles_and_Provide_Feedback|How to Contribute]]
*Quality
*Quality
Line 84: Line 84:
**[[ExtensionDemos|Extension Demos]]
**[[ExtensionDemos|Extension Demos]]
{{#dpl:category=Extension Demo|format=,***,[[%TITLE%]]\n,}}
{{#dpl:category=Extension Demo|format=,***,[[%TITLE%]]\n,}}
**[[QNET-CFD-Main|Main Category]]
**[[KB-Wiki-Main|Main Category]]
**[[Special::]]
**[[Special:Ask|Query]]
*Help
*Help
**User Guide
**User Guide

Latest revision as of 10:51, 17 January 2021

The KB Wiki is powered by MediaWiki. It has been extended with DynamicPageList. This is used to dynamically extend the navigation tree. Its effect can be seen by moving the mouse pointer on the navigation tree sub branches of 'Application Areas' (AC) or sub branches of 'Underlying Flow Regimes' (UFR).

Figure 1: Navigation tree with dynamic page list extension

Figure 1 shows the result of the dynamics page list extension when the mouse pointer is on 'Underlying Flow Regimes'-'Flow Around Bodies'. The seven extra boxes, representing UFRs, are generated dynamically.

This process works if the NavTree includes some extra commands. In the example below all entrees which belong to the category 'Flow Around Bodies' are added to the navigation tree. The entry in curly brackets ({{ ... }}) represents the dynamic page list extension.

NavTree source:

 ...
 **[[Flows_Around_Bodies|Flows Around Bodies]]
 {{#dpl:category=Flows Around Bodies|format=,***,[[%TITLE%]]\n,}}
 **[[Semi-confined_Flows|Semi-confined Flows]]
 ...
 

A further requirement is that all neccessary pages which logically are 'Flow Around Bodies' require the text [[Category:Flow Around Bodies]] on their source pages.

Example

Here is the KB Wiki dynamic menu for the Wiki re-written to include a search query that displays articles belonging to each category.

{{#dpl:category=Turbomachinery|format=,***,%TITLE%\n,}}

{{#dpl:category=External Aerodynamics|format=,***,%TITLE%\n,}}

{{#dpl:category=Combustion|format=,***,%TITLE%\n,}}

{{#dpl:category=Chemical, Nuclear|format=,***,%TITLE%\n,}}

{{#dpl:category=Civil Construction|format=,***,%TITLE%\n,}}

{{#dpl:category=Environmental Flow|format=,***,%TITLE%\n,}}

{{#dpl:category=Free Flow|format=,***,%TITLE%\n,}}

{{#dpl:category=Flow Around Bodies|format=,***,%TITLE%\n,}}

{{#dpl:category=Semi-Confined Flow|format=,***,%TITLE%\n,}}

{{#dpl:category=Confined Flow|format=,***,%TITLE%\n,}}

{{#dpl:category=Extension Demo|format=,***,%TITLE%\n,}}