Module:Versions/doc
Jump to navigation
Jump to search
This is the documentation page for Module:Versions
Module:Versions
Provides utility functions related to game versions by referencing the dataset defined in Module:Versions/data.
This module provides the following function(s):
get- renders an InfoboxNavRow with theprevandnextversions populated correspondingly.latest- returns the latest version string.
Usage
Inside Template:VersionInfobox
The module is invoked by the template to render navigation buttons.
{{#invoke:Versions|get|{{{version|{{BASEPAGENAME}}}}}}}
The version parameter defaults to the current page name if not specified. The module returns a Template:InfoboxNavRow invocation with the previous and next update versions as parameters.
Return latest version
Returns the latest version, i.e. the current last entry in Module:Versions/data, as a string.
{{#invoke:Versions|latest}}
Parameters
get
- 1
- string
- The version string corresponding to an entry in Module:Versions/data.
latest
- <No parameters>
Notes
get
- If the provided version does not exist in the dataset, a warning message is returned that will display in the infobox.