Template:OldStrategy: Difference between revisions
From Melvor Idle
(Update for v0.20) |
(Amend colours for dark mode theme) |
||
Line 1: | Line 1: | ||
<onlyinclude><!--Here's where you set the most recent version:-->{{#vardefine:CurrentVersion|0.20}} | <onlyinclude><!--Here's where you set the most recent version:-->{{#vardefine:CurrentVersion|0.20}} | ||
{{#vardefine:PageLink|{{#ifexist:v{{{1}}}|v{{{1}}}|Changelog}}}}<includeonly> | {{#vardefine:PageLink|{{#ifexist:v{{{1}}}|v{{{1}}}|Changelog}}}}<includeonly> | ||
{| class="wikitable" style="float:right; width:250px; margin-left:10px; background:#{{#ifeq:{{#var:CurrentVersion}}|{{{1}}}| | {| class="wikitable" style="float:right; width:250px; margin-left:10px; background-color:#{{#ifeq:{{#var:CurrentVersion}}|{{{1}}}|285128|6a2731}};" | ||
|- | |- | ||
|{{#ifeq:{{#var:CurrentVersion}}|{{{1}}} | |{{#ifeq:{{#var:CurrentVersion}}|{{{1}}} | ||
Line 13: | Line 13: | ||
For example, {{T|OldStrategy|0.18.2}} results in the following: | For example, {{T|OldStrategy|0.18.2}} results in the following: | ||
{{OldStrategy|0.18.2}} | {{OldStrategy|0.18.2}} | ||
While {{T|OldStrategy|{{#var:CurrentVersion}}}} results in the following: | |||
{{OldStrategy|{{#var:CurrentVersion}}}} |
Revision as of 05:32, 17 June 2021
Usage: {{OldStrategy|Version}}
, replacing Version
with the version number.
For example, {{OldStrategy|0.18.2}}
results in the following:
This strategy was calculated for v0.18.2 and may have changed in newer updates. |
While {{OldStrategy|0.20}}
results in the following:
This strategy was calculated for the current version (v0.20). |