Module:LatestUpdate/doc

From The Deadlock Wiki
Jump to navigation Jump to search

This is the documentation page for Module:LatestUpdate

Overview

[edit source]

This module calculates the days since the last update stored in Data:LatestUpdate.json and sends to Module:UpdateExcerpt to be displayed by Template:Deadlock Wiki/UpdateExcerpt. It can also be called to calculate the time since any given date, in days.

Examples

[edit source]

days_since_date

[edit source]

This function can be called to calculate the days passed from a given date, using the format "Month/Day/Year". "Month" has to be in numbers.

For days since January 30 2026:

{{#invoke:LatestUpdate|days_since_date|1|30|2026}}

224

days_since

[edit source]

This is an automated function that calculates the days since the latest update stored in Data:LatestUpdate.json.

days_since_text

[edit source]

This is an automated function that wraps the "days_since" data in a localized text template to be used by Module:UpdateExcerpt.