Template:V: Difference between revisions

From Melvor Idle
m (Swap categories as if check is the other way around)
(Fix out of date categories not appearing correctly.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<onlyinclude><includeonly><!--
{| class="wikitable infobox" style="text-align:center;"
-->{| class="wikitable infobox" style="text-align:center;"
|-
|-
|{{#ifeq:{{{1|{{AutoVersion}}}}}|{{CurrentVersion}}
|{{#ifeq:{{{1|{{AutoVersion}}}}}
|This page is up to date ([[v{{{1|{{AutoVersion}}}}}]]).
    |{{CurrentVersion}}
|<span style="color:red;">This page was last updated for ([[v{{{1|{{AutoVersion}}}}}]]).</span>[[Category:{{#if:{{{1|}}}|Out of Date|Out of Date (Auto)}}]]}}[[Category:v{{{1|{{AutoVersion}}}}}]]
    |This page is up to date ([[v{{{1|{{AutoVersion}}}}}]]).
|}</includeonly></onlyinclude><noinclude>{{/doc}}[[Category:Maintenance Templates]]<noinclude>
    |<span style="color:red;">This page was last updated for ([[v{{{1|{{AutoVersion}}}}}]]).</span>
    <includeonly>{{#if:{{{1|}}}|[[Category:Out of Date]]|[[Category:Out of Date (Auto)]]}}</includeonly>}}
|}<includeonly>[[Category:v{{{1|{{AutoVersion}}}}}]]</includeonly><noinclude>{{/doc}}[[Category:Maintenance Templates]]<noinclude>

Latest revision as of 18:46, 14 June 2024

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.