Template:Euclidean algorithm steps/line: Difference between revisions

Content deleted Content added
Fix Linter errors. Misnested tags
rm newline causing extra <p>
Line 1:
<includeonly><!-- Note: The calculator r_x are two ahead of the text r_x -->
-->{{Calculator-hideifzero
|formula=ifgreaterorequal(curstep,{{#expr:{{{n}}}*2}},1,0)
|starthidden=1
Line 12:
style=background-color: hsl( calc( var( --calculator-colorstep{{#expr:{{{n}}}*2}},0) * 0.39215 + 55), 100%, 70%, calc( var( --calculator-colorstep{{#expr:{{{n}}}*2}},0) + var(--calculator-colorstep{{#expr:{{{n}}}*2+2}})))
}} + r<sub>{{{n}}}</sub>}}<br>
}}<!--
-->{{Calculator-hideifzero
|formula=ifgreaterorequal(curstep,{{#expr:{{{n}}}*2+1}},1,0)
|starthidden=1
Line 37:
|id=colorstep{{#expr:{{{n}}}*2+1}}
|formula=ifequal(curstep,{{{n}}}*2+1,255,0)
}}</includeonly>
}}
</includeonly>