Template:VColor

From Melvor Idle
Revision as of 02:55, 19 August 2021 by Auron956 (talk | contribs) (Initial creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Applies the appropriate background color to a table cell based on whether the given version number is up-to-date in relation to the current game version

Template parameters

ParameterDescriptionTypeStatus
Version number1

Version number to be compared to current game version

Numberrequired
Color: CurrentColorCurrent

Background color to be displayed when the given version number is current/up to date

Default
#E8FFEB
Stringoptional
Color: OutdatedColorOld

Background color to be displayed when the given version number is outdated

Default
#FFE8E8
Stringoptional
Alternative TextText

Text to be displayed instead of the version number

Stringoptional

Examples

Template Result
{{VColor|1.3.1}} 1.3.1
{{VColor|0.18}} 0.18
{{VColor|0.17|ColorOld=#FF0000|Text=Out of date}} Out of date
{{{1}}}