Template:MermaidRelationship: Difference between revisions

From OODA WIKI
Jump to navigation Jump to search
AdminIsidore (talk | contribs)
No edit summary
AdminIsidore (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>
{{#if:{{{C?Connects toR|}}}
{{#lf:}}[[%PAGE%]] --> [[%C%?Connects to%R%]]  
  |{{#lf:}}{{PAGENAMEE:{{{PAGE}}}}}["{{SUBPAGENAME:{{{PAGE}}}}}"] --> {{PAGENAMEE:{{{C?Connects toR}}}}}["{{SUBPAGENAME:{{{C?Connects toR}}}}}"]
</includeonly>
}}
This template formats a single line for a Mermaid graph using Semantic MediaWiki's #ask result.
 
* '''{{{PAGE}}}''' is the source page (automatically passed by SMW).
* '''{{{C?Connects toR}}}''' is the value of the "Connects to" property (object page).
 
Generates: Node_A["Node A"] --> Node_B["Node B"]

Revision as of 19:05, 29 August 2025

This template formats a single line for a Mermaid graph using Semantic MediaWiki's #ask result.

  • {{{PAGE}}} is the source page (automatically passed by SMW).
  • {{{C?Connects toR}}} is the value of the "Connects to" property (object page).

Generates: Node_A["Node A"] --> Node_B["Node B"]