Template:Version: Difference between revisions

From Against the Storm Official Wiki
m (added call to action to update the current version if the wiki doesn't know the game has been updated!)
m (clarified the documentation)
 
Line 7: Line 7:
Place this template at the top of every page.
Place this template at the top of every page.


== Example ==
 
== Example when the page is outdated ==
 
<code><nowiki>{{Version|0.39.2}}</nowiki></code>


{{Version|0.39.2}}
{{Version|0.39.2}}


Then when the page text follows the call to the template, the version message box will appear nicely above the text.
By including the Version template at the top of the page, the version message box will appear nicely above the rest of the page text.
 
 
== Example when the page is up to date ==


But when you make a page up to date with the current version of the game, and you write the current version of the game in the argument, there will be no message box.
<code><nowiki>{{Version|</nowiki>{{CurrentVersion}}<nowiki>}}</nowiki></code>


{{Version|{{CurrentVersion}} }}
{{Version|{{CurrentVersion}} }}


There's a call to the template above this line, but since it's referencing the up-to-date game version, the information box does not appear.
Since this template call references the up-to-date game version, the information box does not appear. When you make a page up to date with the version of the game that is current, there will be no message box.


</noinclude>
</noinclude>

Latest revision as of 02:38, 14 March 2023


{{#invoke:VersionMessageBox|checkVersion|updated={{{1|{{{updated|}}} }}}|currentVersion={{CurrentVersion}} }}

This template references {{CurrentVersion}}, which is currently 1.4.4. If that's not correct, please go update it!

Place this template at the top of every page.


Example when the page is outdated

{{Version|0.39.2}}

This page was last updated during version 0.39.2. The game is now in version 1.4.4. Some information may be out of date. Help us keep the wiki up to date by comparing this article against the patch notes and updating this page.

By including the Version template at the top of the page, the version message box will appear nicely above the rest of the page text.


Example when the page is up to date

{{Version|1.4.4}}


Since this template call references the up-to-date game version, the information box does not appear. When you make a page up to date with the version of the game that is current, there will be no message box.