Template:MermaidRelationship: Difference between revisions

Jump to navigation Jump to search
AdminIsidore (talk | contribs)
No edit summary
AdminIsidore (talk | contribs)
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{C?Connects toR|}}}
{{#if:{{{2|}}}|{{PAGENAMEE:{{{1}}}}}["{{SUBPAGENAME:{{{1}}}}}"] --> {{PAGENAMEE:{{{2}}}}}["{{SUBPAGENAME:{{{2}}}}}"];}}
  |{{#lf:}}{{PAGENAMEE:{{{PAGE}}}}}["{{SUBPAGENAME:{{{PAGE}}}}}"] --> {{PAGENAMEE:{{{C?Connects toR}}}}}["{{SUBPAGENAME:{{{C?Connects toR}}}}}"]
}}
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"]