A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:Flex_Diagrams below:

Extension:Flex Diagrams - MediaWiki

Flex Diagrams is an extension that lets you create, and display, five different types of diagrams:

Each of these diagram types gets its own namespace.

Any such diagram page will get, in addition to the standard "Edit" tab, an "Edit diagram" tab that allows for editing these diagrams in a graphical way. Thus, any diagram can be edited either as text, or graphically. (Although the editors for DOT and Mermaid are unfortunately not true graphical editors, but simply text editors that include a preview element.)

You can download the Flex Diagrams code, in .zip format, here.

You can also download the code directly via Git from the MediaWiki source code repository (see available tags). From a command line, call the following:

git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/FlexDiagrams.git

You can view the code online, including version history for each file, on either Gerrit or Phabricator.

Once you have obtained a "FlexDiagrams" directory and placed it in your /extensions directory, add the following to LocalSettings.php:

wfLoadExtension( 'FlexDiagrams' );

A BPMN, DOT, Drawio/diagrams.net, Gantt, or Mermaid diagram can be created by creating a page in the appropriate namespace (BPMN:, DOT:, Drawio:, Gantt:, or Mermaid: respectively), for example "BPMN:Approval process".

If you go to such a page before it is created, you will see a tab there, defined by Flex Diagrams, called "Create diagram". Clicking on it will launch an interactive diagram editor as shown below. Similarly, any such page, after being created, will have a tab called "Edit diagram", which will launch the same editor.

Adding links to BPMN diagrams[edit]

One customization specific to the Flex Diagrams extension is that, when generating a BPMN diagram, you can make any element be a link to a different wiki page. To do this, add the name of the page you want to link to, within double square brackets, at the end of the element title - after either a space or a newline. An example would be a node called "Get approval". Let's say there's a separate page, "BPMN:Approval process", which details all the steps of the process referred to as "Get approval". We can make the "Get approval" node link to "BPMN:Approval process" by changing its label to read "Get approval [[BPMN:Approval process]]". When the diagram is displayed, the link part will not be shown on the screen; instead, the entire node will appear as blue and become a clickable link. You can see examples of how such linking gets displayed in the gallery below.

Displaying diagrams[edit]

Any diagram can be displayed on any page by using the #display_diagram function. This function takes in a single argument, a page name, and displays the diagram defined on that page. An example would be:

{{#display_diagram:BPMN:Approval process}}
This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4