Anonymous

Template:VColor: Difference between revisions

From Melvor Idle
Use same version comparison logic as Template:V
(Resolve issue of ugly default colours being used for dark mode)
(Use same version comparison logic as Template:V)
Line 58: Line 58:
Template begins --><noinclude>{| class="wikitable"
Template begins --><noinclude>{| class="wikitable"
|-
|-
</noinclude><td style="{{#ifexpr:{{{1|0}}} >= {{{Base|{{CurrentVersion}}}}}|background-color:{{{ColorCurrent|#E8FFEB}}}|background-color:{{{ColorOld|#FFE8E8}}}}};">{{{Text|{{{1}}}}}}</td><noinclude>
</noinclude><includeonly><td style="{{#ifeq:{{{1|0}}}|{{{Base|{{CurrentVersion}}}}}|background-color:{{{ColorCurrent|#E8FFEB}}}|background-color:{{{ColorOld|#FFE8E8}}}}};">{{{Text|{{{1}}}}}}</td></includeonly><noinclude>
|}</noinclude>
|}</noinclude>