Template:MermaidRelationship: Difference between revisions

From OODA WIKI
Jump to navigation Jump to search
AdminIsidore (talk | contribs)
No edit summary
Tag: Reverted
AdminIsidore (talk | contribs)
No edit summary
Tag: Manual revert
Line 1: Line 1:
This page tests the dynamic generation of a Mermaid graph from Semantic MediaWiki data.
<includeonly>{{#if:{{{2|}}}
 
  |{{PAGENAMEE:{{{1}}}}}["{{SUBPAGENAME:{{{1}}}}}"] --> {{PAGENAMEE:{{{2}}}}}["{{SUBPAGENAME:{{{2}}}}}"]
{{#mermaid:
}}</includeonly><noinclude>
graph TD;
This template formats a single line for a Mermaid graph.
{{#ask:
* '''{{{1}}}''' should be the source page (subject).
[[Category:Graph Example]]
* '''{{{2}}}''' should be the destination page (object).
[[Connects to::+]]
It creates a line like: Concept_Node_A["Node A"] --> Concept_Node_B["Node B"]
|?
</noinclude>
|?Connects to
|format=plainlist
|template=MermaidRelationship
|link=none
|sep=
 
|import-annotation=true
}}
}}

Revision as of 18:58, 29 August 2025

This template formats a single line for a Mermaid graph.

  • {{{1}}} should be the source page (subject).
  • {{{2}}} should be the destination page (object).

It creates a line like: Concept_Node_A["Node A"] --> Concept_Node_B["Node B"]