Template:ProtoFluxConnector: Difference between revisions

Template page
Add segments option
Width bound to Height bound argument
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#tag:svg|
{{#switch:{{{Type|}}}
{{#switch:{{{Type|}}}
|InputArrow=
|InputArrow=
<svg width="30" height="70" style="display:block;">
<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>
</svg>
|OutputArrow=
|OutputArrow=
<svg width="30" height="70" style="display:block;">
<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>
</svg>
|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=
<!-- InputBox-1 -->
<svg width="30" height="70" style="display:block;">
<polygon style="stroke-width:4px;" points="-2,2 -2,68 28,68 28,2"></polygon>
</svg>
|2=
|2=
<!-- InputBox-2 -->
<!-- InputBox-2 -->
<svg width="30" height="70" style="display:block;">
<polygon style="stroke-width:4px;" points="-2,2 -2,68 28,68 28,2"></polygon>
<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>
</svg>
|3=
|3=
<!-- InputBox-3 -->
<!-- InputBox-3 -->
<svg width="30" height="70" style="display:block;">
<polygon style="stroke-width:4px;" points="-2,2 -2,68 28,68 28,2"></polygon>
<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>
</svg>
|4=
|4=
<!-- InputBox-4 -->
<!-- InputBox-4 -->
<svg width="30" height="70" style="display:block;">
<polygon style="stroke-width:4px;" points="-2,2 -2,68 28,68 28,2"></polygon>
<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="52.5" x2="30" y2="52.5"></line>
</svg>
}}
|OutputBox=
{{#switch:{{{Segments|1}}}
|1=
<!-- OutputBox-1 -->
<svg width="30" height="70" style="display:block;">
<polygon style="stroke-width:4px;" points="2,2 2,68 32,68 32,2"></polygon>
</svg>
|2=
<!-- OutputBox-2 -->
<svg width="30" height="70" style="display:block;">
<polygon style="stroke-width:4px;" points="2,2 2,68 32,68 32,2"></polygon>
<line stroke-width="3" x1="0" y1="35" x2="30" y2="35"></line>
</svg>
|3=
<!-- OutputBox-3 -->
<svg width="30" height="70" style="display:block;">
<polygon style="stroke-width:4px;" points="2,2 2,68 32,68 32,2"></polygon>
<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>
</svg>
|4=
<!-- OutputBox-4 -->
<svg width="30" height="70" style="display:block;">
<polygon style="stroke-width:4px;" points="2,2 2,68 32,68 32,2"></polygon>
<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>
</svg>
}}
}}
|viewBox=0 0 30 70|height={{{Height|70}}}|style=display: block;/**/{{{Style|}}}
}}
}}



Latest revision as of 21:15, 11 February 2024


Example: