Create SVG Template for Connector |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{#switch:{{{Type|}}} | {{#switch:{{{Type|}}} | ||
| | |InputArrow= | ||
<svg width="30" height="70" style="display:block;"> | <svg width="30" height="70" style="display:block;"> | ||
<polygon style="stroke-width: | <polygon style="stroke-width:4px; stroke-linejoin: round;" points="2,2 2,68 28,35"></polygon> | ||
</svg> | |||
|OutputArrow= | |||
<svg width="30" height="70" style="display:block;"> | |||
<polygon style="stroke-width:4px; stroke-linejoin: round;" points="2,2 2,68 28,35"></polygon> | |||
</svg> | |||
|InputBox= | |||
<svg width="30" height="70" style="display:block;"> | |||
<polygon style="stroke-width:4px; stroke-linejoin: round;" points="-2,2 -2,68 28,68 28,2"></polygon> | |||
</svg> | |||
|OutputBox= | |||
<svg width="30" height="70" style="display:block;"> | |||
<polygon style="stroke-width:4px; stroke-linejoin: round;" points="2,2 2,68 32,68 32,2"></polygon> | |||
</svg> | </svg> | ||
}} | }} | ||
Line 9: | Line 22: | ||
Example: | Example: | ||
<div style="fill:skyblue; stroke: white;"> | <div style="fill:skyblue; stroke: white;"> | ||
{{ProtoFluxConnector|Type= | {{ProtoFluxConnector|Type=InputArrow}} | ||
{{ProtoFluxConnector|Type=OutputArrow}} | |||
{{ProtoFluxConnector|Type=InputBox}} | |||
{{ProtoFluxConnector|Type=OutputBox}} | |||
</div> | </div> | ||
</noinclude> | </noinclude> |
Revision as of 01:45, 18 January 2024
Example: