Template:V: Difference between revisions

203 bytes added ,  1 December 2020
New version without any arguments
(New magical version page)
 
(New version without any arguments)
Line 1: Line 1:
<onlyinclude><!--Here's where you set the most recent version:-->{{#vardefine:CurrentVersion|0.17.0}}<includeonly><!--
<onlyinclude><!--Here's where you set the most recent version:-->{{#vardefine:CurrentVersion|0.17.0}}{{#vardefine:Version|{{{1|{{#var:CurrentVersion}}}}}}}<includeonly><!--
-->{| class="wikitable" style="float:right; width:250px; margin-left:10px;"
-->{| class="wikitable" style="float:right; width:250px; margin-left:10px;"
|-
|-
|{{#ifeq:{{{1|}}}|{{#var:CurrentVersion}}
|{{#ifeq:{{#var:Version}}|{{#var:CurrentVersion}}
|This page is up to date ([[v{{{1|}}}]]).
|This page is up to date ([[v{{#var:Version}}]]).
|<span style="color:red;">This page is out of date ([[v{{{1|}}}]]).</span>[[Category:Out of Date]]}}[[Category:v{{{1|}}}]]
|<span style="color:red;">This page is out of date ([[v{{#var:Version}}]]).</span>[[Category:Out of Date]]}}[[Category:v{{#var:Version}}]]
|}</includeonly></onlyinclude>
|}</includeonly></onlyinclude>
{{V|{{#var:CurrentVersion}}}}
{{V}}
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.'
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.'


The version box on this page should reflect the active Current Version
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.