Template:MermaidRelationship: Difference between revisions

Jump to navigation Jump to search
AdminIsidore (talk | contribs)
No edit summary
AdminIsidore (talk | contribs)
No edit summary
Line 2: Line 2:
   |{{#lf:}}{{PAGENAMEE:{{{PAGE}}}}}["{{SUBPAGENAME:{{{PAGE}}}}}"] --> {{PAGENAMEE:{{{C?Connects toR}}}}}["{{SUBPAGENAME:{{{C?Connects toR}}}}}"]
   |{{#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"]