Template:Version: Difference between revisions
m (clarified the documentation) |
m (added category) |
||
Line 25: | Line 25: | ||
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. | 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> | [[Category:Message box templates]] | ||
[[Category:Lua-based templates]]</noinclude> |
Revision as of 04:11, 2 October 2024
{{#invoke:VersionMessageBox|checkVersion|updated={{{1|{{{updated|}}} }}}|currentVersion={{CurrentVersion}} }}
This template references {{CurrentVersion}}
, which is currently 1.4.17. 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}}
Script error: The function "checkVersion" does not exist.
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.17}}
Script error: The function "checkVersion" does not exist.
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.