Template:V: Difference between revisions

(Updated most recent version)
(Fix out of date categories not appearing correctly.)
 
(18 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<onlyinclude><!--Here's where you set the most recent version:-->{{#vardefine:CurrentVersion|0.18.0}}{{#vardefine:Version|{{{1|{{#var:CurrentVersion}}}}}}}<includeonly><!--
{| class="wikitable infobox" style="text-align:center;"
-->{| class="wikitable" style="float:right; width:250px; margin-left:10px;"
|-
|-
|{{#ifeq:{{#var:Version}}|{{#var:CurrentVersion}}
|{{#ifeq:{{{1|{{AutoVersion}}}}}
|This page is up to date ([[v{{#var:Version}}]]).
    |{{CurrentVersion}}
|<span style="color:red;">This page is out of date ([[v{{#var:Version}}]]).</span>[[Category:Out of Date]]}}[[Category:v{{#var:Version}}]]
    |This page is up to date ([[v{{{1|{{AutoVersion}}}}}]]).
|}</includeonly></onlyinclude>
    |<span style="color:red;">This page was last updated for ([[v{{{1|{{AutoVersion}}}}}]]).</span>
{{V}}
    <includeonly>{{#if:{{{1|}}}|[[Category:Out of Date]]|[[Category:Out of Date (Auto)]]}}</includeonly>}}
New method of doing version checks that only requires a single update to handle things. Syntax is simply {{T|V|0.17.0}} or similar. To change the most recent version, just edit the template.'
|}<includeonly>[[Category:v{{{1|{{AutoVersion}}}}}]]</includeonly><noinclude>{{/doc}}[[Category:Maintenance Templates]]<noinclude>
 
Calling the template without an argument as {{T|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.

Latest revision as of 18:46, 14 June 2024

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

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.