Template:V: Difference between revisions
From Melvor Idle
Falterfire (talk | contribs) (Added auto version as separate from currentversion) |
(Distinguish between out of date pages which are out of date due to Lua or requiring manual review) |
||
Line 4: | Line 4: | ||
|{{#ifeq:{{#var:Version}}|{{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:{{#ifeq:{{{1|}}}||Out of Date (Auto)|Out of Date}}]]}}[[Category:v{{#var:Version}}]] | ||
|}</includeonly></onlyinclude> | |}</includeonly></onlyinclude> | ||
{{V}} | {{V}} |
Revision as of 08:28, 2 February 2022
This page is up to date (v1.3.1). |
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 auto version (as defined in Template:AutoVersion). The template should only be used without arguments on pages that are automatically populated with data via Lua.