Template:Latest version: Difference between revisions

From Blooncyclopedia, the independent Bloons knowledge base
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#cargo_query:table={{{1}}}|fields=CONCAT("[[", _pageName, "|Version ", version, "]]") = text|order by=build_number DESC|where={{{where|}}}|limit=1|more results text=}}</includeonly><noinclude>{{/doc}}</noinclude>
<includeonly>{{#cargo_query:table={{{1}}}|fields=CONCAT("[[", _pageName, "|{{{text|Version}}} ", version, "]]") = text|order by=build DESC|where={{{where|}}}|limit=1|more results text=}}</includeonly><noinclude>{{/doc}}</noinclude>

Latest revision as of 04:57, 22 April 2026

Uses cargo to display the latest update of a game. This requires the latest update to have the correct build number assigned in the infobox.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Table1

The name of the cargo table.

Example
btd6_updates
Stringrequired
Wherewhere

An optional where clause for filtering.

Default
netflix_date IS NOT NULL
Unknownoptional

Example usage

{{latest version|btd6_updates}}

Version 55.2

{{latest version|btd6_updates|where=netflix_google_play_date IS NOT NULL}}

Version 47.0