Template:V: Difference between revisions

From Melvor Idle
(Update for v0.20)
Line 1: Line 1:
<onlyinclude><!--Here's where you set the most recent version:-->{{#vardefine:CurrentVersion|0.20}}{{#vardefine:Version|{{{1|{{#var:CurrentVersion}}}}}}}<includeonly><!--
<onlyinclude>{{#vardefine:Version|{{{1|{{CurrentVersion}}}}}}}<includeonly><!--
-->{| class="wikitable" style="float:right; width:250px; margin-left:10px;"
-->{| class="wikitable" style="float:right; width:250px; margin-left:10px;"
|-
|-
|{{#ifeq:{{#var:Version}}|{{#var:CurrentVersion}}
|{{#ifeq:{{#var:Version}}|{{CurrentVersion}}
|This page is up to date ([[v{{#var:Version}}]]).
|This page is up to date ([[v{{#var:Version}}]]).
|<span style="color:red;">This page is out of date ([[v{{#var:Version}}]]).</span>[[Category:Out of Date]]}}[[Category:v{{#var:Version}}]]
|<span style="color:red;">This page is out of date ([[v{{#var:Version}}]]).</span>[[Category:Out of Date]]}}[[Category:v{{#var:Version}}]]

Revision as of 16:51, 14 August 2021

This page is up to date (v1.2.2).

New method of doing version checks that only requires a single update to handle things. Syntax is simply {{V|0.17.0}} or similar. To change the most recent version, just edit the template.

Calling the template without an argument as {{V}} will automatically fill in the current version. The template should only be used without arguments on pages that are automatically populated with data via Lua.