<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.recessim.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ADiagram</id>
	<title>Template:Diagram - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.recessim.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ADiagram"/>
	<link rel="alternate" type="text/html" href="https://wiki.recessim.com/w/index.php?title=Template:Diagram&amp;action=history"/>
	<updated>2026-09-11T19:57:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.recessim.com/w/index.php?title=Template:Diagram&amp;diff=3780&amp;oldid=prev</id>
		<title>Hash: Wrapper so diagrams can be inserted and repointed from the visual editor: the page name becomes a parameter rather than a parser-function target</title>
		<link rel="alternate" type="text/html" href="https://wiki.recessim.com/w/index.php?title=Template:Diagram&amp;diff=3780&amp;oldid=prev"/>
		<updated>2026-09-11T05:09:23Z</updated>

		<summary type="html">&lt;p&gt;Wrapper so diagrams can be inserted and repointed from the visual editor: the page name becomes a parameter rather than a parser-function target&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
Embeds a diagram that lives on its own page in one of the five diagram namespaces, so it can be inserted and repointed from the visual editor.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Usage:&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Diagram|page=Mermaid:RE FlowChart Overview}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;page&amp;lt;/code&amp;gt; parameter is the full page name of the diagram, &amp;#039;&amp;#039;including&amp;#039;&amp;#039; its namespace prefix — &amp;lt;code&amp;gt;Mermaid:&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;DOT:&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Drawio:&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;BPMN:&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Gantt:&amp;lt;/code&amp;gt;. See [[Help:Diagrams]].&lt;br /&gt;
&lt;br /&gt;
This template wraps the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#display_diagram:}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; parser function. The wrapper exists so the diagram name is a &amp;#039;&amp;#039;parameter&amp;#039;&amp;#039;: the visual editor can insert and change parameters, but has no way to edit a parser function&amp;#039;s target, so a bare &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#display_diagram:}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; call can only be changed by editing the page source. Bare calls still work and still render — prefer this template for anything new.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#if:}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; guard below is load-bearing: &amp;lt;code&amp;gt;FDDisplayDiagram::run()&amp;lt;/code&amp;gt; passes its argument to &amp;lt;code&amp;gt;Title::newFromText()&amp;lt;/code&amp;gt; and calls &amp;lt;code&amp;gt;-&amp;amp;gt;exists()&amp;lt;/code&amp;gt; on the result without a null check, so an empty &amp;lt;code&amp;gt;page&amp;lt;/code&amp;gt; would throw a fatal error rather than render nothing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Embed a diagram from the Mermaid, DOT, Drawio, BPMN or Gantt namespace.&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;page&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Diagram page&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Full page name of the diagram, including the namespace prefix, e.g. Mermaid:RE FlowChart Overview&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;Mermaid:RE FlowChart Overview&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;paramOrder&amp;quot;: [&lt;br /&gt;
		&amp;quot;page&amp;quot;&lt;br /&gt;
	],&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{#if:{{{page|}}}|{{#display_diagram:{{{page|}}}}}|}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hash</name></author>
	</entry>
</feed>