Help:Diagrams: Difference between revisions
Document the sitewide RECESSIM theme, link Mermaid:Theme test, drop the stale handDrawn note |
Link Mermaid:Theme test pie alongside the shape test |
||
| Line 137: | Line 137: | ||
black connectors, and grey subgraph containers. You do not need to do anything to get it. | black connectors, and grey subgraph containers. You do not need to do anything to get it. | ||
[[Mermaid:Theme test]] | Two pages exist to check the theme, because a diagram page holds exactly one diagram: | ||
* [[Mermaid:Theme test]] — every node shape, link style and nested subgraph. | |||
[{{fullurl:Mermaid:Theme test|action=editdiagram}} Open in the editor] | |||
* [[Mermaid:Theme test pie]] — a pie chart, which is the one diagram type whose | |||
colours come from <code>secondaryColor</code> and <code>tertiaryColor</code> rather | |||
than the node colours. [{{fullurl:Mermaid:Theme test pie|action=editdiagram}} Open in the editor] | |||
Open both after any change to the site-wide theme to check nothing has broken. | |||
A diagram '''can''' override the theme for itself, with either a <code>%%{init: ...}%%</code> | A diagram '''can''' override the theme for itself, with either a <code>%%{init: ...}%%</code> | ||