Template:ProtoFluxConnector: Difference between revisions

Template page
mNo edit summary
Add segments option
Line 8: Line 8:
<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>
</svg>
|InputBox=
|InputBox=
{{#switch:{{{Segments|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=
<!-- InputBox-2 -->
<svg width="30" height="70" style="display:block;">
<svg width="30" height="70" style="display:block;">
<polygon style="stroke-width:4px;" points="-2,2 -2,68 28,68 28,2"></polygon>
<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>
</svg>
</svg>
|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="46.667" x2="30" y2="46.6"></line>
</svg>
|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=
|OutputBox=
{{#switch:{{{Segments|1}}}
|1=
<!-- OutputBox-1 -->
<svg width="30" height="70" style="display:block;">
<svg width="30" height="70" style="display:block;">
<polygon style="stroke-width:4px;" points="2,2 2,68 32,68 32,2"></polygon>
<polygon style="stroke-width:4px;" points="2,2 2,68 32,68 32,2"></polygon>
</svg>
</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="35" x2="30" y2="35"></line>
<line stroke-width="3" x1="0" y1="52.5" x2="30" y2="52.5"></line>
</svg>
}}
}}
}}


<noinclude>
<noinclude>
Example:
Example:
<div style="fill:skyblue; stroke: white;">
<div style="fill:#606; stroke: #f0f;">
{{ProtoFluxConnector|Type=InputArrow}}
{{ProtoFluxConnector|Type=InputArrow}}
{{ProtoFluxConnector|Type=OutputArrow}}
{{ProtoFluxConnector|Type=OutputArrow}}
{{ProtoFluxConnector|Type=InputBox}}
{{ProtoFluxConnector|Type=InputBox}}
{{ProtoFluxConnector|Type=InputBox|Segments=2}}
{{ProtoFluxConnector|Type=InputBox|Segments=3}}
{{ProtoFluxConnector|Type=InputBox|Segments=4}}
{{ProtoFluxConnector|Type=OutputBox}}
{{ProtoFluxConnector|Type=OutputBox}}
{{ProtoFluxConnector|Type=OutputBox|Segments=2}}
{{ProtoFluxConnector|Type=OutputBox|Segments=3}}
{{ProtoFluxConnector|Type=OutputBox|Segments=4}}
</div>
</div>
</noinclude>
</noinclude>

Revision as of 14:33, 10 February 2024


Example: