Add segments option |
Simplify using #tag |
||
Line 1: | Line 1: | ||
{{#tag:svg| | |||
{{#switch:{{{Type|}}} | {{#switch:{{{Type|}}} | ||
|InputArrow= | |InputArrow= | ||
<polygon style="stroke-width:4px;" points="2,2 2,68 28,35"></polygon> | <polygon style="stroke-width:4px;" points="2,2 2,68 28,35"></polygon> | ||
|OutputArrow= | |OutputArrow= | ||
<polygon style="stroke-width:4px;" points="2,2 2,68 28,35"></polygon> | <polygon style="stroke-width:4px;" points="2,2 2,68 28,35"></polygon> | ||
|InputBox= | |InputBox= | ||
<polygon style="stroke-width:4px;" points="-2,2 -2,68 28,68 28,2"></polygon> | |||
|OutputBox= | |||
<polygon style="stroke-width:4px;" points="2,2 2,68 32,68 32,2"></polygon> | |||
}} | |||
{{#switch:{{{Segments|1}}} | {{#switch:{{{Segments|1}}} | ||
|1= | |1= | ||
|2= | |2= | ||
<!-- InputBox-2 --> | <!-- InputBox-2 --> | ||
<line stroke-width="3" x1="0" y1="35" x2="30" y2="35"></line> | <line stroke-width="3" x1="0" y1="35" x2="30" y2="35"></line> | ||
|3= | |3= | ||
<!-- InputBox-3 --> | <!-- InputBox-3 --> | ||
<line stroke-width="3" x1="0" y1="23.333" x2="30" y2="23.3"></line> | <line stroke-width="3" x1="0" y1="23.333" x2="30" y2="23.3"></line> | ||
<line stroke-width="3" x1="0" y1="46.667" x2="30" y2="46.6"></line> | <line stroke-width="3" x1="0" y1="46.667" x2="30" y2="46.6"></line> | ||
|4= | |4= | ||
<!-- InputBox-4 --> | <!-- InputBox-4 --> | ||
<line stroke-width="3" x1="0" y1="17.5" x2="30" y2="17.5"></line> | <line stroke-width="3" x1="0" y1="17.5" x2="30" y2="17.5"></line> | ||
<line stroke-width="3" x1="0" y1="35" x2="30" y2="35"></line> | <line stroke-width="3" x1="0" y1="35" x2="30" y2="35"></line> | ||
<line stroke-width="3" x1="0" y1="52.5" x2="30" y2="52.5"></line> | <line stroke-width="3" x1="0" y1="52.5" x2="30" y2="52.5"></line> | ||
}} | }} | ||
|width=30|height=70|style=display: block; | |||
}} | }} | ||
Revision as of 17:03, 11 February 2024
Example: