Template:ProtoFluxConnector: Difference between revisions

Template page
Create SVG Template for Connector
 
mNo edit summary
Line 1: Line 1:
{{#switch:{{{Type|}}}
{{#switch:{{{Type|}}}
|Arrow=
|InputArrow=
<svg width="30" height="70" style="display:block;">
<svg width="30" height="70" style="display:block;">
<polygon style="stroke-width:3px; stroke-linejoin: round;" points="0,0 0,70 30,35"></polygon>
<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=Arrow}}
{{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: