Jump to content

Template:Mermaid/Doc

From NixOS Wiki
Revision as of 15:14, 11 June 2025 by DoggoBit (talk | contribs) (Created page with "This template is used to display Mermaid charts. For more information about the Mermaid syntax, see the [https://mermaid.js.org/syntax/flowchart.html Mermaid reference documentation]. {{mermaid|flowchart LR| C[Create a template] S[Save your edit] N[Notice a syntax error] E[Edit your template] C --> S S --> N N --> E E --> S }} === Usage === Simply include this template on a page, specifying the type of chart as the first argument, and supplying the con...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template is used to display Mermaid charts. For more information about the Mermaid syntax, see the Mermaid reference documentation.

{{#mermaid:flowchart LR;

 C[Create a template]
 S[Save your edit]
 N[Notice a syntax error]
 E[Edit your template]
 C --> S
 S --> N
 N --> E
 E --> S

}}

Usage

Simply include this template on a page, specifying the type of chart as the first argument, and supplying the content of the chart as its second argument:

{{mermaid|flowchart LR|
  C[Create a template]
  S[Save your edit]
  N[Notice a syntax error]
  E[Edit your template]
  C --> S
  S --> N
  N --> E
  E --> S
}}