Template:OldStrategy: Difference between revisions

From Melvor Idle
mNo edit summary
(Allow specification of current version)
Line 1: Line 1:
{| class="wikitable" style="float:right; width:250px; margin-left:10px; background:#FFF7F7;"
<onlyinclude><!--Here's where you set the most recent version:-->{{#vardefine:CurrentVersion|0.18.2}}
{{#vardefine:PageLink|{{#ifexist:v{{{1}}}|v{{{1}}}|Changelog}}}}<includeonly>
{| class="wikitable" style="float:right; width:250px; margin-left:10px; background:#{{#ifeq:{{#var:CurrentVersion}}|{{{1}}}|E8FFEB|FFF7F7}};"
|-
|-
|[[File:Changelog.svg|25px|link=Changelog#Alpha_{{{version}}}]] This strategy was calculated for [[Changelog#{{{version}}}|{{{version}}}]] and may have changed in newer updates.
|{{#ifeq:{{#var:CurrentVersion}}|{{{1}}}
|[[File:Changelog.svg|25px|link={{#var:PageLink}}]] This strategy was calculated for the current version ([[{{#var:PageLink}}|v{{{1}}}]]).
|[[File:Changelog.svg|25px|link={{#var:PageLink}}]] This strategy was calculated for [[{{#var:PageLink}}|v{{{1}}}]] and may have changed in newer updates.
}}
|}
|}
[[Category:{{{version}}}]]
[[Category:V{{{1}}}]]</includeonly></onlyinclude>
Usage: {{T|OldStrategy|Version}}, replacing <code>Version</code> with the version number.
 
For example, {{T|OldStrategy|0.18.2}} results in the following:
{{OldStrategy|0.18.2}}

Revision as of 01:17, 25 January 2021


Usage: {{OldStrategy|Version}}, replacing Version with the version number.

For example, {{OldStrategy|0.18.2}} results in the following:


Changelog.svg This strategy was calculated for the current version (v0.18.2).